Hey all,

I know a couple of you have said this is a simple problem to solve, but I'm
just not gettin' it. Now it has become a stumbling block to the QA roll-out
of my site :(

The example below for a history array was kindly offered by one of you guys
(thanks Jordi).. guess I'm just too dense to make it work <g>
MY LoadPanel is called 'mainContent' and its working perfectly to load my
content into the layers, but I absolutely have to have the history function
working. 

I *think* what I'm doing wrong is in how to get the URL of the page loaded
into the array. The following is what is on every link to each page I load
into the 'mainContent' layer:

javascript:mainContent.setURL('file2.html')

So.. forgive me gurus if this is a dumb question.. 
but.. do I put the 'loadPage' function call on the same line or do I do it
someplace else ?? What would I put in the 'back' and 'forward' button images
to make the history work ?

---------------------
var myHistory = []

function loadPage(url) {
    myHistory.push(url)
    myLoadPanel.load(url)
}

function back() {
   myLoadPanel.load(myHistory.pop())
}

--------------------------
I'm sorry if this is a lot, but I've banged my head agains this wall and
gotten nowhere for a couple of weeks.. now I really need a solution. I'm NOT
using an IFRAME on my pages.

Many Humble thanks  !

...and please 'reply all' so that any replies will go to the CC address
included here :). All my mail from this list typically goes to my work
e-mail and I need to test this at home over the weekend.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to