tag:blogger.com,1999:blog-13286014.post113726661597256462..comments2023-09-02T22:04:21.508+05:30Comments on Bin-Blog: Dynamic Form Field Generation in JavaScriptBinny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-13286014.post-22643295461754724982012-08-27T12:51:10.173+05:302012-08-27T12:51:10.173+05:30Hai..Good Ahternoon Binny...I had seen your demo.....Hai..Good Ahternoon Binny...I had seen your demo..Iam searching for this type program bt i have a small problem in it.how to insert these fileds into a database...please solve this..Thanking YouAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-21590395414399159502012-02-22T17:16:50.638+05:302012-02-22T17:16:50.638+05:30hi..plz help me in generating fields dynamically.....hi..plz help me in generating fields dynamically..also that field hav to get stored in database..plz help me..as i'm new to php..actually i want form of name,email,phone,required field.then wen running user can specify field as his requirement..also tat field value must get save into database...plz can u post code for tat..hop u understand..Ancy kottakkalhttps://www.blogger.com/profile/05992424694302476645noreply@blogger.comtag:blogger.com,1999:blog-13286014.post-31092333606524327352011-12-06T23:32:58.397+05:302011-12-06T23:32:58.397+05:30What is the specific code to add multiple fields f...What is the specific code to add multiple fields field 1, field 2, field 3 on the same line when you click the add button ? Also what is the code to add cell spacing between the fields ?<br />Thx !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-42953259744207649992011-01-13T12:00:35.708+05:302011-01-13T12:00:35.708+05:30I saw these bugs:
If you try to REMOVE all fields...I saw these bugs:<br /><br />If you try to REMOVE all fields from the Add Neutral Field.<br /><br />You can't add anymore.<br /><br />If you try to save but 1 Field from The Add Neutral Field, and then Add a New One, the New One won't have the option or link to "Remove Field"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-47220134352245452712010-07-19T07:44:14.771+05:302010-07-19T07:44:14.771+05:30Hi Binny, this code example has been very informat...Hi Binny, this code example has been very informative. How do you capture the form elements once they are submitted? I am using PHP and MySQL and am stumped as to how to grab the innerHTML generated form elements.Unknownhttps://www.blogger.com/profile/11629550847688750125noreply@blogger.comtag:blogger.com,1999:blog-13286014.post-37127774903008255562010-06-10T11:14:10.471+05:302010-06-10T11:14:10.471+05:30That is perfect. But I want so see the code that c...That is perfect. But I want so see the code that could add more than one field in a click.<br />For instance, in case of education, an user can fill the form as he desire. The form field are : Degree Name, Board, University Name and Percentage.<br /><br />So when ever an user click in add more button the above form filed should be displayed at once.<br />Can you please suggest me in this case.humblehttp://www.humble.com.npnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-49240761714796226792010-01-28T13:24:08.016+05:302010-01-28T13:24:08.016+05:30very thanks, but there are one mistake in the code...very thanks, but there are one mistake in the code "field" instead "area", in the line 7:<br /> var field_area = document.getElementById(field);<br />instead of:<br /> var field_area = document.getElementById(area);<br /><br />Best Regards,<br />Nazih AL-MaarriAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-35183538450887400352009-11-23T09:17:22.042+05:302009-11-23T09:17:22.042+05:30Binny - I used this and it works, however it appea...Binny - I used this and it works, however it appears to break "POST" functionality. I can only retrieve my form data using the $_GET global. Is there an easy way to fix this? Or am I doing something wrong? I have method="POST" but it seems dynamically adding fields messes POST up.<br /><br />Thx.<br /><br />CurtisCurtisnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-90664997182544390712009-06-15T16:41:22.896+05:302009-06-15T16:41:22.896+05:30Thanks for the code.
I tried to use it with div ar...Thanks for the code.<br />I tried to use it with div area and select element instead of input. But didn't work. Any idea if/how we can make the code work with select element. TIA<br />@sAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-54748993981238620592009-06-15T16:40:06.483+05:302009-06-15T16:40:06.483+05:30Thanks for the code.
I tried to use it with "...Thanks for the code.<br />I tried to use it with "div" area instead of list and also to add a "select" element instead of input. But didn't work for me. Any idea if we can make the code work with select element or not ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-83784842038926017522009-01-13T09:25:00.000+05:302009-01-13T09:25:00.000+05:30In the code "sample"This line is wrongfunction add...In the code "sample"<BR/><BR/>This line is wrong<BR/><BR/>function addField(field,area,limit) {<BR/><BR/>It should b<BR/><BR/>function addField(area,field,limit) {Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-84557692298741519162008-10-10T04:28:00.000+05:302008-10-10T04:28:00.000+05:30I meant to append this to my last question, but I ...I meant to append this to my last question, but I also wanted to ask if it where possible to add length to the additional fields. Been experimenting, but haven't gotten one to work yet.Digital Jedihttps://www.blogger.com/profile/02374739586203788564noreply@blogger.comtag:blogger.com,1999:blog-13286014.post-39577890116239601512008-10-10T04:25:00.000+05:302008-10-10T04:25:00.000+05:30Is it possible to use this method to create more t...Is it possible to use this method to create more then one field on click? Say, for example I need it to generate an additional name and age field.Digital Jedihttps://www.blogger.com/profile/02374739586203788564noreply@blogger.comtag:blogger.com,1999:blog-13286014.post-77078887099567343362008-04-23T12:32:00.000+05:302008-04-23T12:32:00.000+05:30Good example. I am using jsp. It works fine in IE....Good example. I am using jsp. It works fine in IE. When I run in firefox, I can not get the value or field name added dynamically by using the javascript.<BR/><BR/>what I used is request.getParameterNames() ;<BR/><BR/>how did you handle this in your case?<BR/><BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-46778925626937735982007-11-08T13:43:00.000+05:302007-11-08T13:43:00.000+05:30This does the trick:http://www.trans4mind.com/pers...This does the trick:<BR/><BR/>http://www.trans4mind.com/personal_development/JavaScript2/createSelectDynamically.htmSmartAtHomehttps://www.blogger.com/profile/16229353110567802856noreply@blogger.comtag:blogger.com,1999:blog-13286014.post-27595451994713303222007-11-08T10:24:00.000+05:302007-11-08T10:24:00.000+05:30how do you get it to work with "select" boxes vs. ...how do you get it to work with "select" boxes vs. a standard input box? i tried replacing some of the input tags with select tags in the JS, but it fails in IE.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-6179558311196028562007-11-01T17:54:00.000+05:302007-11-01T17:54:00.000+05:30@Pieter Thoma Yeah - thats possible - you just hav...@Pieter Thoma <BR/>Yeah - thats possible - you just have to code it.Binny V Ahttps://www.blogger.com/profile/17219747953793699351noreply@blogger.comtag:blogger.com,1999:blog-13286014.post-13304783708915459382007-11-01T14:51:00.000+05:302007-11-01T14:51:00.000+05:30Is it possible to remove text fiels again with an ...Is it possible to remove text fiels again with an extension to this script?SmartAtHomehttps://www.blogger.com/profile/16229353110567802856noreply@blogger.comtag:blogger.com,1999:blog-13286014.post-78006010581153084532007-10-30T11:36:00.000+05:302007-10-30T11:36:00.000+05:30IS it possible to use your form and do a HTTP Post...IS it possible to use your form and do a HTTP Post which will create a CSV file?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-74688478567115874302007-05-19T21:07:00.000+05:302007-05-19T21:07:00.000+05:30Thanks, it will be very useful to me.Thanks, it will be very useful to me.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-3974185850199840342007-05-02T19:46:00.000+05:302007-05-02T19:46:00.000+05:30The js code on this page is wrong. That is why you...The js code on this page is wrong. That is why you are getting a null. it needs to be this.<BR/><BR/>Go to the Demo and do a view source. The function parameters are not in the right order. It needs to be this.<BR/>function addField(area,field,limit)<BR/><BR/>Thanks,<BR/>-toeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-39930809766458038782007-03-16T03:31:00.000+05:302007-03-16T03:31:00.000+05:30run your code and it gave me following error messa...run your code and it gave me following error message:<BR/><BR/>"null" is null or not an object:<BR/><BR/>var field_area = document.getElementById(area);<BR/> var all_inputs = field_area.getElementsByTagName("input"); //Get all the input fields in the given area.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-38625018000899254812007-02-22T11:58:00.000+05:302007-02-22T11:58:00.000+05:30Wow, I was afraid you wouldn't see my comment to t...Wow, I was afraid you wouldn't see my comment to this 1 year old article. Thanks for the quick reply! :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13286014.post-68992924988436300902007-02-18T16:39:00.000+05:302007-02-18T16:39:00.000+05:30@AnonymousAll the code in the site is in BSD Licen...@Anonymous<BR/>All the code in the site is in BSD LicenseBinny V Ahttps://www.blogger.com/profile/17219747953793699351noreply@blogger.comtag:blogger.com,1999:blog-13286014.post-39702034502745956702007-02-18T15:17:00.000+05:302007-02-18T15:17:00.000+05:30hi, your post has been very informative and helpfu...hi, your post has been very informative and helpful! i was wondering, what kind of license does your tutorial code carry?Anonymousnoreply@blogger.com