Hi jQuery,

I'm trying to learn the json and ajax
I have with success sent data over to the server in json
now my question is how does one process this data on the server side?

client side:

 var data =
{
 "member" :
  {
   "name" : "Donald Duck"
  }
}
$.ajax({
 url:   "http://localhost/test/gui/ajax_member.php";,
 type:  "GET",
 data:  data,
 cache:  false,
 dataType:  "json",

 success: function(json){
   alert( json["test"] );

  },

 error: function( XMLHttpRequest, textStatus, errorThrown ){
  var t = "XMLHttpRequest: "+XMLHttpRequest+"\n";
   t+= "textStatus: "+textStatus+"\n";
   t+= "errorThrown: "+errorThrown+"\n";
  alert( t );
 }
});

server side???

how do I get the name "Donald Duck" on the server side?

-- 
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com

Reply via email to