ajax.request

Best way to pass JSON from Browser to PHP using Ajax.Request

Hi I have a JSON object that is a 2-dimentional array and I need to pass it to PHP using Ajax.Request (only way I know how). ...Right now I manually serialized my array using a js function...and get the data in this format: s[]=1&d[]=3&[]=4 etc. .... my question is: Is there a way to pass the JSON object more directly/efficientely?..ins...

Using Ajax.Request response inside of an object ? - PrototypeJS

Hi there, for past two hours i've been trying to pass responseText to the object i'm calling Ajax.Request in. And it just isn't happening :) Here's the code; var traziSuggest = Class.create({ initialize:function( elemenat, sugDiv ) { this.elemenat = $( elemenat ); this.elemenat.onkeyup = this.uzmiSug.bindAsEventList...

Why is my AJAX request hanging after running for a while?

My AJAX calls from a page I wrote is hanging after an indeterminate number of calls. The page makes a request after a preset amount of time (currently 5 seconds) gets data from my server then waits the amount of time again. When I put the following as my AJAX Request: myAjax = new Ajax.Request( url, { ...

Using Authentication with Ajax.Request

I currently have a Palm WebOS application that uses an Ajax.Request to connect to a web service using basic authentication. To send the username and password, I simply include it in the url (i.e. http://username:password@ip-address:port/) which works exceedingly well, expect for when the password contains anything other than alphanumeric...

Cross Origin Resource Sharing with PrototypeJS

Hey there, I am having some trouble with Cross Origin Resource Sharing and Prototye. I have a simple post request to a foreign resource, and for a simple post request there are some rules that must be satisfied: the Content-Type must be on of application/x-www-form-urlencoded, multipart/form-data, or text/plain, a simple request does n...

Where is the problem in this prototype [ajax.Request] code ?

function sendM() { new Ajax.Request("sendm.html", { method: 'post', postBody: 'text='+ $F('text') +'&sub='+ $F('subject') +'&sname='+ $F('name') +'&sfmail='+ $F('email') +'to='+ $F('to'), onLoading:showLoad, onComplete: showResponse }); } function showLoad(){ $('dresult').innerHTML= "מבצע את הפעולה &nbsp;&nbsp;<br /><br />";...