Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 上传的图像未显示在fancybox弹出窗口中_Jquery_Jsp_Popup_Fancybox - Fatal编程技术网

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

我使用jQuery fancybox作为弹出窗口,在我的应用程序中显示上传的图像。我上传图片的代码如下: 更改照片

       <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">&nbsp;</p>
          <input type="submit" value="" class="upload-photo-but" />&nbsp;&nbsp;&nbsp; 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">&nbsp;</p>
          <input type="submit" value="" class="upload-photo-but" />&nbsp;&nbsp;&nbsp; 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">&nbsp;</p>
          <input type="submit" value="" class="upload-photo-but" />&nbsp;&nbsp;&nbsp; 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">