[jQuery] json reading data on server
<div>Hi jQuery,</div>
<div> </div>
<div>I'm trying to learn the json and ajax</div>
<div>I have with success sent data over to the server in json</div>
<div>now my question is how does one process this data on the server side?</div>
<div><br clear="all">client side:</div>
<div> </div>
<div> var data =
{
"member" :
{
"name" : "Donald Duck"
}
}</div>
<div>$.ajax({
url: "<a href="http://localhost/test/gui/ajax_member.php">http://localhost/test/gui/ajax_member.php</a>",
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 );
}
});</div>
<div> </div>
<div>server side???</div>
<div> </div>
<div>how do I get the name "Donald Duck" on the server side?</div>
<div></div>
--
Power Tumbling - <a href="http://www.powertumbling.dk">http://www.powertumbling.dk</a>
OSG-Help - <a href="http://osghelp.com">http://osghelp.com</a>