Why give img src tag assignment, IE can display images, but Firefox does not show

Category: Web Develop
 
sj0519_love
2013-08-20 02:51:46

Sponsored Links
Code is as follows, I want to get the address on file tab under img src on, IE can display images, but Firefox does not how this is going? Urgent! ! !
Online
</script>

<script type = " ; text / javascript ">

$ (" # supPhoto "). change ( function () {
/ / alert ($ ( "# supPhoto"). val ());
document.getElementById ("bigImage"). src = $ ("# supPhoto"). val ();

});

</script>

</head>
<body>
<div ; id = imgContainer class = imgContainer> <img id=bigImage src="${photoPath}" /> </div>
<tr>
; <td height="40">
; <s: file name = "supPhoto" id = "supPhoto" class = "gensched-37"> </ s: file>

<input type="hidden" name="proId" value="${proId}">
<input type = "hidden" name = "proPath" value = "$ {proPath}">

</td>
; <td>

; </td>
</tr>

< ;/ body>

</html>

Sponsored Links

whuiss2003
2013-08-20 02:55:48
script problems. Browser incompatibilities
chen010311332
2013-08-20 03:05:16
should be browser compatibility problems
way you put into the js
funciton changeImg () {
document.getElementById ("bigImage"). src = $ ("# supPhoto"). val ();
}
Then
<s: file onchange = "changeImg ()" name = "supPhoto" id = "supPhoto" class = " gensched-37 "> </ s: file>
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.