[WEB4LIB] lookin for a Javascripter'

William Moore William_Moore at umanitoba.ca
Thu Jun 22 12:39:00 EDT 2000


Steve,

In order for a form to respond to an enter key the form must either have an
action statement or a submit button in the form. Your existing code had
neither. If you use the following in place of your code then it shall do
what you want it to:
      <FORM name="InputForm" onSubmit="StartSearch()">
        Search for: <INPUT size=15 name="SearchWords"> in:
        <SELECT name="SearchSelect">
          <OPTION selected>Google
          <OPTION>Yahoo
          <OPTION>Altavista
          <OPTION>Excite
          <OPTION>Lycos
          <OPTION>InfoSeek
          <OPTION>Magellan
          <OPTION>Webcrawler
          <OPTION>LookSmart
          <OPTION>Deja News
          <OPTION>MetaCrawler
          <OPTION>HotBot
        </SELECT>
        <INPUT type="submit" value="Search">
      </FORM>

~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
~=~=
    William Moore                          mailto:william_moore at umanitoba.ca
    LETS Web Developer                                        (204) 474-6523
                  http://www.umanitoba.ca/libraries/units/lets
      486f6d6f 73756d3a 68756d616e69 6e696c 61 6d65 616c69656e756d 7075746f


-----Original Message-----
From: web4lib at webjunction.org
[mailto:web4lib at webjunction.org]On Behalf Of Steve Garwood
Sent: Wednesday, June 21, 2000 4:36 PM
To: Multiple recipients of list
Subject: [WEB4LIB] lookin for a Javascripter'


I have a page up at

http://reference.camden.lib.nj.us/sgtest/ which uses Javascript pretty
heavily. Now to be quite honest I'm not a JS person in any right, but the
scripts on the page are accomplishing all but one thing that I need to do.

Question: Does anyone know a way to ensure that when searching the "Search
engine" area on the top of the page that pressing the enter key on the
keyboard will run the search instead of just loading the top frame into the
bottom frame.

..help me today and I'll promise to take a JavaScript class tommorrow :-)

steve

-------------------------------------
Steve Garwood
Customer Education Librarian
Camden County Library System
203 Laurel Rd., Voorhees, NJ 08043
(856)772-1636 x3320 Fax:(856)772-6128
sgarwood at camden.lib.nj.us
http://www.camden.lib.nj.us
http://www.stevegarwood.com

"...Just a lazy cat in a dog-eat-dog world"  - Supreme Beings of Leisure



More information about the Web4lib mailing list