Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #7605
| Date | 2011-10-21 19:13 +0200 |
|---|---|
| From | Martin Honnen <mahotrash@yahoo.de> |
| Organization | Liberty Development |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Trouble submitting POST ajax request on Chrome: INVALID_STATE_ERR: DOM Exception 11 |
| References | <2ffdd562-40f4-4cf5-b0bf-9768ace1f729@c25g2000yqn.googlegroups.com> |
| Message-ID | <4ea1a842$0$6626$9b4e6d93@newsspool2.arcor-online.net> (permalink) |
laredotornado wrote:
> I'm trying to submit a framework-independent post ajax request, but
> running into some errors on Google Chrome (Firefox and IE seem to work
> fine). Specifically, I receive the error, "Uncaught Error:
> INVALID_STATE_ERR: DOM Exception 11" on this line
>
> ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-
> urlencoded");
> ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-
> urlencoded");
> ajaxRequest.open("POST", "save", true);
> ajaxRequest.send(params);
> }
First call the open method, then set any request headers.
--
Martin Honnen --- MVP Data Platform Development
http://msmvps.com/blogs/martin_honnen/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar
Trouble submitting POST ajax request on Chrome: INVALID_STATE_ERR: DOM Exception 11 laredotornado <laredotornado@zipmail.com> - 2011-10-21 10:03 -0700
Re: Trouble submitting POST ajax request on Chrome: INVALID_STATE_ERR: DOM Exception 11 Martin Honnen <mahotrash@yahoo.de> - 2011-10-21 19:13 +0200
Re: Trouble submitting POST ajax request on Chrome: INVALID_STATE_ERR: DOM Exception 11 laredotornado <laredotornado@zipmail.com> - 2011-10-21 11:07 -0700
csiph-web