Hi,
I am working on a dynamic-site using “Eclipse”, Tomcat, javascript, mysql, jsp …etc. I am writing code that allow users to search their local-drive for an image/images and display it in the page. The page already has a default image, but when the user browses the hard-drive and selects anoter pic, this default image is replaced.
The functionally which is implemented in javascript & jsp/html works fine only when a page is defined in *.htm with javascript code b/t <HEAD> tags, and running separated from Eclipse. In other words, the “htm” file is on my hard-drive somewhere and I double click on it, then allow IE to run script or ActiveX… then it seems to work fine.
Now, this never works when I run it in “jsp” page within Eclipse project (running Tomcat server)…
The javascript still runs because I can place “alerts”; Also, the default image does show up, but it is not replaced by the image the user chooses from his hard drive, and instead the default image gets deleted and a “blank” space placed instead.
Why is this happening ????
Is it because I am running Tomcat, Eclipse, or Jsp…???
Thanks