Place a 'Form handler' javascript into the <head> tag as follows:
<script language="javascript">
// Update Form to Database After Each Form Change
function formHandler() {
document.forms[0].action=""<@CGI><@APPFILE>?_f=CustomerInfo&Update=Yes&Account=<@Column" pending.Account>&<@UserReferenceArgument>"
document.forms[0].method="POST"
document.forms[0].submit();
}
</Script>
In your input elements, Text,Select,Radio or what have you place the formhandler call i.e. formHandler()
See below example in a select object.
<BODY>
<FORM>
<SELECT NAME="Account" SIZE=1 onchange="formHandler()">
<@rows array=BidSelectArray>
<OPTION VALUE="@@local$BidselectArray[<@currow>,1]">@@local$BidSelectArray[<@currow>,2] [@@local$BidselectArray[<@currow>,1]] [@@local$BidSelectArray[<@currow>,3]/@@local$BidSelectArray[<@currow>,4]]
</@rows>
</SELECT>
</FORM>
</BODY>
~Brian Mowers
Bondbase Corp.
(734)-981-5899
At 02:08 PM 10/23/2002 -0700, you wrote:
Hello,
Any thoughts on using javascript w/ Witango to have a form that after each change on the form fields on the page is updated in the database? I have looked at using a grid com object - but can't find one that is relatively easy to integrate with Witango.
Thanks.
