Ok, got the loadPanel 'history' function problem solved, so I'll share the
solution here:

var myHistory = new Array()

var historyPlace=0
myHistory[historyPlace]="psmain.html" //put initial page into loadPanel

function myLoad(fileName) {
myHistory[++historyPlace]=fileName
mainContent.setURL(fileName)
}

function goBack() {
if (historyPlace)
mainContent.setURL(myHistory[--historyPlace])
}

Thanks to those of you who lent your assistance :)

Now my new question. The above works perfectly, but it has a twist. The
'psmain.html' is the inital page loaded into my loadPanel. At first, I set
the size and position of that layer with this:

DynAPI.onLoad=function() {
        mainContent = new LoadPanel("psmain.html");
    mainContent.setHTML();
        mainContent.setSize(612,1200); // height will be overwritten by
default
        mainContent.moveTo(171,112);
        mainContent.setBgColor('white');

That works fine.. until you go 'back' to 'psmain.html' using the new history
function. When going 'back' to it in the array, the loadPanel size is set
back to 50px high ! I've tried a couple of different things to reset the
size to what I specified, but that messes things up.

What, or where, do I need to reset the loadPanel size to my specs so the
entire 'psmain.html' page gets displayed ???

Thanks !
Diane R Tomlins


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to