Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #13115
| From | Gregor Kofler <usenet@gregorkofler.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Safari XHR Error |
| Date | 2012-03-29 17:22 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <jl1umr$jlt$1@dont-email.me> (permalink) |
| References | <4bd1f$4f7476a3$cf9b42fc$12752@ALLTEL.NET> |
Am 2012-03-29 16:37, MC meinte:
> Newslist Folks,
>
> The code below works for IE9, Chrome, Firefox but fails on Safari 5 on
> Windows.
>
> Line1: var action = (the specific webservice ie, /ws/WSAPI199B.jsp)
> Line2: var myXHR = (function to get browser compliant XHR)
> Line3: myXHR.open("POST","/ws/"+action+".jsp");
> Line4: myXHR.onreadystatechange=AISUS.APPLICATION.handleResponse;
Do you intend to do a synchronous request? Try it with a "real" URL
including protocol and domain, instead of a relative path.
> Line2 gets a valid XHR object. Inspecting using the Safari debugger
> shows that Line3 seems to 'null' the XHR object. Line4 gets the
> following error:
> INVALID_STATE_ERR: DOM Exception 11: An attempt was made to use an
> object that is not, or is no longer, usable.
>
> Any ideas on whats going on?
At least you are not alone:
<https://www.google.com/search?q=safari+INVALID_STATE_ERR%3A+DOM+Exception+11+xmlhttprequest>
Gregor
--
http://vxweb.net
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Safari XHR Error MC <news@aisus.com> - 2012-03-29 09:37 -0500
Re: Safari XHR Error Tim Streater <timstreater@greenbee.net> - 2012-03-29 15:45 +0100
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 10:04 -0500
Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 17:22 +0200
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 12:05 -0500
Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 20:26 +0200
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 14:26 -0500
Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 21:54 +0200
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 15:24 -0500
Re: Safari XHR Error Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-03-29 22:28 +0200
Re: Safari XHR Error David Mark <dmark.cinsoft@gmail.com> - 2012-03-29 18:06 -0700
Re: Safari XHR Error "Richard Cornford" <Richard@litotes.demon.co.uk> - 2012-03-29 21:39 +0100
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 16:07 -0500
Re: Safari XHR Error Scott Johnson <noonehome@chalupasworld.com> - 2012-03-29 17:30 -0700
Re: Safari XHR Error "Richard Cornford" <Richard@litotes.demon.co.uk> - 2012-03-30 01:46 +0100
Re: Safari XHR Error David Mark <dmark.cinsoft@gmail.com> - 2012-03-29 14:54 -0700
csiph-web