Re: Image/Hyperlinks (Need Support for Relative & Absolute Paths)

  •  02-15-2005, 6:51 AM

    Re: Image/Hyperlinks (Need Support for Relative & Absolute Paths)

    Hello Demmet,

     

    I know this is a pain in the ****, and I also struggled with this one at first.... but what you can write a small function that replaces a part of the link...

     

    for example... PAGE 1 on testserver with image gives something like this: <img src=http://testserver.com/images/image01.gif>

     

    Now, if you upload it to a live server, you can add the following function to it (using an include file can help - empty include file on testserver <> function on liveserver)
     
    example function could be :
     
         Content = Request.Form("Editor1_HTMLContent")          ' or database field

         Content = Replace(Content,"http://testserver.com","http://liveserver.com") 

    I think this is a good temporary solution until CuteSoft implement this in the new version of the CuteEditor.
    Hoping to be of any assistance.
     
    Greetings
    Wim
     
     
     
View Complete Thread