This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
What are you trying to do exactly? Are you just trying to keep from adding functions from page to page? Then you can use external JS files.
I am building a demo of a voice mail application interface. Each digit selection made by the user on numeric virtual telephone keypad takes him to a new page, the requested new menu, that also presents the user again with the keypad for further selections and so on. (Basically the user navigates using this simulated telephone keypad as he would a voice app using a real phone.)
Every time a new page loads, presenting new menu options, I would like to display, in a frame positioned besides the onscreen keypad on the desktop, menu tracking information to allow the user of the demo to visually see his history of activity.
Since the history object does not allow access to its location properties I am trying to use a stack to store each location (or just some string representation of it) in the stack. By doing so I can use the contents of the stack to create a call flow diagram, where each item in the stack would be a node (green box if you run the script below) representing previous user selections.
ps. By the way, I hope Shona said yes?
[made it formatted - Eric] [ June 21, 2005: Message edited by: Eric Pascarello ]
Joined: Nov 08, 2001
You can use a hidden frame to keep track of the changes. Bascially store the information into a array on that page and you would be able to use it.
I do not have time to look at your code right now to see what to change to get this to work exactly.
Eric (She said yes - getting married Oct. 1st)
Joined: Apr 13, 2005
Many thanks, and all the very best for your wedding plans.