![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does anyone know how to populate form fields on a html web page (client side) with data from an Excel file (CSV) or text file. I am currently having to input data to many text fields manually. I would like to transfer the data into the web form programatically from a CSV/text file. How can this be done? I am new to javascript, but I will work through the challange if possible. Please help! |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
This process will need to be done on a regular basis and I will not have access to the server. It must all be done client-side. I am provided a form online which has many input fields including text fields, radio buttons and checkboxes. My imput data is in a text/CSV file and is manually imput into the form. I want to use javascript to cycle through the text file and input the data into the form. The form includes text fields, radio buttons and checkboxes. |
#5
| |||
| |||
|
|
jcnone (AT) none (DOT) com wrote on 28 jun 2008 in comp.lang.javascript: [please always quote on usenet, this is not email] This process will need to be done on a regular basis and I will not have access to the server. It must all be done client-side. I am provided a form online which has many input fields including text fields, radio buttons and checkboxes. My imput data is in a text/CSV file and is manually imput into the form. I want to use javascript to cycle through the text file and input the data into the form. The form includes text fields, radio buttons and checkboxes. Why javascript? And where do you put your javascript if the page with the form is not yours? And where is your text file located? Is it only your personal browser on your own PC? |
|
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
#6
| |||
| |||
|
|
You have to look at the source of the remote page to get the Fields ID orNAME, then in the create the TextFile data in *Name/Values pairs. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
"In resonse to Evertjan: - What language will accomplish this? javaScript or whatever language will work is fine. |
|
- Precisely, where do I put the javascript or whatever language to make it affect a seperate page? I am tryin to figure this out. |
|
- The text file data to fill the form is on my computer. - The browser is on my personal computer. |
![]() |
| Thread Tools | |
| Display Modes | |
| |