<small id='KXGsz'></small><noframes id='KXGsz'>

    <bdo id='KXGsz'></bdo><ul id='KXGsz'></ul>
<tfoot id='KXGsz'></tfoot>
  • <i id='KXGsz'><tr id='KXGsz'><dt id='KXGsz'><q id='KXGsz'><span id='KXGsz'><b id='KXGsz'><form id='KXGsz'><ins id='KXGsz'></ins><ul id='KXGsz'></ul><sub id='KXGsz'></sub></form><legend id='KXGsz'></legend><bdo id='KXGsz'><pre id='KXGsz'><center id='KXGsz'></center></pre></bdo></b><th id='KXGsz'></th></span></q></dt></tr></i><div id='KXGsz'><tfoot id='KXGsz'></tfoot><dl id='KXGsz'><fieldset id='KXGsz'></fieldset></dl></div>

    <legend id='KXGsz'><style id='KXGsz'><dir id='KXGsz'><q id='KXGsz'></q></dir></style></legend>

      1. php &amp;jquery 上传图片并即时预览显示

        php amp; jquery upload image and preview display instantly(php amp;jquery 上传图片并即时预览显示)
          <tbody id='iLINZ'></tbody>
        • <bdo id='iLINZ'></bdo><ul id='iLINZ'></ul>
            • <legend id='iLINZ'><style id='iLINZ'><dir id='iLINZ'><q id='iLINZ'></q></dir></style></legend>
                <i id='iLINZ'><tr id='iLINZ'><dt id='iLINZ'><q id='iLINZ'><span id='iLINZ'><b id='iLINZ'><form id='iLINZ'><ins id='iLINZ'></ins><ul id='iLINZ'></ul><sub id='iLINZ'></sub></form><legend id='iLINZ'></legend><bdo id='iLINZ'><pre id='iLINZ'><center id='iLINZ'></center></pre></bdo></b><th id='iLINZ'></th></span></q></dt></tr></i><div id='iLINZ'><tfoot id='iLINZ'></tfoot><dl id='iLINZ'><fieldset id='iLINZ'></fieldset></dl></div>

                <small id='iLINZ'></small><noframes id='iLINZ'>

                  <tfoot id='iLINZ'></tfoot>
                  本文介绍了php &amp;jquery 上传图片并即时预览显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我期待创建一个上传模块,用户可以在其中浏览,点击打开,它会立即显示该图像的预览,而无需点击提交按钮,以便用户可以继续输入其他信息.

                  im looking forward to create an upload module where user can browse, click open and it will instantly display a preview of that image without having to click a submit button so that user can continue to key in other information.

                  我在下面做了一个简单但不完整的 jquery,它基本上捕获了图像名称.但我的问题是我如何将上传图像发布到 php 脚本,因为 POST 没有提交按钮?我无法捕获 $_FILES 数组值.

                  i've done a simple but incomplete jquery below which basically capture the image name. but my question is how do i post the upload image to the php script since there is there is no submit button for POST? i cant capture $_FILES array values.

                  jquery:

                  $(document).ready(function() {
                    $("#uploadimage").change(function() {
                        var imagesrc = $("#uploadimage").val();
                        $.post("/script/ajax_uploadimage.php", $("#formuploadimage").serialize(),
                        function(data){
                          //do something here
                        },"json");
                    });
                  });
                  

                  html表单:

                  <form name="formuploadimage" enctype="multipart/form-data" action="/upload.php" method="POST">
                      <table> 
                          <tr><td>Image: </td><td><div id="imagepreview"></div></td></tr> 
                          <tr><td>Upload a photo: </td><td><input type="file" name="uploadimage" id="uploadimage" /></td></tr>
                      </table> 
                  </form>
                  

                  我已经看到 Uploadify 可以做什么,但我想自己创建一个.

                  i've seen what Uploadify can do but i would like to create one on my own.

                  问候

                  推荐答案

                  只能通过发帖形式发图片,所以必须使用iframe上传图片,无需重新加载主页.当 iframe 重新加载时,在其响应中添加一些脚本,在主页中触发回调函数以显示刚刚上传的图像.

                  You can post image only by posting form, so you must use iframe to upload image without reloading main page. When iframe reloads, add some script in its response which triggers callback function in main page to display just uploaded image.

                  这篇关于php &amp;jquery 上传图片并即时预览显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                1. <i id='UZFOF'><tr id='UZFOF'><dt id='UZFOF'><q id='UZFOF'><span id='UZFOF'><b id='UZFOF'><form id='UZFOF'><ins id='UZFOF'></ins><ul id='UZFOF'></ul><sub id='UZFOF'></sub></form><legend id='UZFOF'></legend><bdo id='UZFOF'><pre id='UZFOF'><center id='UZFOF'></center></pre></bdo></b><th id='UZFOF'></th></span></q></dt></tr></i><div id='UZFOF'><tfoot id='UZFOF'></tfoot><dl id='UZFOF'><fieldset id='UZFOF'></fieldset></dl></div>

                      <bdo id='UZFOF'></bdo><ul id='UZFOF'></ul>

                      <small id='UZFOF'></small><noframes id='UZFOF'>

                        <tbody id='UZFOF'></tbody>
                      • <legend id='UZFOF'><style id='UZFOF'><dir id='UZFOF'><q id='UZFOF'></q></dir></style></legend>

                            <tfoot id='UZFOF'></tfoot>