my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Handle file content using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Handle file content using javascript" Watch "Handle file content using javascript" New topic
Author

Handle file content using javascript

Michael Celaya
Greenhorn

Joined: Dec 21, 2005
Posts: 18
Hi!

We would like to pass the file -any kind of file- content(notice we don't want the file route with the name, we want the data) that the user has chosen from the to the opener window(the form with the file browser is located in a child window).And then upload it to the database. Is there any chance to do this, without java-jsp?(we prefer using just javascript)

Thanks in advance.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
JavaScript has no IO ability, you need to use a serverside language.

Eric
Michael Celaya
Greenhorn

Joined: Dec 21, 2005
Posts: 18
Thanks for the answer Eric.
 
Consider Paul's rocket mass heater.
 
subject: Handle file content using javascript
 
Similar Threads
Using java Script with jsp
Displaying a HTML file in the new Browser Window using JSP
Struts - Forward the page and then print
pop in IE vs Firefox
Converting javaScript variable to java