By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,969 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,969 IT Pros & Developers. It's quick & easy.

Update image source

P: 1
Hi,

I have used one HTMLEditor user control in which iframe and textarea are used.

I had uploaded my html page in that editor and trying to edit html page. In this I want to give facility like when click on any image it gives me the option to edit it or to change the image src.

for that i had used ' document.selection; ' but it just gives me type as control.

I had tried to create the image object and assign the document.selection to that but it does not work.

Any type of help / Ideas would be appreciated.

Thanks.
Nov 14 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
To update the image source, change its src property:
Expand|Select|Wrap|Line Numbers
  1. img.src = newSrcString;
Nov 14 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.