Thanks for the reply, Now I have another situation. I have decided to use JSON with JQuery to send data to a php script, this works well, however, I would like to add a please wait/loading message while this is still executing please see my code below:
$().ready(function() { $("#limitBox").change(function () { var JSONObject = new Object; ; JSONObject.datalimit = this.value; JSONObject.sessionVarName = 'data_limit'; JSONstring = JSON.stringify(JSONObject); alert(JSONstring); $.get('parser.php?json=' + JSONstring,'', showDataTableResult, "text"); }); function showDataTableResult(res) { $("#fullresponse").html("response: " +res); } }); Thank you. Michael Lawson wrote: > Make a post request to a php page that changes the value. The session > variable gets set to whatever the value of the parameter in the post array > is set to. > > cheers > > Michael Lawson > Content Tools Developer, Global Solutions, ibm.com > Phone: 1-828-355-5544 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > > > From: themba <themba.ntl...@gmail.com> > > To: "jQuery (English)" <jquery-en@googlegroups.com> > > Date: 03/05/2009 02:45 PM > > Subject: [jQuery] Auto update PHP session variables using Ajax/JQuery > > > > > > > > Hi Guys, > > I need help with updating a Session Variable using Javascript, my goal > is to have a text filed that will accept numeric input, then onblur or > onChange, the PHP session variable must be updated with the new > numeric value, how can I do this? > > Thank you in advance.