View Full Version : SCRIPT works in IE6 but not in IE8
cherrycreek
01-25-2010, 10:35 PM
Hello,
In IE6 below vbscript works fine and message box pops up until mDoneRefreshing is set to true in Setup.asp page. But in IE8 mDoneRefreshing is not getting set to true and message box goes into infinite loop. In Setup.asp i refresh some data and set mDoneRefreshing to true. But for some reason it is never gettng set to true. Any ideas.
top.mDoneRefreshing = false
Top.SetupFrame.location.href = "../DT/Setup.asp"
do While not top.mDoneRefreshing
MsgBox "table refresh in progress. Please wait"
loop
Thanks for your help.
Old Pedant
01-26-2010, 06:51 PM
Terrible terrible way to do this!
You are LOCKING OUT all other actions during your WHILE loop.
So whether it works or not is mainly a matter of luck.
You *MUST* change to using a setTimeout that makes the check!
Is there a reason you are using VBScript in the browser?? You do know that *only* MSIE will work with the code when you do that, don't you?
***********
EDIT: OOPS! See next post.
Old Pedant
01-26-2010, 07:13 PM
Oh, silly me... I see! While the MsgBox is being displayed, you aren't locking anything out.
Okay, but still the user has to keep hitting the OK button to dismiss the MsgBox...only to have it pop up again with the same message.
So it would still be better to just use a <div> that you pop "on" the page and then use the timeout to periodically check for the flag, at which time you remove the popon.
cherrycreek
01-28-2010, 01:06 AM
Yes, user keeps hitting ok message until mDoneRefreshing is set to true in ../DT/Setup.asp page. In IE6 i get the messgae once and it is over. But in IE8 i keep on getting this message. I believe mDoneRefreshing is getting set to true in ../DT/Setup.asp but for some reason it is not being passed on to current page. Any ideas. And i'm using compatiilty mode in IE8.
Thanks for your time.
Old Pedant
01-28-2010, 03:02 AM
Hmmm...I don't see it.
I assume that both the main page and the frame are from the same domain??
cherrycreek
01-29-2010, 07:40 PM
Yes both main page and frame are in same domain. Variable mDoneRefreshing is getting set to true in setup.asp, but for some reasons it is not reflected in main page. I even replaced this variable with session variable but still no luck. Its amusing.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.