- Create Account

Page Loading

Forums > Inline HV Scrollbox > Page Loading
Author
Message

1) njpmr Group: Members
Posts: 5 Joined: 19 Sep 2005 Location: usa IP: 67.80.--.--
I added 2 scoll objects on a page and all is well until I try to use the load page functionality. When you go to load a page in either scroll object it wipes out the other page. I believe it has to do with the way div is being nulled out in the ispt.load function but Im clueless as to how to fix it. Help? Thanks
njpmr

2) Angus Turnbull Group: Moderators
Posts: 4235 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
Hmm. Have you got a link to your work in progress?

Also, perhaps consider using the HTMLHttpRequest script instead, which can be used to implement a loading scrollable area.

- Angus.

3) njpmr Group: Members
Posts: 5 Joined: 19 Sep 2005 Location: usa IP: 67.80.--.--
I was just prototyping to see how multiple scrollers would work so i just took hvscroll.html from your download and duplicated / renamed the second scroller as you directed. Everything worked fine except for that page loading....the feature that would really help me out. --- Thanks Angus
njpmr

4) Angus Turnbull Group: Moderators
Posts: 4235 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
You're quite right, actually.

Open up HVSCROLL_COMMENTED.JS and find this line in the "function InlineScrollbox(myName, pageName)" block:

 this.div = null;

Insert a this new line under that (without deleting anything):

 this.divCont = null;

Mea culpa -- that should've been in there to begin with. With that done, it worked well for me.

Good luck - Angus.

5) njpmr Group: Members
Posts: 5 Joined: 19 Sep 2005 Location: usa IP: 67.80.--.--
So easy....when you know how, huh. Works great. Should I use your script commercially I shall certainly donate. I haven't gotten such prompt support from most of the commercial software I use! Thanks , njpmr
njpmr

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.