[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 "Fred Harju" <fred.harju@sympatico.ca> ******
What about using a hidden form field as a flag? When the page is loaded,
your code could check the hidden form field and if it is 'ON' then thumbs
show else don't show thumbs.
You will have to put some javascript into the onClick event handler for the
radio button so that when the user clicks the radio button the hidden form
field is updated to reflect the click, change the action of the form to
submit back to the current page then submit the form. When the page reloads
it will check the hidden form field and take the appropriate action.
example form with onClick javascript event handler:
<form method=post action=[process-target]>
<input type=hidden name="mv_doit" value="return">
<input type=hidden name="mv_nextpage" value="nextpage.html">
<input type=hidden name="ThumbFlag" value="OFF">
...
<input type=radio onClick="this.ThumbFlag.value='ON';
this.mv_nextpage='thispage.html'; this.submit();">
</form>
I hope that this helps!!! Good Luck!!
Fred.
----- Original Message -----
From: Victor Nolton <ven@pragakhan.com>
To: <minivend-users@minivend.com>
Sent: Sunday, November 05, 2000 6:33 PM
Subject: Re: [mv] Thumbnail Switch on Results
> ****** message to minivend-users from Victor Nolton <ven@pragakhan.com>
******
>
> this is kind of the code I want.i just want it so that if they arein
> the middle of the search results (maybe page 3) they can switch, hit
> the submit button and it will bring the same page back up.
>
> Ven
>
>
> >****** 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
>
>
> http://www.vensnews.com
>
> Victor "Ven" Nolton __________________________ http://www.VensNews.com
> http://PragaKhan.com http://LordsofAcid.com http://DarlingNikkie.com
>
> All HTML Encoded email will be ignored. Learn Standards.
> -
> 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
-
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