File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Problem with Dynamic File element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem with Dynamic File element" Watch "Problem with Dynamic File element" New topic

Problem with Dynamic File element

S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

Hi all,

I have a Problem with dynamically creating file element using javascript , My Code is

When i click on Upload Button ,My Form did not submitted instead that clears the value in the browse text field.

Please execute above code and clear my Problem.

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Of course it doesn't submit. Your form has no action to submit to.

GenRocket - Experts at Building Test Data
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
or method.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63869

or enctype

[Asking smart questions] [About Bear] [Books by Bear]
S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

With them also i am getting same problem. Please execute this code and observe what happends.

i think this is because i am calling;

dynamically instead of click on browse.

Please Help Me.

I agree. Here's the link:
subject: Problem with Dynamic File element
It's not a secret anymore!