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> Quote Link to comment https://forums.phpfreaks.com/topic/261091-div-refresh-by-different-id/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.