Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Extending Forms

Original Message
Name: remgu
Date: January 10, 2007 at 07:09:39 Pacific
Subject: Extending Forms
OS: XP
CPU/Ram: P4 3.4Ghz 1GB Ram
Model/Manufacturer: 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


Report Offensive Message For Removal


Response Number 1
Name: Taurus
Date: January 28, 2007 at 07:25:32 Pacific
Subject: Extending Forms
Reply: (edit)
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.


Report Offensive Follow Up For Removal

Response Number 2
Name: remgu
Date: January 29, 2007 at 08:38:51 Pacific
Subject: Extending Forms
Reply: (edit)
Thanks Taurus, I've been looking for a java script that will do this and have not found it yet.

Thanks,
REMGU


Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Extending Forms

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




DSHUB24 Connection Problems

need help with dsl and dial up

novel 3.12

help mandriva install last straw!

Icon Scaling in Explorer Bar


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC