Forum Moderators: open
...
$.ajax({
type: "POST",
url: showresults.php,
data: "clickedPage=" + clickedPage + "&id=" + id,
error: function(){
alert('Error loading XML document');
},
success: function(msg){
//put results received from ajax call to div
}
});
... if(!empty($_POST[clickedPage])){
$clickedPage=$_POST[clickedPage];
}