[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] making mv_searchspec persistent in [search-list]
****** message to minivend-users from Marty Vance <mvance@lwm.com> ******
I'm still having this problem (see my previous posts). I am running mv
3.11 under IRIX 5.3, with perl 5.004. My catalog page contains this
search:
<form name="galleryform" action="[process-search]" method=post>
<input type=hidden name=mv_matchlimit
value="6">
<input type=hidden name=mv_search_file
value="art">
<input type=hidden name=mv_search_field
value="_rowid">
<input type=hidden name=mv_search_page
value="gallery">
<input type=hidden name=mv_sql_query
value="select * from art where galleryID = ?">
<input type=hidden name=mv_searchtype
value="sql">
<input type=hidden name=mv_searchspec
value="">
<input type=hidden name=mv_return_all
value="yes">
</form>
mv_searchspec gets set to an integer between 1 and 11 through
javascript. the resulting page contains:
[if value mv_searchspec]
[then]
[perl arg="values" interpolate=1] $Safe{'values'}->{galleryNum}
= $Safe{'values'}->{'mv_searchspec'}; ''; [/perl]
[/then]
[/if]
[set mv_put_session]Yes[/set]
.
.
.
<img src="/images/g[value galleryNum].gif">
.
.
.
[search-list]
<td align="center" width="190"><font size=-1">
[page framer [item-field artID]]<img src="/images/art-thumb/[item-field
artID].jpg" border=0></a><br>
<b><i>[item-field title]</i></b><br>
[item-field artist]<br>
<br><br>
</font></td>
[if type=scratch term=tablebreak op="=~" compare="/3/"]
[then]
</tr><tr>
[/then]
[/if]
[set name="tablebreak" interpolate=1][calc][scratch tablebreak] +
1[/calc][/set]
[/search-list]
</tr></table>
[more_list /images/next.gif /images/prev.gif none 0 0]
<br>
[more]
[/more_list]
On the first page generated by the search, [value galleryNum] contains
the correct integer, and the corresponding image is displayed in the
page. When the "next" image is clicked, [value galleryNum] gets set to
nothing, and I get a broken image icon.
[set mv_put_session]Yes[/set] is also included in the catalog page.
How can I get [value galleryNum] to persist through all the pages
generated by the [more_list] tags?
Marty Vance
LiveWire
mvance@lwm.com
www.lwm.com
-
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