Re: Referencing WO fields in JavaScript
Re: Referencing WO fields in JavaScript
- Subject: Re: Referencing WO fields in JavaScript
- From: Miguel Arroz <email@hidden>
- Date: Tue, 25 Oct 2005 18:09:05 +0100
Hi!
Add a binding called "id", and then, on javascript, use
getElementByID(theId).
Yours
Miguel Arroz
On 2005/10/25, at 14:10, Stresing, Stephan wrote:
Hi,
we want to implement a low-level validation (and some security
things) of a WOPasswordField and here's my question:
how I can refer a dynamic WOPasswordField in an embedded JavaScript
routine?
Usually we'd do it in JavaScript like this: aVar = aField.value;
Can I refer to the WO name "3.7.2.2.1.5.3.11"?
Do I have to assign a "name" in the bindings of the
WOPasswordField? Obviously I'd prefer the WO notation (like
3.7.2.2.1.5.3.11)...
Snippet from generated HTML:
<input size="7" maxlength="6" type=password name="3.7.2.2.1.5.3.11">
Associated .wod:
MyField: WOPasswordField {
maxlength = 6;
size = 7;
value = myValue;
}
TIA!
Many regards,
Stephan.
Stephan Stresing
IT Entwicklung & Systemintegration
ING-DiBa AG
Postfach 18 49
90007 Nürnberg
Besucher:
Südwestpark 97
90449 Nürnberg
Fon +49 (0)9 11 - 1 49 - 2 25 37
Fax +49 (0)9 11 - 1 49 - 2 25 48
eMail mailto:email@hidden
WWW http://www.ing-diba.de
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and destroy this e-
mail. Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40guiamac.com
This email sent to email@hidden
"I felt like putting a bullet between
the eyes of every Panda that wouldn't
scr*w to save its species." -- Fight Club
Miguel Arroz
http://www.ipragma.com
_______________________________________________
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