passing url variable with my jquery script to the serverside file
<p>i have a pagination script which working with jquery and php scripts, i am trying here to pass a url variable called <code>rev</code> in my url which give the pagination server side file a sql id parameter</p>

<p>here is my jquery code:</p>

<pre><code>function loadData(page){
                    loading_show(); 

                    $.ajax
                    ({
                        type: "POST",
                        url: "commentPagination.php",
                        data: "page="+page,

                        success: function(msg)
                        {
</code></pre>

<p>i tried the following but it did not work</p>

<pre><code>function loadData(page){
                    loading_show(); 

                    $.ajax
                    ({
                        type: "POST",
                        url: "commentPagination.php",
                        data: "page="+page+"&amp;rev="+rev,

                        success: function(msg)
                        {
</code></pre>

<p>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 ?</p>
