javascript - Displaying popup when data processing is going on -


i have created html file demo. table can contain more 2000 rows. on clicking on each row, related data displayed in separate pane.

    $('table tr').on('click', function () {         $('#showcontent').html($(this).find('.content').html());     }); 

i want add popup display processing message, displayed on clicking on row before displaying row related data in separate pane. once data ready display, popup should closed automatically. thoughts!

you can use jquery blockui plugin:

$('table tr').on('click', function () {         $('#showcontent').html($(this).find('.content').html());          $.ajax({             url: url             ...             beforesend: function(){$.blockui();}             complete: function(){$.unblockui();}         });     }); 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -