This is a migrated thread and some comments may be shown as answers.
Javascript Client API - How do I attach OnClientFinished event to my XAP embedded into ASP.NET page using <object>
1 Answer 35 Views
This is a migrated thread and some comments may be shown as answers.
hkdave95
Top achievements
Rank 2
hkdave95 asked on 06 Aug 2009, 06:45 AM
Hi

I am trying to display a RadProgressBar on my spalsh page.

How do I signal my page to say when the RadProgressBar has completed?

I would lik eto attach a OnClient event to my <object> using InitParams. To fire when the RadProgressBar has completed.

My Page as it stands is ...

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Heron.Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title> 
    </title> 
    <telerik:RadStyleSheetManager id="rssmDefault" runat="server" /> 
    <link href="css/base.css" rel="stylesheet" type="text/css" /> 
</head> 
<body> 
    <form id="formHeron" runat="server">  
        <div align="center" style="vertical-align: middle; width: 100%; height: 100%;">  
            <telerik:RadScriptManager ID="rscmDefault" runat="server">  
                <Scripts> 
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
                </Scripts> 
            </telerik:RadScriptManager> 
            <telerik:RadAjaxManager ID="rajmDefault" runat="server">  
            </telerik:RadAjaxManager> 
            <telerik:RadSkinManager ID="rskmDefault" Runat="server" Skin="Default">  
            </telerik:RadSkinManager> 
            <asp:Image ID="iLogo" runat="server" ImageUrl="images/logo.png" /> 
            <br /> 
            <br /> 
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">  
                <param name="source" value='<%= ResolveUrl("~/ClientBin/ProgressBarControl.xap") %>' /> 
                <param name="background" value="#333333" /> 
                <param name="minRuntimeVersion" value="3.0.40624.0" /> 
                <param name="autoUpgrade" value="true" /> 
                <param name="windowless" value="true" /> 
                <param name="InitParams" value='<%= ProgressBarInitParameters %>' /> 
                <href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">  
                    <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>  
                </a> 
            </object> 
        </div> 
        <telerik:RadCodeBlock ID="rcobDefault" runat="server">  
            <script type="text/javascript" language="javascript">  
                function onRadProgressFinished()  
                {  
                    window.location = 'pages/home.aspx';  
                }  
            </script> 
        </telerik:RadCodeBlock> 
    </form> 
</body> 
</html> 

Kind Regards

David

1 Answer, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 12 Aug 2009, 09:22 AM
Hi hkdave95,

We deeply apologize for the delay reply.
Please find attached a sample project that shows how to implement interaction between JavaScript and Silverlight.
You can also take a look at the following articles:

http://silverlight.net/quickstarts/htmlbridge1.aspx

I hope that this will help you.
Please let us know if you have any other questions or you need more help.

Greetings,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Asked by
hkdave95
Top achievements
Rank 2
Answers by
Bobi
Telerik team
Share this question
or