javascript - jQuery AJAX URL change Phonegap -
how change url in ajax , reload page new content?
i make service in wp: www.test.com/page/?u=test
$_get['u'];
and while(..... new information)
works good.
but have problem this..
$('#test').click(function(){ uel = "http://......com/servisi302/?u=zanimljivosti"; $('#page-content').hide(1000); $('#page-content').show(1000); alert(uel); return false; }); jquery.ajax({ url : '' +uel, type : "post", datatype : "json", data : "param=no", success : function(html){ var query = jquery(".query"); console.log(html); jquery.each(html, function(key, value){ console.log(value); query.append("<div class='media well'><a href='#' class='pull-left'><img width='64' height='64' src='" + value.slika + "'class='media-object' alt='' /></a><div class='media-body'><h4 class='media-heading'><p>" + value.naslov + "</p></h4></div></div>"); }); }, error : function(e){ alert(e); } }); });
how change url or variable , subsequently reload new content?
Comments
Post a Comment