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

Category: Web Develop
 
gyy22
2013-08-20 05:56:40

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

tyj302070
2013-08-20 06:09:50
document.getElementById ("bigImage"). src = $ ("# supPhoto"). val ();

into jquery wording:
var _src = $ ("# supPhoto"). val ();
/ / First you have to determine _src can get to the correct value and then
$ (" ; # bigImage "). attr (" src ", _src);
you try such wording can not be completed
randomok
2013-08-20 06:13:57
/ / alert ($ (" # supPhoto ") . val ());
that there is no data that way?
tyunxiao
2013-08-20 06:16:51
/ / alert ($ ("# supPhoto"). val ());
has data
woshiada
2013-08-20 06:35:46
replaced by jquery wording:
var _src = $ ("# supPhoto"). val ();
/ / First you have to determine _src can get to the correct value and then
$ (" ; # bigImage "). attr (" src ", _src);
you try such wording can not be completed

I tried to do so, looked with Firefox , the assignment is that the following scenario
<img src=" yantai.jpg" id="bigImage"/>
yantai.jpg is the new value assigned
fzdm_2005
2013-08-20 06:41:24
how to make it display picture it
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.