|
|
 |
RE: FN-FORUM: Search on CD
date posted 1st February 2005 16:07
Is the product code made up from all five codes together (though three of
them look the same for all entries)? You could give each with the
description in an id with the code of the item it contains e.g. and when someone types a code in run
document.getElementById(codeEntered) to select it and use .innerHTML to get
the text content. E.g. (some slightly hacky code snippets that obviously
need dropping into the right locations in the page):
Deck mounted flight deck
safety net assembly (inner frame variant).
Search
function runSearch(){
codeEntered=document.getElementById("search").value;
document.getElementById("resultsDiv").innerHTML=document.getElementById(code
Entered).innerHTML;
}
Which would put the contents of the into resultsDiv.
It would be a bit more complicated to match against parts of the product
code but not impossible. This type of solution also means the search has to
be on the same page as the product list, and also relies on JavaScript and a
DOM enabled browser.
Karl
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] On
> Behalf Of Lindsey Hill
> Sent: 01 February 2005 10:34
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: Re: FN-FORUM: Search on CD
>
> Worth bearing in mind for other stuff but as it works on
> pages rather than specific items I don't think it would work on this.
>
> I can give them the option for the browser search on the page
> but would like to give another option that give the
> appearance of a a 'catalogue search' just from the number
> just on that page, any more ideas?
>
>
> Lindsey Hill
|
 |
|