Re: Javascript Error onBlur
Re: Javascript Error onBlur
- Subject: Re: Javascript Error onBlur
- From: Sacha Mallais <email@hidden>
- Date: Sun, 3 Apr 2005 14:22:52 -0700
On Apr 3, 2005, at 1:53 pm, Robert Snyder wrote:
We have an application that allows people to save a return to their
data
before it is actually processed (and validated on the server side). On
the birth data field we want to make sure that people enter their data
in
the proper formate (mm/dd/yyyy). So we want to detect what they have
entered and push an alert for them to correct it before moving on to
other fields.
We found a nice java script that does format and accuracy validation
(detects number of days in a month, including leap years, and return
errors on errant numbers). Since we want to do this validation as soon
as
the person tries to go to another field, we are using the onBlur action
in JavaScript.
However, when we try to bind the JavaScript action onBlur to a date
field
and build and run we get the following error:
I continue to have this error message in the run protocol:
<DMS_T_Box_Date name: DMS_T_Box_Date subcomponents: null >
takeValueForKey()]: attempt to assign value to unknown key: 'onBlur'.
This WOComponent does not have an instance variable of the name onBlur
or _onBlur, nor a method of the name setOnBlur or _setOnBlur.
Chuck, I am sure you have something on this in Practical WebObjects,
but
all four of our copies are at the office.
Thankfully, we did not have time or space to cover JavaScript in detail
(I'd like to stay far away from JavaScript if I can :-), but this
looks more like a binding problem than a JavaScript one. Can you post
your bindings from the .wod? Also, is this a synchronizing component?
sacha
--
Sacha Michel Mallais - 400 lb. chimp
Global Village Consulting Inc.: http://www.global-village.net/
The bird of paradise alights only upon the hand that does not grasp.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden