web hosting and development forums
Web Design and Development Forums Archive


Index - JavaScript forum

Form names


Post reply

have validation script that loops through all the forms in a document. (some of you have probably seen it at work).
well, I'm working on the new version and i have a small problem.
when I have a form:
<FORM name="MyForm" id="MyForm"....
[form object].id returns a string: 'MyForm'
but
[form object].name returns an object, WHY?
NB.:
I'll post an url later....
Hmmm.... this is weird.... surely the desired response would be a string too. I dunno bout this mate.
More Javascript madness. You've got server-side validation too right?
yep. I've got both... but i'd like that to work because I want the script to be a plug in. basically, you add it to the page: <SCRIPT src=watever.... and it will automatically sort out all the validation, etc here's the full plugin which also includes popup menus and tab menus (tree menus coming soon) http://www.pinesandneedles.com/test/pico.asp by the way, the code is a mess so "don't watch that!" i'm still sorting things out




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com