WebBot

C

Curious

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?
 
J

Jim Buyens

-----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)
|/---------------------------------------------------
*----------------------------------------------------
 
C

Curious

The form action is just the name of the page. My Form looks like this:

<form name="hidden" method="Post" action="scholarshipselection.asp"><input type="hidden" name="StudentID"><input type="hidden" name="Password"></form>

I set the values of the hidden forms with Javascript from imformation from a cookie. I want to use those two forms as my Database Critera Search Results which uses the webbot. I want the page to think that the user entered the two values and pushed the submit button. But I dont want a submit button or the textbox. I added a line in my javascript like this 'document.hidden.submit()' and it got recursive I guess and kept reloading itself over and over agian. Help
 
Top