, $.POST().
, jquery $.post. ( "JSON" ), . , , , .
$.post('server.fcgi', {}, ajax_callback,{}, 'json');
-, JSON, $.parseJSON() .
, , URL- JSON, JSON .
.
$.post("url/path/here/to/json", {}, function(data){
if(data){
var obj = $.parseJSON(data);
.... do everything else using the Obj->
}
},{},"json");
.
JQuery, JSON,
$.getJSON();
url
.
$(document).ready(function(){
$('.clickable').live('click', function() {
$.getJSON('server.fcgi', function(data){
window.location.hash = data.h1;
});
}
);
});