Welcome Guest Search | Active Topics | Sign In | Register

Dialog control doesn't display in WebKit browsers (Chrome & Safari) Options
Abdu
Posted: Thursday, September 29, 2011 3:37:11 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28
I have a page with a dialog control which displays only during a postback. During the postback, a Javascript script is injected into the page using ClientScript.RegisterStartupScript. The script is a method which calls the show() method of the dialog.

The dialog shows up fine in IE, Firebox and Opera but not in webkit browsers. I verified the javascript gets called in these browsers during the postback by adding an alert just before the dialog's show() but the show() method doesn't seem to have any effect. Visually I don't see anything.. not a flicker.

I was wondering if anyone knows what might be the problem. If needed I will try to provide a sample app.

eo_support
Posted: Thursday, September 29, 2011 4:53:24 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This usually occurs when the script is called too early before the dialog has been initialized. Try to call the dialog's Show method on the server side. That will ensure it waits for the dialog to be loaded before trying to display it.

Thanks!
Abdu
Posted: Thursday, September 29, 2011 6:27:41 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28
I added a 300 millisecond delay and it worked. Thanks.
eo_support
Posted: Thursday, September 29, 2011 7:17:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. That will work!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.