[Javascript] FW: InnerHTML form fields not recognized by MAC IE

Marguerite McFadden marguerite at blueskyz.com
Tue Feb 10 12:26:54 CST 2004


I am dynamically drawing form fields to a page:
 
If the user chooses to pay by credit card then the credit card form
fields appear, if the user chooses to pay by check then check form
fields appear, etc.
 
The fields display correctly, however when the user goes to submit the
form, the javascript function that checks the form fields for required
data does not function properly.  The function just stops (without
submitting the form) as soon as any reference to one of the dynamically
generated form fields is made.  The function is definitely being called,
and as long as no reference to these form fields is made, it will
continue to work properly right until it hits the "return true" or
"return false" command.then it just stops again - no error messages or
anything, the form just is not submitted.  Note that the "submit"
button, which calls the "CheckFields()" function, is also drawn
dynamically.
 
I read in an earlier post that maybe just adding "\n" to the end of my
innerHTML text data might help.  I have not triedthis yet but thought I
would post this to see if anyone had any ideas.
 
Thanks,
Marguerite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20040210/38581298/attachment.htm>


More information about the Javascript mailing list