View Full Version : Freezing
Bruce
11-03-2003, 11:00 PM
For some reason this is causing my first page some issues. FREEZING :( I Can't go any where.
flash = Folder.DoesExist("C:\\flash");
-- is the flash there?
if flash==true then
Page.Jump("Page1");
else
Page.Jump("Page2");
Folder.Create("C:\\flash");
end
Hummmm :rolleyes:
Colin
11-03-2003, 11:09 PM
Technically, any call to Page.Jump should be your last action. You see, once you jump to another page, you're no longer on the page where your script is executing anymore. The results can be "undefined". In your example, move the
Folder.Create("C:\\flash");
before the Page.Jump("Page2");
as in
flash = Folder.DoesExist("C:\\flash");
-- is the flash there?
if flash==true then
Page.Jump("Page1");
else
Folder.Create("C:\\flash");
Page.Jump("Page2");
end
Bruce
11-03-2003, 11:41 PM
Ahhh... it's still doing it. :confused:
Corey
11-03-2003, 11:58 PM
Hi Bruce, I think you are trying to jump from page1 to page1 maybe? Create a 3 pager and paste this code on Page1, works over here:
flash = Folder.DoesExist("C:\\flash");
if flash then
Page.Jump("Page2");
else
Folder.Create("C:\\flash");
Page.Jump("Page3");
end
Note that you do not have to test the variable for a specific value like if flash==true you just have to see if it's set, i.e. "if flash", easier on the brain... :)
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Lorne
11-04-2003, 12:44 AM
Yep, that's what it looks like to me too: jumping to Page1 from Page1.
Since the code on Page1 jumps to Page1...you get stuck in what programmers call an endless loop.
Bruce
11-04-2003, 01:12 AM
Ok, how would I tell it to just continue to it's own page if i'm already on Page 1?
Corey
11-04-2003, 01:23 AM
Just put this on Page1 OnShow:
flash = Folder.DoesExist("C:\\flash");
if not flash then
Folder.Create("C:\\flash");
Page.Jump("Page2");
end
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Bruce
11-04-2003, 10:41 AM
Of course, drop kick the jump to page1 completely. Ok. :rolleyes: :D
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.