Actually I have no way of reverting back (testing) on
a previous version - the company I work for have
upgraded to version 5 completely.
JJ
--- Garth Penglase <[EMAIL PROTECTED]> wrote:
> earlier versions would be great too. really
> appreciate it since this
> of great interest to me.
> cheers
> Garth
>
> >Hi Garth,
> >
> >Attached is a file which demonstrates how to do an
> >ebay style navigation in Witango as described by
> >Nicholas below. There is only a small piece of
> extra
> >code required - I have included comments in the
> file
> >but basically a limit is set on the number of
> results
> >to be returned and from that the total number of
> pages
> >is calculated with a simple for loop to show the
> |1|
> >|2| |3| stuff.
> >
> >This could be modified to work like the google
> >(Gooooooogle) search results navigation which is
> >similar.....
> >
> >I would have liked to make this ready to go and set
> up
> >a resultset to demonstrate on - this wasn't
> possible
> >though as in the search I needed to show where the
> >limit (@@request$limit) and start (<@ARG _start>)
> >variables are used...
> >
> >Also can I make the suggestion of implementing this
> >with the use of a custom tag - that way anytime you
> >want this functionality all you need to do is add 2
> >lines of code! - If anyone needs to know how to do
> >this I can post a solution/instructions.
> >
> >Finally the attached will only work with version 5
> >server (which I might add is very reliable and
> stable)
> >....if necessary I can post a taf that will work
> with
> >earlier versions.
> >
> >Regards,
> >JJ
> >
> >--- Garth Penglase <[EMAIL PROTECTED]> wrote:
> >> I'm interested in how best to do this in Witango
> >> Garth
> >>
> >> >Hi Nicholas,
> >> >
> >> >Why does it have to be done in Javascript
> anyway?
> >> It
> >> >can be done relatively straight forward with
> >> Witango
> >> >and still look exactly the same to the user as
> the
> >> >Javascript you've given below.
> >> >
> >> >If you change your mind let me know and I can
> >> describe
> >> >how to do it in Witango.
> >> >
> >> >JJ
> >> >
> >> >
> >> >
> >> >--- Nicholas Froome <[EMAIL PROTECTED]>
> >> wrote:
> >> >> I posted a while ago about generating page
> >> numbers
> >> >> eBay-style for multiple result pages. I'd
> rather
> >> do
> >> >> this in javascript on a per-page basis than
> do
> >> it
> >> >> with Witango, and this is as far as I've
> got:
> >> >>
> >> >> <HEAD>
> >> >>
> >> >> <SCRIPT LANGUAGE="JAVASCRIPT">
> >> >> function GoToPage( id )
> >> >> {
> >> >> window.location = (
> >> >>
> >>
>
>>'http://www.bolide.co.uk/actions/image.taf?link=&start='
> >> >> + id);
> >> >> }
> >> >> </SCRIPT>
> >> >>
> >> >> </head>
> >> >>
> >> >> <BODY>
> >> >>
> >> >> <!----------------- nav bar starts here
> >> >> ------------------>
> >> >>
> >> >> <a href="javascript: GoToPage('1');">1</A> |
> <a
> >> >> href="javascript: GoToPage('11');">2</A> |
> <a
> >> >> href="javascript: GoToPage('21');">3</A>
> >> >>
> >> >> <!------------------ nav bar ends here
> >> >> ------------------->
> >> >>
> >> >> etc, etc
> >> >>
> >> >> What I'd like to do is to calculate the
> number
> > > of
> > > >> pages from <@TOTALROWS> / <@NUMROWS>, round
> this
> > > >> total up, then use javascript to populate
> the
> > > nav
> > > >> bar automagically with the right numbers,
> and
> >> >> calculate the record number to start from
> from
> >> >> <@NUMROWS>
> >> >>
> >> >> The id number is the page number, and the
> start
> >> >> record = ((page number x
> >> <@NUMROWS>)-(<@NUMROWS>-1))
> >> >>
> >> >> The final wrinkle would be to make the
> current
> >> page
> >> >> number bold
> >> >>
> >> >>
> >> >>
> >> >> I know I can't do the javascript - can
> anyone
> >> help?
> >> >> I'll post the completed, tested code back to
> the
> >> >> list. The final results would be applicable
> >> across
> >> >> the board for any dynamically-generated
> pages
> >> >>
> >>
>
>>________________________________________________________________________
> >> >> TO UNSUBSCRIBE: send a plain text/US ASCII
> email
> >> to
> >> >> [EMAIL PROTECTED]
> >> >> with unsubscribe
> witango-talk in
> >> the
> >> >> message body
> >> >
> >> >
> >>
> >__________________________________________________
> >> >Do you Yahoo!?
> >> >Yahoo! Mail Plus - Powerful. Affordable. Sign
> up
> >> now.
> >> >http://mailplus.yahoo.com
> >>
>
>>________________________________________________________________________
> >> >TO UNSUBSCRIBE: send a plain text/US ASCII
> email to
> > > [EMAIL PROTECTED]
> >> > with unsubscribe witango-talk
> in
> >> the message body
> >>
> >>
> >> --
> >>
>
>________________________________________________________________________
> >> TO UNSUBSCRIBE: send a plain text/US ASCII email
> to
> >> [EMAIL PROTECTED]
> >> with unsubscribe witango-talk in
> the
> >> message body
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> >http://mailplus.yahoo.com
> >Content-Type: text/xml; name="ebay.taf"
> >Content-Description: ebay.taf
> >Content-Disposition: inline; filename="ebay.taf"
>
=== message truncated ===
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body