Response title
This is preview!
function quietSubmit(){ var organization_name = document.form1.organization_name.value; alert(organization_name + " has " + record_count + " records, download?"); $.post("/acme/getphonelist", $("#organization_name").serialize() ); doProgress(); return true; }
function doProgress(){ $(function() { var progressbar = $( "#progressbar" ); var progressLabel = $( ".progress-label" ); /* changing of progress bar text */ $( "#progressbar" ).progressbar({ value: false, change: function(){progressLabel.text( progressbar.progressbar( "value" ) + "%" );}, complete: function(){progressLabel.text( "Complete!" );} }); function progress() { var val = progressbar.progressbar( "value" ) || 0; // Update progress $.post("/nsd/getprogress", function(){val = data;}); if ( val < 99 ) { setTimeout( progress, 1000 ); } }// end progress() setTimeout( progress, 5000 ); });// end jQuery call }// end doProgress()
doProgress()
function body is wrapped by a document ready function - $(function() { ... })
. This means that you code is executed when the document is ready, which has probably already happened. Try removing this.© 2013 jQuery Foundation
Sponsored by and others.