Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Download - get data */
- function gettxt(input,field)
- {
- $.ajax({
- type : "POST",
- dataType: 'json',
- url : '/ajaxcms/pagesearch',
- data : 'search=' + input + '&field=' + field,
- async : true,
- success : function(msg)
- {
- if (msg.status == "1")
- {
- $('.window').empty().append(msg.html);
- $('.search').find("#show_search_result").emtpy().append(msg.total); // msg.total = 400
- // none works
- //$("#show_search_result").emtpy().append(msg.total); // msg.total = 400
- //$('#show_search_result').emtpy().append(msg.total); // msg.total = 400
- //$(".show_search_result").emtpy().append(msg.total); // msg.total = 400
- } else {
- }
- }
- });
- }
- $('#action').click(function()
- {
- var input = $('#search').val();
- var field = $('#field').val();
- gettxt(input,field);
- });
Add Comment
Please, Sign In to add comment