rohanforu
7 Jul 2009, 2:14 PM
I am showing transparent screen using a popup.
On an onclick event of a button Iam showing a popup in an ‘if’ block, but the popup is only shown when if returns from the if block, why it behaves like this? Is there any other way to show a popup in an ‘if’ block?
Below is the code
if(Condition){
popup.show();
do some work;//// it takes 2-3 sec. This time my screen is blocked with popup
popup.hide();
}
But it is not working, If i remove popup.hide(), popup is shown after the IF block executed. So at that time it is useless
Can any one help me in this.
Thanks
Rohan
On an onclick event of a button Iam showing a popup in an ‘if’ block, but the popup is only shown when if returns from the if block, why it behaves like this? Is there any other way to show a popup in an ‘if’ block?
Below is the code
if(Condition){
popup.show();
do some work;//// it takes 2-3 sec. This time my screen is blocked with popup
popup.hide();
}
But it is not working, If i remove popup.hide(), popup is shown after the IF block executed. So at that time it is useless
Can any one help me in this.
Thanks
Rohan