Jquery Inline Data Flow -


i using code bring data <div>, works it's not user experience. have wait external file populated data , when it's finished pulls in file. can cause 5 second delay. meanwhile user starting @ white screen spinner.

<script> $(function () {     $(".viewdata").click(function() {          var cuser = document.genericform.guserid.value;         var datastring = '&cuser='+ cuser;            var finddiv ="allproductsdiv";         $.ajax({             type: "post",             url: "inc/somefile.cfm",             data: datastring,                  cache: false,             success: function(html){                 $('#'+finddiv).html(html);             }         });     }); }); </script> 

is there way show data user while data streaming <div>?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -