PDA

View Full Version : SIngle Page with A web object help



user1452
07-07-2006, 10:28 AM
hello guys, please help me, i have a page with a web object that displays a "home" html page with links, so the user can navigate the web through it. question is, there is no "back button" that will set the page or the web to its "home" page? how do I do this?

rhosk
07-07-2006, 10:31 AM
Web.Back();

user1452
07-07-2006, 10:33 AM
Web.back? I should link that to a button or to the web object?
....

so I made a button on top of the web object (named home) and on the button i set it to 01:web.back("home"); ... I previewed the file, the html works and tried to browse a couple of pages away, but when i click the button with the back function It just refreshes the current page... is something missing on the script?

rhosk
07-07-2006, 10:44 AM
Yes, it's "case sensitive".

Web.Back("home");

not

web.back("home")

user1452
07-07-2006, 10:51 AM
Oh, yes the case are exact and correct, but it still doesnt work, the button with that script just refreshes the current page on the web object... I want it to go back to the home page...

rhosk
07-07-2006, 10:52 AM
Post it (via export) and we can take a look at it/correct it. Trust me, it works.

Edit: Maybe I just don't quite understand exactly what you're trying to do. A sample project would be best.

rhosk
07-07-2006, 03:12 PM
Yeah, I didn't think you'd be back.

Good luck!

Dermot
07-08-2006, 01:21 AM
Web.Back() requires the name of the web object. Using Web.Back("home") would only work if your web object was named "home".

Also as the action name suggests, Web.Back() will take you back to the previous page you viewed which will not always be your home page.

To make it so that when they click the button it takes them back to the home page use Web.LoadURL("Web1", "Your Home Page Address")

I would add a Home button and a Back button.