Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Thumbnail Switch on Results



******    message to minivend-users from cfm@maine.com     ******

On Sun, Nov 05, 2000 at 02:51:03PM -0500, Victor Nolton wrote:
> ******    message to minivend-users from Victor Nolton <ven@pragakhan.com>     ******
> 
> Hmm.. i hope this works on minivend 3.14 (surprised it's not named 
> Minivend Pi).
> 
> Is there any known code (since Im not an expert) to take the current 
> results page and use in a form so that when a submit button is 
> pressed the same page is displayed?
> 
> So if they would click the dation button a minivend variable would be 
> set and the page they were just looking at would be redisplayed?
> 
> Ven


This particular snippet is several years old.  It allowed a visitor to
toggle "all books" or just "new books" on a scan page.  It required the
search variables already to exist in the session and it functioned
as a persistent "toggle".  I think it selected a different query,
but it could just as well be used to show or hide thumbnails.
Nowadays we'd do this with perl and build the query appropriately.  :-)

At any rate, the only conceptual block is that you can only submit one form
or one link at a time so you must plan the flow.  We had this snippet in
the navbar on every page with an explanation about how it affected the views.

<FORM ACTION="[process-target _self]" METHOD=POST>
<TABLE ALIGN=RIGHT BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD>
<INPUT NAME="mv_doit" TYPE=HIDDEN VALUE=refresh>
<INPUT NAME="mv_orderpage" TYPE=HIDDEN VALUE="[value this_page]">
<INPUT [checked name='new_or_all' value='new'] NAME="new_or_all" TYPE=RADIO VALUE=new>Recent Acquistions
<INPUT [checked name='new_or_all' value='all'] NAME="new_or_all" TYPE=RADIO VALUE=all>All
<INPUT TYPE=SUBMIT VALUE=REFRESH>
</TD>
</TR>
</TABLE>


-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: