PDA

View Full Version : Page.GetNavigationHistory


Mina
03-08-2008, 03:04 PM
Page.GetNavigationHistory

Would return a table containing all the last few pages visited or at least the one last page that "Page.Navigate(Backwards)" would jump to.

If there's another way to do this for now please inform me.
Thanks!

--Mina

longedge
03-08-2008, 03:25 PM
Check out the "Page.Navigate(PAGE_BACKWARD);" action. It does just what you want I think.

Mina
03-08-2008, 03:27 PM
Hi Longedge.

I don't want to do a Page Jump. I just want the page name (which was last visited by the user) returned into a string variable

Thanks for replying though.

--Mina

Dermot
03-08-2008, 03:36 PM
In the pages On Close event set a variable to the page name.

holtgrewe
03-08-2008, 03:53 PM
You could manually store all page navigation:

--Global Functions
History={}
function Page_Hist(page)
x=Table.Count(History)+1
Table.Insert(History, x, page)
end

--Page On PreLoad (table the page name in a History navigation table)
Page_Hist("Page 1")

longedge
03-08-2008, 03:57 PM
:lol I started a reply along the lines of Dermot's response and that you could use a global function to add each page to a table or variable as you went. Then as I've done so many times in the past I went off on my own version of what you had asked rather than the actual question :D

Mina
03-08-2008, 04:54 PM
Thanks for the help guys :)