[thelist] Re: thelist digest, Vol 1 #1470 - 31 msgs

Kevin Raleigh krr at ix.netcom.com
Mon Jul 9 00:33:54 CDT 2001


I appreciate your quick response.

I tried the approach you mention but haven't been able to make it
work.

var maxPages = 5;
var ind=0
 function next(){
 if(ind<thepages.length && thepages.length!>maxPages){
 top.main.location=thepages[ind+1]
 ind++
  }
}

the error as reported: expected closing bracket

if(ind<thepages.length && thepages.lengt  "closing bracket" h!>maxPages){

How can it expect a closing bracket in the middle of the work length?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I actually have one other item that is got me bugged.
This link points at two versions of the same code.

The first one won't scroll all the way back to page 1,
The second one will.

I setup the first folder two emulate my websites layout for one demo and
in the second demo I used a flat file approach. No Folders!

Can you tell me why one works and the other doesn't?
http://home.netcom.com/~krr/navigation/

If you can add any insight I would really appreciate it!

Thank You
Kevin

> Message: 6
> Date: Sat, 07 Jul 2001 23:05:18 -0700
> To: thelist at lists.evolt.org
> From: Anthony Baratta <Anthony at Baratta.com>
> Subject: Re: [thelist] prev and next
> Reply-To: thelist at lists.evolt.org
>
> All you need is a little "state" checking. If int is = 0 (or one), don't
to
> previous. If int is greater than (or equal to) the total number in the
> array, don't do next. You can also replace the image src with a space.gif.
> ---
> Anthony Baratta
> President
> Keyboard Jockeys







More information about the thelist mailing list