Php json


Zaman:20-03-2018 04:24

Jquery Ajax Json çağırma

Jquery ile ajax çağrısı yolladığınızda dönüş JSOn olacaksa aşağıdaki şekilde alınlabilir.

Küçük bir örnek:

DOM tarafı:

 

$(document).ready(function(){     //attach a jQuery live event to the button     $('#getdata-button').live('click', function(){         $.getJSON('json-data.php', function(data) {             //alert(data); //uncomment this for debug             //alert (data.item1+" "+data.item2+" "+data.item3); //further debug             $('#showdata').html("<p>item1="+data.item1+"... Devam?

phpkodlari.com © 2009 Herkes Php öğrenecek
Eglence ve Oyun: Gamikro