Hi There
I am trying to create an extension to the LoadPanel widget that will
keep the history of a LoadPanel and allow users to navigate 'back' and
'forward'. The code I have so far is:
LoadPanel.prototype.InitialiseHistory=function() {
this.history=new Array()
this.historyLoc=-1
this.historyLen=-1
this.pnloc=1
this.pnlen=1
}
LoadPanel.prototype.UpdateHistory=function() {
this.historyLoc+=this.pnloc;
this.historyLen+=this.pnlen;
this.history[this.historyLoc] = this.getURL();
this.pnloc=1;
this.pnlen=1;
}
LoadPanel.prototype.Previous=function() {
if (this.historyLoc>0) {
this.pnloc=-1;
this.pnlen=0;
this.setURL(this.history[this.historyLoc-1]);
}
}
LoadPanel.prototype.Next=function() {
if (this.historyLoc<this.historyLen) {
this.pnloc=1;
this.pnlen=0;
this.setURL(this.history[this.historyLoc+1]);
}
}
The problem I have at the moment is that the 'Previous' and 'Next'
functions will only work in IE5.5 if I have an alert in the function. I
don't know why. Can anyone enlighten me?
Cheers
Chris Williams
IT Analyst - HRIT Asia Pacific, Cisco Systems (Australia) Pty Ltd.
_____________________________________________________
Phone: +61 2 8446 5020 Fax: +61 2 8446 8410
Mobile: 0402 896 764 E-mail: [EMAIL PROTECTED]
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help