Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

write out image using Javascript

 
Tay Thotheolh
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64835
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the FAQ with regards to posting code. If it's too much bother to put any effort into your question...
 
Stoyan Stefanov
author
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just quickly glanced at the loop, seems like

shound be
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic