|
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.
|
|
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!
|
|
Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 28
|
I added a 300 millisecond delay and it worked. Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. That will work!
|
|