Advertisement
Guest User

Untitled

a guest
May 29th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function sort() {
  2. var jsonData = $.ajax({
  3. url: "your_php_function.php",
  4. dataType: "json", // or whatever you like
  5. data: { "variable_sort" : "high_price" } // is converted to a query stringand appended to the url for GET-requests
  6. async: false
  7. }).responseText;
  8. return jsonData;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement