Elast
2007-Nov-20 11:28 UTC
Ajax Request returns Internal Server Error in Opera and FireFox
Hello! Following ajax request returns Internal Server Error message in Opera and FireFox, but in IE 7 it works well. var url = ''handlers/DeckCards.ashx''; var params = {DeckID: deckId, NewDeckID: newDeckId, CastID: castId, CommandType: ''Move'', Time: new Date().getTime()}; new Ajax.Request(''handlers/DeckCards.ashx'', { method: ''get'', parameters: params, onSuccess: CastMoved.bindAsEventListener(null, castId, deckId), onComplete: RequestComplete }); Please help me understand why --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Diodeus
2007-Nov-21 20:41 UTC
Re: Ajax Request returns Internal Server Error in Opera and FireFox
Grab the URL you''re using and paste it into a browser and see what the server comes back with. Just before you do your Ajax call, add: x = prompt('''',url+''?''+params) On Nov 20, 6:28 am, Elast <Ilyes.Gariful...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello! > Following ajax request returns Internal Server Error message in Opera > and FireFox, but in IE 7 it works well. > > var url = ''handlers/DeckCards.ashx''; > var params = {DeckID: deckId, > NewDeckID: newDeckId, > CastID: castId, > CommandType: ''Move'', > Time: new Date().getTime()}; > new Ajax.Request(''handlers/DeckCards.ashx'', > { > method: ''get'', > parameters: params, > onSuccess: CastMoved.bindAsEventListener(null, castId, > deckId), > onComplete: RequestComplete > }); > > Please help me understand why--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Brian Williams
2007-Nov-21 20:52 UTC
Re: Ajax Request returns Internal Server Error in Opera and FireFox
get the firebug extension for firefox, that will help with debugging the ajax response. www.getfirebug.com On Nov 20, 2007 6:28 AM, Elast <Ilyes.Garifullin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello! > Following ajax request returns Internal Server Error message in Opera > and FireFox, but in IE 7 it works well. > > var url = ''handlers/DeckCards.ashx''; > var params = {DeckID: deckId, > NewDeckID: newDeckId, > CastID: castId, > CommandType: ''Move'', > Time: new Date().getTime()}; > new Ajax.Request(''handlers/DeckCards.ashx'', > { > method: ''get'', > parameters: params, > onSuccess: CastMoved.bindAsEventListener(null, castId, > deckId), > onComplete: RequestComplete > }); > > Please help me understand why > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---