File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Dynamic File element

 
S Subbu
Ranch Hand
Posts: 87
jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course it doesn't submit. Your form has no action to submit to.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or method.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or enctype
 
S Subbu
Ranch Hand
Posts: 87
jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

i think this is because i am calling

inputElement.click();

dynamically instead of click on browse.

Please Help Me.


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic