hi,
can you help me make this statement work-
logic:
if makeselect = SAAB then geturl(saabsite) target = blank
else
if makeselect <> nothing then usedurl = stuff
if priceselect <> nothing then usedurl = stuff
if priceselect = nothing AND makeselect = nothing then
usedurl = stuff
geturl(usedurl) target=self
end if
code:
can you help me make this statement work-
logic:
if makeselect = SAAB then geturl(saabsite) target = blank
else
if makeselect <> nothing then usedurl = stuff
if priceselect <> nothing then usedurl = stuff
if priceselect = nothing AND makeselect = nothing then
usedurl = stuff
geturl(usedurl) target=self
end if
code:
Code:
if (makeselect.data = "SAAB") {
getURL("saabsite");
}
else
{
if (makeselect.data <> undefined) {
usedurl = usedurl + "&z_Make==,','&x_make="+ makeselect.data;
}
if (priceselect.data <> undefined) {
usedurl = usedurl + "&x_price="+priceselect.data;
}
if (priceselect.data == undefined && makeselect.data == undefined) {
usedurl = usedurl + "&cmd=resetall"
}
getURL(usedurl);
}