Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP Tiff Image Display

807569May 17 2006 — edited May 17 2006
Hi all,

I have a problem in displaying Tiff image in jsp page. I am using Internet Explorer 6.0 . I have installed Tiff Image plug-in from the site www.alternatiff.com. If the location of the image is given directly i can view the image. But through javascript function if I pass the location of the image to the embed tag src then it is not diplayed.

i have posted the code:

<html>
<head>
</head>
<SCRIPT LANGUAGE="JavaScript">
function submitpage()
{
alert(document.forms[0].image.value)
document.forms[0].img.src=document.forms[0].image.value
alert (document.forms[0].img.src)

}
</script>

<body >
<form >
<table border="0" cellpadding="0" cellspacing="0" align=center>

<tr><td>Image Location : <input type="text" name="image" /></td></tr>
<tr><td> <embed src=" " alt="Cheque Image will come here" width="600" height="300" name="img"> <tr><td>
<tr> <td colspan=4 align=center><input type=button name="click" value="Submit" onclick="submitpage()" /></center></td> </tr>

</table>
</form>
</body>
</html>


Is there anyother way to view the tiff image.
Thanks in advance for any suggestions.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2006
Added on May 17 2006
3 comments
192 views