-
Aug 9th, 2013, 09:03 AM
#1
Thread Starter
Frenzied Member
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
-
Aug 13th, 2013, 10:26 AM
#2
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|