[WEB4LIB] Help with Site Search Page in Front Page
Darryl Friesen
Darryl.Friesen at usask.ca
Tue Mar 12 11:30:26 EST 2002
> The reset button works fine *before* you do the search, but in the
> results page generated by Front Page after the search - over which I
> have no control - you search terms remain in the text box and the search
> and reset buttons are still there, but the latter button doesn't work.
> It's just there, mocking the user, seemingly proffering the solace of a
> new start, a clean slate, a fresh beginning ...
>
> .. only to snatch it away.
>
> Any suggesttion on how to fix this?
Actually, it does work. The reset button resets all form elements to their
default values. After a search for "Fred Flintstone" for example, the HTML
code for the search box looks like this:
<input type="text" name="search" size="20" value="Fred Flintstone">
which says that the default value for the "search" field is "Fred
Flintstone". Type something into the search box, like "Barney Rubble" for
example. Now hit the reset button. Yaba daba do! Fred's back.
As for how to get the result you _want_, I don't know. My standard (and
likely not very helpful) answer would be to dump IIS, FronPage etc and write
some Perl or PHP code that doesn't seed the search box with the previous
search term.
I don't know enough about how IIS/FrontPage etc work to give you a better
answer. Is there some sort of template for the search screen? If so, can
the search terms be excluded from template?
- Darryl
----------------------------------------------------------------------
Darryl Friesen, B.Sc., Programmer/Analyst Darryl.Friesen at usask.ca
Education & Research Technology Services, http://gollum.usask.ca/
Information Technology Services Division,
University of Saskatchewan
----------------------------------------------------------------------
"Go not to the Elves for counsel, for they will say both no and yes"
More information about the Web4lib
mailing list