-----Original Message-----
Is there any way to activate a WebBot without using a
form action? Like, searching a database with given
criteria without user pushing the submit button. Maybe
like if they change the textbox it will update the
results automatically. Any thoughts?
The answer can vary quite a bit depending on the form and
the situation. In general, though, you have to capture the
event you want in JavaScript, then submit the form or
click the Submit button programatically.
For example, the onchange event in this drop-down box
submits the first form on the page whenever the visitor
changes the current selection.
<select onchange="document.forms[0].submit();">
<option>Heads</option>
<option>Tails</option>
<option>Liner</option>
</select>
The onclick event in this checkbox programatically clicks
a button named btnSub.
<input type="checkbox" name="thespot" value="X"
onclick="document.forms[0].btnSub.click();">
In FP2003, you can set up behaviors like this entirely in
Design view. To start, select the form field, display the
Behaviors task pane, and click Insert.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------