Computing.Net > Forums > Web Development > Extending Forms

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Extending Forms

Reply to Message Icon

Name: remgu
Date: January 10, 2007 at 07:09:39 Pacific
OS: XP
CPU/Ram: P4 3.4Ghz 1GB Ram
Product: Clone
Comment:

How can I have a form with several associated fields that can be duplicated via the click of a botton? In other words, have the same set of fields added to the form.

Can this be done with regular HTML and Javascripts? I looked around and found this site, which provides an elegant solution: http://www.quirksmode.org/dom/domfo...

The site uses the W3C DOM method, however, truthfully it is currently beyond my scope of knowledge and I am looking for a simpler solution (even if it is not as elegant, since its for my own use). Also it needs to be self contained, meaning no CGI scripts or anything like that because I don't control the web server.

I would appreciate any help on this. Thanks in advance.

Thanks,
REMGU



Sponsored Link
Ads by Google

Response Number 1
Name: Taurus
Date: January 28, 2007 at 07:25:32 Pacific
Reply:

I would imagine that it could be accomplished with just JavaScript. I don't know much about JS so i'm afraid I won't be able to help you. I am sure though that JS would be all you need.

Place the code for the fields in a JavaScript function, including the "More fields button" and place the link to execute the function in the button also. I'm more of a php guy so sorry I can't be more helpful.

Developers have a sense of humour, it's just commented out.


0

Response Number 2
Name: remgu
Date: January 29, 2007 at 08:38:51 Pacific
Reply:

Thanks Taurus, I've been looking for a java script that will do this and have not found it yet.

Thanks,
REMGU


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Extending Forms

Cant view PHP www.computing.net/answers/webdevel/cant-view-php/355.html

html - form menu www.computing.net/answers/webdevel/html-form-menu/1278.html

HTML form www.computing.net/answers/webdevel/html-form-/638.html