Indigo Rose Software
  #1  
Old 11-03-2003
Bruce's Avatar
Bruce Bruce is offline
Indigo Rose Customer
 
Join Date: Jun 2001
Location: California
Posts: 1,769
Freezing

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 :
Reply With Quote
  #2  
Old 11-03-2003
Colin's Avatar
Colin Colin is offline
President
 
Join Date: Jan 2000
Location: Indigo Rose Software
Posts: 126
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
Reply With Quote
  #3  
Old 11-03-2003
Bruce's Avatar
Bruce Bruce is offline
Indigo Rose Customer
 
Join Date: Jun 2001
Location: California
Posts: 1,769
Ahhh... it's still doing it. :confused:
Reply With Quote
  #4  
Old 11-03-2003
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
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
Reply With Quote
  #5  
Old 11-04-2003
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
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.
Reply With Quote
  #6  
Old 11-04-2003
Bruce's Avatar
Bruce Bruce is offline
Indigo Rose Customer
 
Join Date: Jun 2001
Location: California
Posts: 1,769
Ok, how would I tell it to just continue to it's own page if i'm already on Page 1?
Reply With Quote
  #7  
Old 11-04-2003
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
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
Reply With Quote
  #8  
Old 11-04-2003
Bruce's Avatar
Bruce Bruce is offline
Indigo Rose Customer
 
Join Date: Jun 2001
Location: California
Posts: 1,769
Of course, drop kick the jump to page1 completely. Ok. :
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 07:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software