[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Global variables
****** message to minivend-users from "Jeff Nappi" <brage@phear.cyberhighway.net> ******
Ok, so I got this javascript button bar I am dynamically building based
on the value of button which is set using mv_value in search profiles. The code
for this looks like this:
(check out http://www.gallore.com/cgi-bin/catalogs/gallore)
[perl values]
my (%buttons,$data,$key,$tmp);
#Add buttons here...
%buttons = ('1', 'Oil On Canvas', '2', 'Acrylic On Canvas', '3', 'Mixed On Canvas', '4', 'Oil On Paper', '5', 'Acrylic On Pap
er', '6', 'Mixed On Paper', '7', 'Glass', '8', 'Wrapping Paper', '9', 'Frames');
# Loop through values in the buttons array and print out MV search profiles.
$data = "";
foreach $key (keys (%buttons))
{
$tmp = $buttons{"$key"};
$data .= "\[set button$key\]
mv_searchtype=sql
mv_searchspec=$tmp
mv_value=button=$key
mv_matchlimit=3
\[\/set\]
";
}
if (!$Safe{'values'}{'button'})
{
$data .= "[include pages/include/button0.html]";
} else {
$data .= "[include pages/include/button" . $Safe{'values'}{'button'} . ".html]";
}
return $data;
[/perl]
I am set on only displaying 3 items on a page and when someone clicks on the next
button or clicks through to the flypage, the default button bar is shown and I
want the category they are in to be shown in the button bar. If anyone has any
ideas on how to do this I would REALLY appreciate it, whether they have a minivend
or javascript solution.
Thanks,
--
___________________
Jeff Nappi
brage@cyberhighway.net http://phear.cyberhighway.net
Cyberhighway Internet Services Network Operations Center
-
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