Hey tobie,
thx for your answer.
But I cannot see where I run into this policy?!
I am using relative pathes to the response file, etc ..

Could you explain why you think I do run into this ?

On the other hand I found this:
http://erratic.inkdeep.com/2007/1/21/prototype-1-5-0-and-json-js/

I am not really sure what this does but adding:
> if (typeof headers[name] != 'function') <
between line 1097 and 1098 in prototype 1.5.1.1 does the trick ..

thanks for your help.

Bastian



On 10/4/07, Tobie Langel <[EMAIL PROTECTED]> wrote:
>
> You're most probably violating the same origin policy (http://
> en.wikipedia.org/wiki/Same_origin_policy).
>
> Regards,
>
> Tobie
>
> On Oct 4, 7:47 pm, "Bastian Feder" <[EMAIL PROTECTED]> wrote:
> > 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)
>
>
> >
>


-- 
--
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