php - Pagination with $_GET - in AJAX - is it posible -


i'm developing php class pagination using $_get. standart, found web.

here works : page.php :

<form method ="get"> <?php  $pages = new pagination(); echo "<br/>"; ?>    </form> 

i want use page.php in index.php ajax / jquery , staying in index.php

<!doctype html>   <body> <div id ="result"></div> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>    <script> $(document).ready(function() {     $.post('./page.php',              function (data) {                 $('#result').html(data);              }      );   });  </script> </body>   </html> 

is possible way ?

is possible instead of using jquery's $.post, can replace $.post $.get?


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -