events - what can and can't be done when they fire
Posted: Sun Nov 08, 2009 7:46 pm
I have a simple form that contains one text field:
<input name="fName" type="text" id="fName"
maxlength="25" value="<?php echo $_SESSION['SES_fName']; ?>"
onblur="myObj.setValues('f1', this.value, name)"/>
When I click into the cell of this text box is an event fired?
If it is what kind of information can I retrieve from this event?
Can I obtain the textboxes id, the name of the field, any of the attributes?
I am trying to find a way to automate how I capture information for forms validation
Right now I have everything hard coded and it takes alot of work and maintenance.
PS I am pretty sure that jquery, YUI, and the likes would make life pretty easy,
but the learning curve here is just as important as getting the job done.
In other words I need to find the limitations of what can and can't be done.
any insight would be greatly appreciated
Kevin
<input name="fName" type="text" id="fName"
maxlength="25" value="<?php echo $_SESSION['SES_fName']; ?>"
onblur="myObj.setValues('f1', this.value, name)"/>
When I click into the cell of this text box is an event fired?
If it is what kind of information can I retrieve from this event?
Can I obtain the textboxes id, the name of the field, any of the attributes?
I am trying to find a way to automate how I capture information for forms validation
Right now I have everything hard coded and it takes alot of work and maintenance.
PS I am pretty sure that jquery, YUI, and the likes would make life pretty easy,
but the learning curve here is just as important as getting the job done.
In other words I need to find the limitations of what can and can't be done.
any insight would be greatly appreciated
Kevin