javascriptfirefoxxulxulrunner

How to use progressmeter in an XUL application?


This might be a simple question for geeks, but not for me, at least. I was developing a simple XUL program from scratch. I used wizard tag to simplify the GUI that appears to the user. On a wizard page I have inserted a progressmeter to show the progress of a function called myFunction() which belongs to the JavaScript which is available in the XUL file. How can I properly update the progressmeter based on the real progress of the function?


Solution

  • Have you tried setting the progression of the progressmeter using its "value" property?

    myProgressmeter.value = 50;
    

    You just need to increment this value depending on the progression of your function. Note that the value should be set between 0 and myProgressmeter.max