go to stack URL

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gwbasic
Posts: 34
Joined: Tue Mar 16, 2010 6:39 am

go to stack URL

Post by gwbasic » Wed Aug 25, 2010 4:04 am

Did this:

go to stack URL field f_url

works fine in the IDE but does not work anymore in stand alone (Win XP).

Has anyone experienced this? Am I issing something here?

gwbasic
Posts: 34
Joined: Tue Mar 16, 2010 6:39 am

Re: go to stack URL

Post by gwbasic » Wed Aug 25, 2010 5:35 am

After further testing I made a correction by put quotes around the field name. Some of the rev app on the web server doesn't really work when launched from web.

I wanted to show a message using a label l_wait "Loading application".

on OpenStack
set the visible of field "l_wait" of card "card_main" to false
end OpenStack

on mouseUp
--go to stack URL "http://localhost/test.rev" in the window of this stack
set the visible of field "l_wait" of card "card_main" to true
go to stack URL field "f_url" --in the window of this stack
set the visible of field "l_wait" of card "card_main" to false

end mouseUp

The "Loading application" shows up but doesn't go away anymore. What am I missing here?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: go to stack URL

Post by Klaus » Sat Aug 28, 2010 1:16 pm

Hi gw,

Code: Select all

...
go to stack URL field "f_url"
## Here you change "the defaultstack"...

set the visible of field "l_wait" of card "card_main" to false
## ... so this button is not found and you would get an error in the IDE!
...
Just add the stackname to this line and it should work!

Code: Select all

...
set the visible of field "l_wait" of card "card_main" OF STACK "the stack with this script in it" to false
...
Best

Klaus

Post Reply