note 106555 added to book.json

From: Date: Fri, 18 Nov 2011 10:24:27 +0000
Subject: note 106555 added to book.json
Groups: php.notes 
Request: Send a blank email to php-notes+get-184557@lists.php.net to get a copy of this message
JSON is used where we want send data as an object its either be an array or string. jquery and php json example var dataString = 'comment=' + comment; $.ajax({ type: "POST", url: "pagepostbyajax.php", //this data is mendetory when u want post data when posting page by ajax. //after that ur data send to that page. now in backend page echo json data.if your //data is in array format the use json_encode() function then echo that json data //now you find tht json in your success that can you use by taking a loop. data: dataString, cache: false, datatype: json, success: function(html){ $("ul#update").append(datal); alert(data); } }); Regards Jitendra Thakur ---- Server IP: 59.162.86.123 Probable Submitter: 210.212.164.178 ---- Manual Page -- http://www.php.net/manual/en/book.json.php Edit -- https://master.php.net/note/edit/106555 Del: integrated -- https://master.php.net/note/delete/106555/integrated Del: useless -- https://master.php.net/note/delete/106555/useless Del: bad code -- https://master.php.net/note/delete/106555/bad+code Del: spam -- https://master.php.net/note/delete/106555/spam Del: non-english -- https://master.php.net/note/delete/106555/non-english Del: in docs -- https://master.php.net/note/delete/106555/in+docs Del: other reasons-- https://master.php.net/note/delete/106555 Reject -- https://master.php.net/note/reject/106555 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184557) next »