hi,
no idea? Anyone who had the same error?

thx for your answers
Bastian



On 10/4/07, Bastian Feder <[EMAIL PROTECTED]> wrote:
> hey there,
>
> I have a problem with sending AJAX.Request() with prototype (tried in
> 1.5.0 & 1.5.1.1)
>
> WHat di I do:
>
> I created a bunch of DOM elements using JavaScript. A JS- Class binds
> an onClick- handler to a >login< button.
>
> This handler executes the AJAX.Request()  with a proper url and options.
> the options are:
>
> var opts = {  parameters  : 'param1=abc&param2=xyz',
>                   method      : 'post',
>                   onSuccess   : this.onSuccessHandler.bind(this),
>                   onFailure   : this.onErrorHandler.bind(this),
>                   onException : this.onExceptionRequest,
>                   asynchronous: true };
>
> new Ajax.Request(url, opts);
>
> Doing so I get a mysterious Error (prototype 1.5.1.1):
> Exception caught: NS_ERROR_ILLEGAL_VALUE (Component returned failure
> code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE)
> [nsIXMLHttpRequest.setRequestHeader() [..] on line 1098
>
> OK .. forensic begins:
> looking at 1098 I find a >for< control structure walking through a
> >headers< array and calling the >setRequestHeader()< method of the
> >transport< object.
>
> just to test I deleted this two lines (1097, 1098)  -=> the error
> disappeared as intended but all post vars are lost.
> The funny thing is I switched to >get< and everything works fine ?!?
>
> Does anyone has an idea how to fix this??
> Further questions ? Do not hestiate to chat (Gchat)
>
> Thx
> for helping me
>
> Bastian
>
>
> --
> --
> spread the word ... see  www.browsehappy.com ;o)
>
> Calvin: Weekends don't count unless you spend them doing something
> completely pointless.
>
> Join the Greater IBM  Connection 
> (http://www.xing.com/premiumgroup-6291.d26b7d)
>


-- 
--
spread the word ... see  www.browsehappy.com ;o)

Calvin: Weekends don't count unless you spend them doing something
completely pointless.

Join the Greater IBM  Connection (http://www.xing.com/premiumgroup-6291.d26b7d)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to