Guest User

Untitled

a guest
Jul 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. /* Download - get data */
  2. function gettxt(input,field)
  3. {
  4.  
  5. $.ajax({
  6. type : "POST",
  7. dataType: 'json',
  8. url : '/ajaxcms/pagesearch',
  9. data : 'search=' + input + '&field=' + field,
  10. async : true,
  11. success : function(msg)
  12. {
  13.  
  14. if (msg.status == "1")
  15. {
  16. $('.window').empty().append(msg.html);
  17. $('.search').find("#show_search_result").emtpy().append(msg.total); // msg.total = 400
  18. // none works
  19. //$("#show_search_result").emtpy().append(msg.total); // msg.total = 400
  20. //$('#show_search_result').emtpy().append(msg.total); // msg.total = 400
  21. //$(".show_search_result").emtpy().append(msg.total); // msg.total = 400
  22. } else {
  23.  
  24. }
  25.  
  26. }
  27. });
  28.  
  29. }
  30.  
  31.  
  32. $('#action').click(function()
  33. {
  34. var input = $('#search').val();
  35. var field = $('#field').val();
  36.  
  37. gettxt(input,field);
  38.  
  39. });
Add Comment
Please, Sign In to add comment