After the point upload how to let the picture in the red box, the page does not jump?

Source: Internet
Author: User

Reply content:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">
   <>< span=""> 
    http-equiv=
    "content-type" 
    content=
    "txt/html;charset=utf-8" 
    />
    </span>javascript实现IE,firefox客户端图片预览<span class="nt">
    
    
         
    
    
    
   <>
IMG.SRC = url.createobjecturl (file) use Filereaderapi read for Dataurl suggest a browser to try. There is a technique called Ajax, which refreshes asynchronously. You can use this technique, Ajax asynchronously submits a picture upload, and then returns the path of the upload and the file name back to JSON. Then in the foreground Ajax success method, get the return JSON, and then replace the path of the image with the src,jquery substitution method in the IMG tag: $ ("#imgId"). attr (' src ', path); Path is the route. Imgid is the ID of the IMG tag. You can use the Fex Web uploader directly
There is a specification, UI customization, the bottom is JQ, the extension of the forcing upload generated image address, to the IMG src. Upload pictures, backstage must have received it? Background received image processing to return a file name, and then your front desk call just fine you have to use the JQ upload plugin
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.