wood burning stoves 2.0*
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


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

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: http://twzgerald.googlepages.com/adsFrame.jsp

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
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Stoyan Stefanov
author
Ranch Hand

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

shound be


<a href="http://www.thinkinginjavascript.com" target="_blank" rel="nofollow">my OOJS book</a>
 
Don't get me started about those stupid light bulbs.
 
subject: write out image using Javascript
 
Similar Threads
while-loop
'please wait' message while jsp is loading
help needed with mouse over text change
JavaScript
Why to use eval function inside Javascript