Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
WebDataMenu doesn't navigate to URL if alert or confirm is in client side javascript
posted

I'm binding a WebDataMenu to an xml file like so:

<ig:WebDataMenu ID="TopNavigationMenu" EnableViewState="true" runat="server" GroupSettings-Orientation="Horizontal" 

GroupSettings-ExpandDirection="Down" GroupSettings-AnimationType="ExpandAnimation"

GroupSettings-AnimationDuration="1" EnableTheming="True" > 

<ClientEvents ItemClick="WebDataMenu1_ItemClick" />

<DataBindings>

<ig:DataMenuItemBinding DefaultText=" " TextField="Text" ValueField="Value"  ImageUrlField="ImageUrl"

                            KeyField="Key" NavigateUrlFields="Url" TargetField="Target" ToolTipField="Text" />

</DataBindings>

</ig:WebDataMenu>

 The client side javascript looks like this:

function WebDataMenu1_ItemClick(sender, e) {            

            return confirm("Proceed with menu click?");

}   

If I take the confirm line of javscript code out then clicking on a menu item goes to the proper url defined in the xml config file. With the confirm line in, it doesn't matter if I choose Ok or Cancel, the page remains the same. This behavior also occurs with alerts. Any help would be appreciated?

 

 

Parents Reply Children
No Data