Hey Brian, this is most Excellent (Air
Guitar Noise plays in background) J
I was thinking that the “onBlur”
event might be a better event than “onChange” and could reduce
traffic
-----Original Message-----
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Brian Mowers
Sent: Wednesday, October 23, 2002
2:33 PM
To: Multiple recipients of list
witango-talk
Subject: Re: Witango-Talk:
Tango/Javascript formhandler()
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()">
<OPTION
VALUE="" SELECTED>-Please Select Customer Pending
Items-</Option>
<@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.