i have a pagination script which working with jquery and php scripts, i am trying here to pass a url variable called rev in my url which give the pagination server side file a sql id parameter
here is my jquery code:
function loadData(page){
loading_show();
$.ajax
({
type: "POST",
url: "commentPagination.php",
data: "page="+page,
success: function(msg)
{
i tried the following but it did not work
function loadData(page){
loading_show();
$.ajax
({
type: "POST",
url: "commentPagination.php",
data: "page="+page+"&rev="+rev,
success: function(msg)
{
which it did not work , how can i get the variable from the URL then pass it through the jquery to my server side file ?