/*//To complete the progress bar by a fixed time, namely: Pseudo progress bar ext.onready (function () {var ProgressBar = Ext.Msg.show ({title: "Progress Bar", Msg: "Complete progress through fixed time", width:300, Wait:true, Waitconfig: {interval:500, D uration:5000, Fn:function () {Ext.Msg.hide ();}}, Closable:false}); }); *//* *//progress bar//updateprogress (number value, String progresstext, String msg) parameter description: Anything between Value:number 0 and 1 (default 0) PR Ogresstext:string the contents of the progress bar (default ") msg:string message box body content is replaced by the specified message (default is not defined) Ext.onready (function () {var configs = { Title: "Installation progress bar", progress:true,width:600,closable:false,msg: "Installing ... "}; Ext.Msg.show (configs); var fn_progressbar = function (v) {return function () {if (v==12) {Ext.Msg.hide ();} Else{var i = V/11; Ext.Msg.updateProgress (I,math.round (i*100) + "% completed! ", i);}}} for (var i = 1; i <; i + +) {setTimeout (Fn_progressbar (i), i*500);}); *//* * Ext.onready (function () {var MsgBox = Ext.MessageBox.show ({ Title: ' Hint ', msg: ' Dynamically updated progress bar and informational text ', Modal:true, width:300, progress:true} var count = 0;//The number of times the scrollbar has been refreshed var percentage = 0;//Progress percent var progresstext = ';//progress bar information var Task = {run:function () {count++; Calculation progress percentage = COUNT/10; Generate progress bar Text Progresstext = ' Current completion: ' +percentage*100+ '% '; Update Information Hint dialog box msgbox.updateprogress (Percentage,progresstext, ' Current time: ' +ext.util.format.date (new Date (), ' y-m-d g: I:s A ')); Refresh 10 times after closing the informational cue box if (count>10) {Ext.TaskManager.stop (Task); Msgbox.hide (); }}, interval:1000} Ext.TaskManager.start (Task); }); */ext.onready (function () {Ext.MessageBox.progress ("Please Wait", "Data processing progress ..."), var fun = function (p) {return function () {if (P = = {Ext.mesSagebox.hide ();} else {Ext.MessageBox.updateProgress (p/20, ' processing ' + P + ', altogether 20 ');}};} for (var i = 1; i <=; i++) {SetTimeout (Fun (i), I * 1000);}});
extjs--03--a few progress bar codes to see