Progress bar (app.thermometer) ???

Need to display a progress bar using thermomter object while invoking a web service.
Lets assume the function loadWebService() has the logic to connect and retrieve data from a web service.
Can anyone drop a few lines of code to implement this logic??
I have tried the following it doesn't works:
line 1: var tObj = app.thermometer;
line 2: tObj.duration = 100000;
line 3: tObj.begin();
line 4: loadWebService();
//optionally i ve included the following lines too
line 5: for(var i=0;i<100000;i++)
line 6:   {
line 7:        tObj.text = "Processing, please wait";
line 8:   }
line 9: tObj.end();
Thanks,
Nith

Just tried your code and it works for me ...the only thing that I noticed is that you never actual update the progress bar .....if you add the command:
tObj.value = i
to the inside of your loop, then it works as I would expect.
Paul

Similar Messages

  • Trying to install CC apps, Progress bar stuck

    I have spent most of my day trying to get the Creative Cloud desktop application installed (I have had to now create a new user on my computer which has seemingly fixed that), and when I tried to install Audition as a test, the progress bar got stuck at 40%. Since it wasn't going anywhere, I tried to cancel it, but it got stuck on cancelling for ages. So what I did was close the application, end all the Adobe processes and open CC Desktop up again. It crashed twice, and I then tried running it as administrator. It is now running, but my Audition download is now stuck at 11% for no obvious reason.
    Has anyone had similar problems? Is there any way to fix it? (I've tried deleting the adobe files in %appdata%).
    This is a 64-bit computer running on what should be fully updated Windows 7 with 8GB of RAM and an i5 4670K.

    if you've already gone through all the help on that page, you really need to make sure your cc app is properly installed.
    i would uninstall it.
    run the cleaner to see if it can find anything, http://www.adobe.com/support/contact/cscleanertool.html
    restart your computer.
    then reinstall the cc app and make sure it installs without problem.

  • Why I cannot see the progress bar whenever I download my apps directly from my App Store ?

    Whenever I install an app, I cannot see the app's icon on the home screen and then when I proceed into the home page, the apps will not be installed unless I stay into the App Store and wait till the circle on the top of the screen stop turning. It is really very inconvenient. I'm using iPhone 4S. Anyone knows the solution? And I'm can't see the progress bar showing whether its downloading. I'm using IOS 6. And I've got another issue. Why whenever I want to reinstall the youtube they would say its free. When I press the 'free' it will go into the 'install' and then when I press the 'install', it would go back to 'free' and because of that I'm unable to download youtube. It's only youtube I'm able to install other apps. But ya, I cannot see the progress bar. Help anyone?

    Actually, the app is there, and it asks to PAY AGAIN, that was the issue, but I have just solved the problem using your first advice, as I tried a few times with different names in my account.
    For example, you told me to use the same ID...
    I have a ONE account, but sometimes I sign in as [email protected] and sometimes I sign in as [email protected] and sometimes I sign in as [email protected] and that made all the difference, as I tried them all and finally with [email protected] worked and gave me the opportunity to download again.
    Thanks a lot for the tip.
    Luiz

  • I have apps that want to get updated but when i try to update them, the progress bar appears but also dissapeares again, the app isnt updated..

    I have apps that want to get updated but when i try to update them, the progress bar appears but also dissapeares again, the app isnt updated..
    I keep trying but i cant update the apps..

    First reboot the iPad by pressing and holding down the home and sleep/wake buttons (power) at the same time until the apple logo appears on the screen, then let go.
    If that doesn't work then reset the phone by going to settings/general/reset/reset all settings

  • German: Ich weiss nicht, Lade ich jetzt OS X Mountain Lion, ich sehe auch keine Anzeige, oder ein fortschritt Balken im App Store? I do not know, I load an OS X Mountain Lion, I see no indication, or a progress bar on the App Store?

    German: Ich weiss nicht, Lade ich jetzt OS X Mountain Lion, ich sehe auch keine Anzeige, oder ein fortschritt Balken im App Store? I do not know, I load an OS X Mountain Lion, I see no indication, or a progress bar on the App Store?

    com.kaspersky.kext.kimul.44     44
    com.kaspersky.nke   1.0.1d41
    com.kaspersky.kext.klif              3.0.0d23
    Uninstall the Kaspersky anti virus software. Instructions here > How to uninstall Kaspersky Security for Mac
    Then restart your Mac.
    Kaspersky has caused other Mac users kernel panics as well noted from the result of an Apple Support Communities search here.
    If you want to use anti virus software on your Mac, install Sophos (free) as recommended here.

  • Can I remove the startup progress bar from a Flex app?

    Hey all,
    I have built a few charts for my companies' website: http://www.midwestmarket.org/page/Area+Control+Error
    On all of them, I have noticed that there's a delay of 3 or 4 seconds from the time the page loads, a progress bar shows, and then the graph is actually shown.
    The charts in question are all Flex 3 builder built, and I am upgrading now to Flash 4 builder. But, still I see the progress bars.
    I know that Fusion Charts doesn't have this same startup routine, those charts pop right up as soon as the site is loaded. Now Fusion is of course build to JUST be a chart tool and probably doesn't load as much stuff. But, is it possible to get there with Flash 4 builder?

    hi,
    With flashbuilder you first need to load the swf, then it creates the display objects this is what the loadbar is there for, if you have embedded assets then that bar will stay even longer. Once the application creation sequence is complete the displaybar disappears and then your application is displayed.
    Now imagine removing that bar, on a slow connection with a 'large' app, the user would be faced with a blank screen for several seconds, not the desired end-user experience we are after.
    You can make it more interesting by customising the pre-loader with say a company splash screen which offers a more visually appealling startup
    this is a simple example of a custom preloader, source is included
    http://flashhub.net/ezflex/testloader/
    One quick note with preloaders there is no flex sdk at that point so preloaders have to comply with the immediate requirements of the flashplayer api. So basically on flash components.
    David.

  • Recently my MacBookPro locked up on startup. Could not get past a certain point of progress bar. I had upgraded to Yosemite few weeks back, with no issues. I ended up doing a Recovery with Time Machine and I got all my apps, photos, documents, etc. back o

    Recently my MacBookPro locked up on startup. Could not get past a certain point of progress bar. I had upgraded to Yosemite few weeks back, with no issues. I ended up doing a Recovery with Time Machine and I got all my apps, photos, documents, etc. back okay --- except I got error messages that my "registration for Photoshop (I use CS4 Extended) and Photo Mechanic are no longer working".  I worked on Photoshop first, and tried (several times) to fix it with their online help suggestions.  Nothing worked.
    Is there a simpler way to "get my licenses/registrations back"???  I am also going to contact Camera Bits about the Photo Mechanic issues.   Thanks

    Same problem and for months now. I haven't been able to find a solution, but I suspect that's because I don't know exactly what's wrong.

  • Ipod app - Sometimes no progress bar

    Hey folks, It seems that sometimes when using the iPod app on my 3GS, there isnt a progress bar where you can drag the button to a different part of the song? Is this a glitch or am I missing something?
    But I know I have definitely used it at times.
    Thanks
    James

    when the ipod app is open, and in portrait mode, tap the album artwork once and the bar will appear.
    tapping it again will hide it.
    when its visible you can drag the dot to scrub through the track.
    hope this helps.

  • The app fails to download on my ipad- progress bar gets to halfway and then restarts. Any ideas?

    The app fails to download on my ipad- progress bar gets to halfway and then restarts. Any ideas?

    HELLO, Hello, hello..........is there anybody out there................

  • My ipad has stopped updating apps. It doesn't even ask for password, it just oges to the apps screen showing empty progress bars. I've re-synced account and restarted but with no luck. Other than deleting the apps is there anyway around this?

    My ipad has stopped updating apps. It doesn't even ask for password, it just oges to the apps screen showing empty progress bars. I've re-synced account and restarted but with no luck. Other than deleting the apps is there anyway around this?

    OK. I will work backwards.
    You certainly don't want to have to delete apps every time that they need an update, for any number of reasons. Losing data first and foremost would be a drag, but the overall hassle would be absurd. All things being equal, you should be able to update apps in the future after you delete them and reinstall them. I delete and reinstall apps all the time and I am also able to update them when updates are available for the apps. I just wanted to know if you had any success in any fashion installing apps.
    Resyncing/refreshing the Apple ID/iTunes account wouldn't seem to be the issue either if you can download apps or other content from the iStores. Your ID is being accepted.
    That leaves us with I'm not sure what. But I think I would try this trick fix and see if it helps.
    Go to Settings>General>Date and Time>Set Automatically>Off. Set the date one year ahead. Try to update the apps again. If you get an error message, go back to the settings. Correct the date and time (set automatically) then go back and try to update the apps again.

  • New update are listed on the app icon. When I click update all I'm prompted to enter password. When I do, the progress bars go away and nothing gets updated. Tried logging out, reset iPad, and nothing seems to work. Keeps asking me to enter password.

    New update are listed on the app icon. When I click update all I'm prompted to enter password. When I do, the progress bars go away and nothing gets updated. Tried logging out, reset iPad, and nothing seems to work. Keeps asking me to enter password.

    I've been having the same problem for days and just solved it. Tried going to Apple ID and had all the same problems you did in the second paragraph. I signed out with my current username on the ipad under settings--->store and signed back in with my oldest apple id and password. Now the apps don't ask for a password to upgrade. I too had a username that wasn't an email address and had to change to one that was at some point. That's what caused the problems. Hope this can work for you.

  • How i display mac app store downloading progress bar ? please help, how i display mac app store downloading progress bar ? please help

    how i display mac app store downloading progress bar ? please help ?

    it does not respond every time i hit download button,nothing appers

  • Form completion progress bar

    How do I make a progress bar to show the amount of populated fields in a form?
    I remember an example posted here on the forum, but can no longer find it.
    It was a sliding "progress bar" that increased as you populated fields in the form.
    As the form fields were filled in, the progress bar moved up the scale.
    When all fields were populated the progress bar was "full".
    Thanks for any help!

    The 'jumping back' would be due to reinitializing the thermometer every time calculate is triggered. There's no need to call begin() or set the duration more than once per thermometer session.
    About the 'odd jumping' problem; after some testing I'm bound to doubt the possibility of invoking a thermometer with a value other than 0. Your thermometer is invoked with value=1, although the progress bar stays put at 0.
    A solution would be to invoke the thermometer before filling out the first field (whereas value really is 0). However Acrobat doesn't seem to keen on jump-starting thermometers on startup (whether it's initialize, form:ready or docReady). I've also tried app.setTimeOut() with no luck. Although enter- and exit-events do the trick, I'm convinced there are better solutions...

  • ITunes store won't load. The progress bar freezes at about 50% and I get nothing but a white screen.

    I'm running iTunes 10.5 beta 7 but this issue has been happening since I was running 9.  One day I clicked on a link for an app I saw on techcrunch and it pulled up in iTunes as being in the UK store.  I clicked ok and my iTunes hasn't worked since.  I can log into my account but can't access anything in the store or Ping.  I've googled this issue and found some similar sounding stories but none of the solutions have worked.  I've uninstalled and reinstalled, turned of the itunes store in parental settings and checked "except for iTunes U", I've uninstalled apple aplication suport and installed safari and every other option I have found and nothing has worked.
    Sometimes if I let it sit long enough what looks like an unstyled version of the store comes up but is completely unusable.
    Just to be clear, this has been happening since before I was running any beta software or OS.
    Any help would be greatly appreciated.

    Thank you gchin.
    I emailed apple support and they got back to me, I did what he said and it's fixed! SOLUTION found- see below.
    I said:
    "I can't access the iTunes Store. When I click on it the progress bar stops at 50% and I'm left with a blank white screen (no error msg). I have uninstalled and reinstalled, run the iTunes diagnostics (it said all was ok), gone through all of the online help material and I've tried turning off my firewall. Nothing works. I can't sync my iphone either (stops on verifying iPhone so I think it's getting stuck on trying to contact the store). Plzz help."
    They replied:
    "Greetings from Apple iTunes Store Customer Support! I am ########.
    I understand that you have had issues accessing the iTunes Store. I know how eager you are to have this issue resolved. I will certainly assist you.
    #########, for this, I recommend that you attempt to resolve this issue by once again uninstalling iTunes and QuickTime, and then reinstalling the latest version of each. To do this, first ensure that you are logged in to an Administrator user account on your computer, then follow the instructions in the appropriate article:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista:
    http://support.apple.com/kb/HT1923
    Note: Titles you purchased from the iTunes Store or imported from CDs are saved in your iTunes folder by default and are not deleted by uninstalling iTunes. Backing up your iTunes Library regularly is recommended.
    After successfully uninstalling iTunes and QuickTime, please ensure you have upgraded to the latest Service Pack for Windows by installing all updates available to you on Microsoft Windows Update:
    http://update.microsoft.com
    Once you have the latest Service Pack for Windows installed, download and install iTunes for Windows (which includes QuickTime):
    http://www.apple.com/itunes/download
    If you continue to experience difficulty with this issue, you may wish to contact Apple technical support. A representative will be able to tell you about Apple's complimentary and fee-based support options and can help you determine which option might be most helpful.
    Please find the appropriate phone number here:
    http://www.apple.com/support/contact/phone_contacts.html
    Thank you for contacting iTunes Store Support. Have a nice day!
    Sincerely,"
    AND IT WORKED happy customer.

  • Gray progress bar on boot twice now

    I've experienced a gray bar on boot twice now. I upgraded to a 2011 MBP and transferred my 500 GB Toshiba SSD from last year's MBP into the new model, into the SuperDrive slot using a MCE OptiBay (I put the existing SSD into the OptiBay since the SuperDrive's SATA channel is 3Gbps and the Vertex III I have on order is 6Gbps and will use the system's primary SATA channel). The drive has worked flawlessly for a year, and Disk Utility reports no errors, but Googling the issue indicates that the gray progress bar appears when fschk is checking the drive. I've noticed that my wallpaper has been slow to appear on both occasions, defaulting to the OS X default for a few moments after I log in.
    I'm concerned that my drive is going bad, but cannot find any indication that this is the case beyond the intermittent gray progress bar on boot. At least one time after boot the progress bar occurred after a Software Update (Security and Safari). My system's logs also give me no indication what the problem might me. Here is one boot log that resulted in a gray progress bar - https://gist.github.com/922265.
    I'd appreciate any help on the matter. Thanks!

    I would expect either issue to produce a slow boot either time if either package were the problem. Both packages have been installed for a couple of yours without issue. Also, both apps produce these errors on normal boots as well. I wonder if the errors have to do with the fact that the applications weren't installed on the OS, rather they were already present after I put the old HD in the new system and "upgraded" the OS in place using the system disc that came with the new laptop in order to have the Sandy Bridge drivers installed.
    I was hoping you or someone might spot something slightly more definitive in the logs. The time gaps are definitely interesting to me. I think I'll see if I can turn on verbose logging and get any more telling information. Thanks for your help!

Maybe you are looking for