I have a dock menu which is working with jquery ...
from One item is like this:
gt; & Lt; Span & gt; Test & lt; / Span & gt; & Lt; / A & gt;
I'm using TeleRock Red Windies for Windows popups ...
When I'm using a button or something like that, pop up Everything is okay to do the window ...
But when I'm using href of that menu it seems that there is a problem.
The href in this item is like this:
& lt; One class = "dock-item" href = "javascript: open window ();" Title = "test" & gt; & Lt; Img src = "JQueryDocMenu / Images / 1.png" alt = "test" /> gt; & Lt; Span & gt; & Lt; / Span & gt; & Lt; / A & gt;
RadWindowManager and this window is like this:
& lt; Telerik: RadWindowManager id = "RadWindowManager1" runat = "server" ReloadOnShow = "True" ShowContentDuringLoad = "False" VisibleStatusbar = "False" behavior = "Default" InitialBehavior = "None" Enabled EmbeddedSkins = "False" EnableEmbeddedBaseStylesheet = "False" Skin = "SunsetBM" font-name = "Tahoma" style = "Z-index: 8000," DestroyOnClose = "True" & gt; & Lt; Windows & gt; & Lt; Telerik: RadWindow id = "window1" runat = "server" behavior = "close" navigateUrl = "~ / a / window1.aspx" OnClientClose = "OnClientClose" deleteonclose = "True" modal = "True" & gt; & Lt; / Telerik: RadWindow & gt; & Lt; / Windows & gt; & Lt; / Telerik: RadWindowManager & gt;
And the JavaScript code is like this:
Popup Radwondo (it's okay) in such a way that onclick event of a button:
protected void Button1_Click1 (Object Sender, EventArgs e) { Page.RegisterStartupScript ("callWin", "& lt; script type = 'text / javascript' & gt; open window (); & lt; / script & gt;"); }
How can I fix this problem?
In the future thanks in advance
Do you need to open RadWindow from the server? If not, you can just use it:
& lt; Class = "dock-item" href = "javascript: zero (0)" onclick = "openWin (); return returned" & gt; Yourlink & lt; / A & gt; ...... & lt; Script type = "text / javascript" & gt; Function open () {redopen (tap, "window 1")} & lt; / Script & gt;
If you want to open a window from the server, then you just have to set VisibleOnPageLoad = true.
Comments
Post a Comment