|
Rank: Advanced Member Groups: Member
Joined: 9/6/2007 Posts: 133
|
The following doesn't seem to work with Google Chrome:
<script>eo_GetObject('<%=ReadyToSubmitDialog.ClientID %>').show(false);</script>
Also - sort of related - your sample showing the dialog in the documentation which has just "esc" to close doesn't seem to work with Google Chrome.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Thanks for the information. We will look into it and see what we can find.
|
|
Rank: Advanced Member Groups: Member
Joined: 9/6/2007 Posts: 133
|
So - it's not a known issue? You have no "quick fix" to allow me to show a dialog via javascript in Chrome?
EDIT: I don't need a quick fix after all - will use a different control for this. Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
The ESC key is known issue that we are still working on. However we are not aware of any issue with show dialog with Javascript. You can take a look of our online demo with Chrome and you will see it displays the dialog fine. So if you provide a test page that reproduces the show problem, we will be happy to dig into it.
|
|
Rank: Advanced Member Groups: Member
Joined: 9/6/2007 Posts: 133
|
I see no working demo that shows the dialog using javascript. I see a demo where the ShowButton property is used, but I am referring to a javascript command that does not rely on that. Anyway fix it or don't - I can work around it for my purposes...
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Almost all dialog demos uses JavaScript to display dialog. The one that does not use JavaScript is the one you saw.
|
|
Rank: Advanced Member Groups: Member
Joined: 9/6/2007 Posts: 133
|
OK, ok - you're right. But - there is still an issue, of sorts. The following works in IE and Firefox, but not Chrome:
<eo:dialog topmost="True" id="TestDialog" runat="server" cancelbutton="Close"> <ContentTemplate> <div style='padding: 20px; background-color: White; border: #e0e0e0 1px solid;'> Dialog contents here...</div> <asp:Button runat="server" ID="Close" Text="Close"></asp:Button> </ContentTemplate> </eo:dialog> <script>eo_GetObject('TestDialog').show(false);</script>
I was trying the above approach as a way to show the dialog server-side, by setting a Literal control to the javascript snibbet in the above. Anyway - I've move on. I don't know why the above didn't work in Chrome since other inline script commands work fine...
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
You call show to soon. IE and FireFox doesn't seem to care about this but it appears Chrome does care. Try to change your code to:
setTimeout("eo_GetObject('TestDialog').show(false);", 10);
The easiest way to display the dialog from server side is to set the dialog's InitialState to Visible on the server side. That way the dialog automatically takes care of such timing issues.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 9/6/2007 Posts: 133
|
Perfect! Thank you.
|
|