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 write out image using Javascript 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 "write out image using Javascript" Watch "write out image using Javascript" New topic

write out image using Javascript

Tay Thotheolh
Ranch Hand

Joined: Aug 07, 2008
Posts: 84
Hi. I am using Javascript to write out images retrieved from a folder (using JSP). The script executed well until when it came to a for loop to document.write out images in html where the script within the for loop, doesn't execute. I have added a document.write("Hi, ") and nothing was output out.

The code is found at:

I have to link it because the code tag here doesn't seem to recognize the '<' and '>' tags in my codes and it would be too troublesome to go through the whole codes and change every tag to fit the requirements.

For the folder, let's presume the folder is found and the images are found that contain the images.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

See the FAQ with regards to posting code. If it's too much bother to put any effort into your question...

[Asking smart questions] [About Bear] [Books by Bear]
Stoyan Stefanov
Ranch Hand

Joined: Jul 16, 2008
Posts: 61
just quickly glanced at the loop, seems like

shound be

<a href="" target="_blank" rel="nofollow">my OOJS book</a>
I agree. Here's the link:
subject: write out image using Javascript
It's not a secret anymore!