Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

JavaScript not firing with UpdatePanel -- Page.ClientScript.RegisterStartupScript

$
0
0

I have a Wizard Control and I have an UpdatePanel around the Wizard Control. It works for the most part and its great but I am issues with JavaScript not firing properly ...

I am missing something that needs to be done so that JavaScript fires on AJAX requests ...

Listing below the specific pieces of JavaScript I am having issues with ....

The Script I am trying to get working is as listed below: 

<td><scripttype="text/javascript">var hb1 =new HelpBalloon({dataURL:'help/popUpHelp.htm' });</script></td>

I have included the proper libraries for the HelpBalloon (HelpBalloon.js and "Scriptaculous" and "Prototype" folders) ..  

It works for regular post-backs and the first time the page is loaded but not for AJAX requests. On AJAX requests the HelpBalloons disappear from the page

but the script is still present when I do the "View Source" on the page.

There is also other JavaScript I am trying to fire using the Page.ClientScript.RegisterStartupScript method but that is not working either ...

--------------------------------------------------------------------------------------------------------- 

String strPop = "<script language='javascript'>window.open('GeneratePDFProposal.aspx','Proposal');</script>";

// Get a ClientScriptManager reference from the Page class.ClientScriptManager cs = Page.ClientScript;

Type cstype = this.GetType( );

cs.RegisterStartupScript(cstype,

"ProposalPopup", strPop,false);

-------------------------------------------------------------------------------------------------------------------------

Including a Code Snippet where I define my Wizard Control ..

<

asp:ContentID="ctWizard"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Server"> --- There is a master Page

<asp:UpdatePanelID="UpdatePanel8"ChildrenAsTriggers="true"UpdateMode="Conditional"runat="server"><ContentTemplate>

<asp:WizardID="Wizard1"runat="server" ....><WizardSteps>

   Wizard Steps Defined here

</WizardSteps>

</ContentTemplate>

</UpdatePanel>

 Will greatly appreciate ur help


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>