Here is an example on making the enter key work on submit. I got this from
either the web or the forum. See if this helps...
Make the <ENTER> key work as a submit button on an HTML page
A NetDynamics page can be submitted as a result of pressing <ENTER> key instead of
clicking on a "SUBMIT" button. For this to
happen the FORM METHOD has to be changed to 'GET'. NetDynamics by default creates the
FORM METHOD as 'POST'. This implies
that the user has to modify the Page.html file. If there are multiple textboxes on
that page then each of the textboxes
should be enclosed in a <FORM...> ..</FORM> tags.
The following HTML will work to allow the ENTER button to trigger the search button
for Netscape Navigator browsers on a page
called Searchpg that has only one text box called 'TextBox1'
1.Comment out the [[SPIDERPAGE NAME=Searchpg]] line so it looks like:
<!-- [[SPIDERPAGE NAME=Searchpg]] -->
The SPIDERPAGE line puts a <FORM> tag into the HTML at runtime. By commenting it
out, we need to put in our own FORM tag.
2.Add a custom FORM tag directly below the line commented out in step 1
<FORM NAME="Searchpg" METHOD=GET
ACTION="../PROJECTNAME/Searchpg.onSearchWebEvent(Search)">
3.By default on a ND page the **SPIDERSESSION** field would put out the closing
</FORM> tag.
4.Following is an example of a HTML file (for page SearchPage) that contains
multiple textboxes. When the user hits ENTER on each of these TextBoxes the same
Search event is executed.
<FORM NAME="SearchPage" METHOD=GET ACTION="../PROJECT_NAME/
SearchPage.onSearchWebEvent(Search)">
<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=2 WIDTH=100%>
<TR>
<TD ALIGN=RIGHT VALIGN=MIDDLE WIDTH=20%><B>supp_name: </B></TD>
<TD ALIGN=LEFT VALIGN=MIDDLE>**supps_supp_name**</TD>
</TR>
</TABLE>
</FORM>
<FORM NAME="SearchPage" METHOD=GET ACTION="../PROJECT_NAME/
SearchPage.onSearchWebEvent(Search)">
<BR>**TextBox1**
**SPIDERSESSION**
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]