Garth,

Here's the code for the repeatArgs method. It takes 1 parameter,
excludeArgs, a comma delimited list of args you don't want to repeat, ie
_start in the example below. I mainly use it for multipage forms, but it's
also helpful in this example. A slightly more complex version will handle
postarg arrays, like a select multiple inputs or a group of checkboxs.

<@assign method$excludeList <@tokenize value="@@method$excludeArgs"
chars=",">>
<@assign method$argList <@argnames>>
<@rows array=method$argList>
 <@if expr="!(@@method$excludeList contains <@col 1>)">
  <input type=hidden name="<@col 1>" value="<@arg name='<@col 1>'>">
 </@if>
</@rows>

Dave
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Garth Penglase
Sent: Tuesday, December 10, 2002 1:34 AM
To: Multiple recipients of list witango-talk
Subject: RE: Witango-Talk: ebay-style 1 2 3 4 page numbering
(revisited). Javascript help needed!


Thanks Dave,
I'll try this out as well. The method "repeatArgs"  you refer to
below is the one that is created by the builder is it not, or do you
have a better version?
cheers
Garth

>
>
>There's one method called in it, method="repeatArgs('_start')", which
>re-creates all the args as hidden form fields except _start. I can post the
>code for that too if you want.
>
><@if expr="'<@totalRows>'>'<@numrows>'"> <@! more data to show >
><table>
><tr valign=top>
><form method=post action="<@cgi><@appfile>">
><@callmethod object=sys method="repeatArgs('_start')" encoding=none>
><td>Page:</td>
><td><select name="_start" onChange="this.form.submit()">
><@for stop=<@totalrows> step=<@maxRows>>
>       <option value="<@currow>" <@if expr="('<@currow>'='<@arg _start>') OR
>(('<@currow>'='1') AND !len(<@arg _start>))" true="selected">><@calc
>expr="floor((<@currow>/<@maxRows>)+1)"></option>
></@for>
></select>
></td>
><td>Of <@calc expr="ceil(<@totalrows>/<@maxRows>)"></td>
></tr>
></form>
></table>
></@if>

--
________________________________________________________________________
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

Reply via email to