Rank: Newbie Groups: Member
Joined: 7/14/2008 Posts: 2
|
Hey,
I am trying to figure out how to use your progress bar as a splash screen, or web application loading screen. I am loading alot of datasets into the server memory for faster reference and I am looking for a progress bar that i can trigger on page load and update as it cycles through the datasets. I have tried triggering the the click event of the button using javascript but i haven't had any success.
<script type="text/javascript"> window.onload = function() { // document.forms[0].btnStart.value = "true"; document.all("btnStart").click(); } </script>
Let me know if you guys have any better suggestions or easier methods.
Thanks,
Adam
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi, You need to first wait until the progress bar is loaded by putting your code inside ClientSideOnLoad:
Code: HTML/ASPX
<eo:ProgressBar ClientSideOnLoad="start_progress_bar" ...>
....
</eo:ProgressBar>
You then do:
Code: JavaScript
eo_GetObject("ProgressBar").startTask();
That should get you going. Thanks! Thanks
|
Rank: Newbie Groups: Member
Joined: 7/14/2008 Posts: 2
|
wow, thanks for the super fast reply.
That got it going. THANKS ALOT!
|