Update image source

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nthaka1
    New Member
    • Nov 2007
    • 1

    Update image source

    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.select ion; ' but it just gives me type as control.

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

    Any type of help / Ideas would be appreciated.

    Thanks.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    To update the image source, change its src property:
    Code:
    img.src = newSrcString;

    Comment

    Working...