[jQuery] Re: Ajax request Error - please help

2008-10-09 Thread debussy007
I have some new information, if I change the ajax request's type from POST to GET, it works perfectly ... When I use POST type, in firebug's console the url is red and next to it I can see the number 411, by looking on the net, the error must be related to Content-Length ... Anyway I am fine wi

[jQuery] Re: ajax request error

2007-05-30 Thread Jake McGraw
Actually, you don't need var html at all so: $.ajax({ url: "ATBAjaxHandler.do", data: "service-name=nb_places_available&date="+date+"&flight="+flight, success: function(html) { alert("HTML = "+html); $('#nbPlacesAller').html(html); } }); Will wor

[jQuery] Re: ajax request error

2007-05-30 Thread Jake McGraw
You need to set the callback, not just access the XHR object, because it may not (definitely won't) be ready immediately after you call $.ajax, try: var html = $.ajax({ url: "ATBAjaxHandler.do", data: "service-name=nb_places_available&date="+date+"&flight="+flight, success: func