Jquery 上传的图像未显示在fancybox弹出窗口中
我使用jQuery fancybox作为弹出窗口,在我的应用程序中显示上传的图像。我上传图片的代码如下: 更改照片Jquery 上传的图像未显示在fancybox弹出窗口中,jquery,jsp,popup,fancybox,Jquery,Jsp,Popup,Fancybox,我使用jQuery fancybox作为弹出窗口,在我的应用程序中显示上传的图像。我上传图片的代码如下: 更改照片 <div class="change-photo" style="min-height:250px;"> <div class="current-photo"> <span>Current Photo</span> <img src="getProfilePic.html
<div class="change-photo" style="min-height:250px;">
<div class="current-photo">
<span>Current Photo</span>
<img src="getProfilePic.html?userid=${sessionScope.user.userId}" height="100px" width="100px" border="0" class="img" /></div>
<div class="upload-photo">
<p><span>Upload Photo</span></p>
<p>You can upload a JPG or PNG file (File size limit is 4 MB).</p>
<p><input type="file" NAME="file" onchange="checkSize(this);" /></p>
<p > <font style="color:red;">${message}</font></p>
<p class="dot-line"> </p>
<input type="submit" value="" class="upload-photo-but" /> or
<a class="cropImage {width:1024,height:675}" href="uploadPhoto.html"></a>
<a href="javascript:history.back();"><b>Cancel</b></a>
</div>
</div>
</div>
</div> I am using a form submission to a controller which is used to display the uploaded image for cropping. <FORM ENCTYPE="multipart/form-data" METHOD="POST">
我无法在弹出窗口中获取上传的图像。在代码中做了一些小改动之后,我得到了一个带有异常的弹出窗口,或者一个带有相同jsp的弹出窗口来上传图像
<div class="change-photo" style="min-height:250px;">
<div class="current-photo">
<span>Current Photo</span>
<img src="getProfilePic.html?userid=${sessionScope.user.userId}" height="100px" width="100px" border="0" class="img" /></div>
<div class="upload-photo">
<p><span>Upload Photo</span></p>
<p>You can upload a JPG or PNG file (File size limit is 4 MB).</p>
<p><input type="file" NAME="file" onchange="checkSize(this);" /></p>
<p > <font style="color:red;">${message}</font></p>
<p class="dot-line"> </p>
<input type="submit" value="" class="upload-photo-but" /> or
<a class="cropImage {width:1024,height:675}" href="uploadPhoto.html"></a>
<a href="javascript:history.back();"><b>Cancel</b></a>
</div>
</div>
</div>
</div> I am using a form submission to a controller which is used to display the uploaded image for cropping. <FORM ENCTYPE="multipart/form-data" METHOD="POST">
提前谢谢
<div class="change-photo" style="min-height:250px;">
<div class="current-photo">
<span>Current Photo</span>
<img src="getProfilePic.html?userid=${sessionScope.user.userId}" height="100px" width="100px" border="0" class="img" /></div>
<div class="upload-photo">
<p><span>Upload Photo</span></p>
<p>You can upload a JPG or PNG file (File size limit is 4 MB).</p>
<p><input type="file" NAME="file" onchange="checkSize(this);" /></p>
<p > <font style="color:red;">${message}</font></p>
<p class="dot-line"> </p>
<input type="submit" value="" class="upload-photo-but" /> or
<a class="cropImage {width:1024,height:675}" href="uploadPhoto.html"></a>
<a href="javascript:history.back();"><b>Cancel</b></a>
</div>
</div>
</div>
</div> I am using a form submission to a controller which is used to display the uploaded image for cropping. <FORM ENCTYPE="multipart/form-data" METHOD="POST">