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.
Meera.
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.
Meera.
Comment