Limiting the search scope of FP2003 search wizard

J

John

All I want to do is to have the user supply his state
abbreviation and I will either take him to his state's
support group page or give him a link he can click on.

I don't want the search to run through all of the files
on the site. I simply want to search into a file and
return a value based on that search.

Surely it is possible or has been done as a common add-
on.

Since I'm on the topic, I want to be able to search my
site but limit which files are searched. How do I do
that? Is there a way of setting the search up so that it
will start and run from a 'restricted area'?

thanks in advance.
 
J

Jens Peter Karlsen[FP-MVP]

Pretty straight forward with JavaScript.
Just have a long string of if sentences.
Something like this:

Function changePage(){
Var state=document.forms[0].formfieldname.value;
If (state==al or state==AL)
top.location=alaska.htm;
If (state== and so on.

Use a button to call the function.
You will probably want to add some error detection.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.


-----Original Message-----
From: John [mailto:[email protected]]
Posted At: 27. juli 2004 04:11
Posted To: microsoft.public.frontpage.programming
Conversation: Limiting the search scope of FP2003 search wizard
Subject: Limiting the search scope of FP2003 search wizard


All I want to do is to have the user supply his state abbreviation and I
will either take him to his state's support group page or give him a
link he can click on.

I don't want the search to run through all of the files on the site. I
simply want to search into a file and return a value based on that
search.

Surely it is possible or has been done as a common add- on.

Since I'm on the topic, I want to be able to search my site but limit
which files are searched. How do I do that? Is there a way of setting
the search up so that it will start and run from a 'restricted area'?

thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top