Welcome Guest Search | Active Topics | Sign In | Register

Can not get Server Side Task - Advanced 1 to work Options
Sam Andoni
Posted: Tuesday, April 28, 2009 7:07:40 PM
Rank: Newbie
Groups: Member

Joined: 4/28/2009
Posts: 2
I am looking to implement a progress bar. After some work I was able to create a web page and gets the server side progress bar working fine. Now I am trying to get the progress bar to fire events before and after. I realize that you have this in one of your example code. I tried to follow Server Side Task – Advanced 1 example. So I copied the following code to my default.aspx page:
<script type="text/javascript">

function OnProgress(progressBar)
{
var extraData = progressBar.getExtraData();
if (extraData)
{
//The following code demonstrates how to update
//client side DHTML element based on the value
//RunTask passed to us with e.UpdateProgress
var div = document.getElementById("divStatus");
div.innerHTML = extraData;
}
}

</script>

And then referenced the progress bar to include OnProgress such as

<eo:ProgressBar ID="ProgressBar1" runat="server" BackgroundImage="00060301"
BackgroundImageLeft="00060302" BackgroundImageRight="00060303"
ControlSkinID="None" IndicatorImage="00060304" RepeatIndicatorImage="False"
ShowPercentage="True" StartTaskButton="Start1" StopTaskButton="Stop1"
Value="30" Width="250px" ClientSideOnEvalVar="OnProgress">
</eo:ProgressBar>

I also adjusted e.UpdateProgress to include test such as (0,"starting");

Unfortunatlly, I am still missing something that I am not sure what is. The preogress bar just run as before without desplaing “starrting” or “end” as in the example.

Can you direct me to what else I am missing

Thanks in advance

Sam

eo_support
Posted: Tuesday, April 28, 2009 8:12:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Please compare the sample code with your code line by line. You have some obvious mistake in your code and if you just compare the sample with your code you should notice the difference right away. We are not in a position to check your code every time you have a problem.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.