Results 1 to 2 of 2

Thread: Load upload image into a an image control

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Load upload image into a an image control

    Hi,

    I have an upload control which I have set the onclientcomplete to call a jquery function. In this function I want to get the name of the file uploaded and assign it to an image control.

    I know very little jquery so was hoping someone could point me in the right direction.

    Regards,

    Jiggy

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: Load upload image into a an image control

    I've seen this example but it does not work in IE9 and I need an alternative. Looks like it's not possible:-

    <script type="text/javascript">
    var ImageSrc = "";
    function uploaded(e, args) {
    ImageSrc = "Symbols/" + args[0].files[0].name;
    }

    function completed(e, args) {
    $("#ctl00_ContentPlaceHolder1_imgPreview").attr("src", ImageSrc);
    }
    </script>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width