Same error here,
Mozilla documentation says that in a cross domain call there are two
response headers: OPTIONS and POST
Prototype receives the OPTIONS one but the POST is lost.

On 16 ago, 18:32, Omar Adobati <[email protected]> wrote:
> Hi Andrew,
>
> I'm sorry to be so in late but I was quite busy with my job in the past
> days, anyway, here you ca test the same request with both prototypejs
> framework and the xmlhttp object:
>  http://www.adobati.it/labs/test/
>
> Let me to know what do you think!
>
> ---
> Omar Adobati
>
>
>
> On Thu, Aug 6, 2009 at 15:55, Omar Adobati <[email protected]> wrote:
> > Sure,
> > I will and I will let you to know.
>
> > Thanks,
>
> > Omar
>
> > Sent from Düsseldorf, North Rhine-Westphalia, Germany
>
> > On Thu, Aug 6, 2009 at 15:48, Andrew Dupont <[email protected]>wrote:
>
> >> Omar, can you try rewriting this code to use the native XmlHttpRequest
> >> API? If that version works, then the problem definitely lies with
> >> Prototype, and I'll open a bug for this.
>
> >> Cheers,
> >> Andrew
>
> >> On Aug 5, 4:30 pm, 0m4r <[email protected]> wrote:
> >> > Hi All,
>
> >> > I have a strange behavior with a pice of code I wrote using the latest
> >> > prototype release, here it is:
> >> > ==
> >> > var debug = $('debug');
> >> >         new Ajax.Request("http://twitter.com/statuses/
> >> > public_timeline.json", {
> >> >           method: 'get',
> >> >           onLoading: function(){
> >> >                     debug.update('Loading...');
> >> >                   },
> >> >           onSuccess: function(transport) {
> >> >             debug.update("SUCCESS: " + transport.responseJSON  +
> >> "<br/>");
>
> >> >           },
> >> >           onException: function(transport, exception){
> >> >             debug.update("EXCEPTION: " + exception);
> >> >           }
> >> >         });
> >> > ==
>
> >> > What is happening here is that I'm doing an HTTP OPTION request
> >> > instead of a HTTP GET request and I believe it is because of this:
> >>http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/
> >> > but anyway I don't know how to manage/avoid it. I just want to make an
> >> > AJAX request using HTTP GET.
>
> >> > Can anyone help me?
>
> >> > Many thanks,
>
> >> > Omar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to