Solved

HTML......Dynamically populate a file

Posted on 2010-09-07
2
221 Views
Last Modified: 2012-06-27
Hello All,

We have a situation in which we have to fill up a webform for many users [kind of a data entry project].We saved the html file from the customer's site and made some changes in the javascript so that most of the fields are filled by onLoad [the JS function].We already have the required data so its not a problem to get that in the html form.The issue comes on the  <input type="file">.We want the value to be taken up dynamically.Like onLoad the value populates in it.Right now we have to manually select the file and then hit submit which increases the time required to submit one form.
Please guide us on how can we dynamically fill up that part.....

PS: The names of the files we want to upload are all in a series ,for eg.  file 1,file 2 etc.....

Thanks
0
Comment
Question by:SHALABH
2 Comments
 
LVL 11

Expert Comment

by:rajvja
ID: 33618149
0
 
LVL 2

Accepted Solution

by:
SHALABH earned 0 total points
ID: 33639601
For now we will be using an old Opera  version which allows the value attribute in "input type=file" and gives an alert on submission.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now