Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Modal pop up is appearing and disappearing for the first time in aspx page only in mozilla 4.0.1 .I am using a JavaScript to show this.

Can someone tell me why dis is happening?
Posted
Updated 8-May-11 19:18pm
v3
Comments
Mahendra.p25 9-May-11 1:12am    
post you code.

1 solution

If you are doing some partial postback operation in previous control and before the completion of the server side event , You are poping up the modelpopup. Since the model pop is client side event it pops up, but as soon as the server side event completes popup is getting closed.

You can simply avoid this time gap by putting some timeout in your previous control which is doing that partial post back.

Eg:
1.Model pop up is linked to a button click
2.You have a textbox inside an update panel which call server side text change event.


Create an Onchange event for the textbox and in the event do a setTimeOut() and one second. Which is delay you server side event to a second and it ensure that there is no other popup open/close to happen.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900