[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: coordinated search
Here's some javascript code that i use to do what you need. I haven't
figured out a way to do it without javascript though.
i hope this can help.
mike k
planetanime.com
------------------------------
<script language="javascript">
<!--
var host = "http://www.somehost.com/cgi-bin/somecatalog/scan/";
function scanUrl(form) {
if ((form.textfield.value == "" || form.textfield.value == null) &&
(form.select.selectedIndex == 0)) {
alert("Please enter something to search or select a category to search");
} else {
if (form.select.selectedIndex != 0) {
var i = form.select.selectedIndex;
var sText = escape(form.select.options[i].value);
escText = escape(form.textfield.value);
var str = host + "co=yes/sf=category/se=" + sText;
str += "/sf=description/se=" + escText + "/tf=description/to=f/su=yes";
str += "/fn=code,description,price,message,category/ml=10";
} else {
escText = escape(form.textfield.value);
var str = host + "co=yes/sf=category/se=";
str += "/sf=description/se=" + escText;
str+="/tf=category/tf=description/su=yes/fn=code,description,price,message,c
ategory/ml=10";
}
location=str;
}
}
//-->
</script>
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of Markus Müller
> Sent: Wednesday, June 16, 1999 11:44 AM
> To: MiniVend (E-Mail)
> Subject: coordinated search
>
>
> ****** message to minivend-users from
> =?iso-8859-1?Q?Markus_M=FCller?= <mueller@ass-software.de> ******
>
>
> I want to use coordinated searching in one of my projects. The
> first mv_searchspec is a select-box with values read from
> my products.asc file. The second one is a simple text search.
> Here's the way it works: Show me all items from category
> XY (chosen from the select-box) with a name like YX (from the
> text input).
> But I want it the following to be able: Schow me all items
> with a name like YX in ALL categorys. I need a value for
> the select-box that is always true. I tried '' and '*' but
> both didn't work. The Operator is "eq". Can anyone help ?
>
> (running MVend 3.12 / SUSE Linux 6.0)
>
>
> Markus
> -
> 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