dflow Posted April 17, 2012 Share Posted April 17, 2012 how can i change the set refresh div to a posted id? set div id="context" to id="$page_id" $("#context").html(data); <script type="text/javascript"> function addToFanPAge(page_id,page_access_token) { var agree=confirm("Confirm add to page"); if (agree) { jQuery.ajax({ url: "process-addpage.php", type: 'POST', data: {page_id : page_id,page_access_token : page_access_token}, success: function(data){ //document.location.reload(true); $("#context").html(data); } }); } return false; } </script> Link to comment https://forums.phpfreaks.com/topic/261091-div-refresh-by-different-id/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.