redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

Form names



 
Post new topic   Reply to topic    Programming Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
Krabik
Enthusiastic Coder


Joined: 15 Mar 2005
Posts: 62
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....

Reply with quote
 
Jake
Enthusiastic Coder


Joined: 15 Mar 2005
Posts: 68
Hmmm.... this is weird.... surely the desired response would be a string too.

I dunno bout this mate.

Reply with quote
 
Jony
Enthusiastic Coder


Joined: 18 Mar 2005
Posts: 71
More Javascript madness. You've got server-side validation too right?
Reply with quote
 
Krabik
Enthusiastic Coder


Joined: 15 Mar 2005
Posts: 62
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

Reply with quote
 
Page 1 of 1
Post new topic   Reply to topic    Programming Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group