Changing the target url form the document or image path ver 4

Last post 06-06-2005, 12:05 PM by lundrigan. 1 replies.
Sort Posts: Previous Next
  •  06-03-2005, 10:19 AM 7210

    Changing the target url form the document or image path ver 4

        When an image or document is uploaded into an editor is there a way to modify the targeturl before the html code is inserted?
     
    Here is the scenerio. 
     
    I have a file path of: account/username/images  which maps to the appropraite file on the server.  I want to change this path just before the link or image is inserted in the editor to images/filename. 
     
    Can you think of a somehwat easy way to accomadate for this.  IN ver 3.  I could hard code the
    parent.imgname.value='" & "/images/" & folpath & fil.name & "';
    in the browse_imag.asp file and the browse_document.asp file.
    Then when an insert was perfomed that value was inserted properly.  I cannot find the location to change this in version 4.
  •  06-06-2005, 12:05 PM 7282 in reply to 7210

    Re: Changing the target url form the document or image path ver 4

    For those that might have a similair need especially if the editor is located in a different domain than the users website. 
     
    I used the vbscript replace function after the editor was submitted to remove the unnecessary path information.
     
     
    Then when the editor reloads I use a replace function to put it back in so the graphics will appear in editor.
     
    Hope it helps someone.
     
     
View as RSS news feed in XML