codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  removing image file path  starrwriter at 06:18 on Saturday, April 17, 2004
 

I'm using IE's design mode for a WYSIWYG editor I'm assembling. The execCommand dialog for insert image places the absolute file path in the HTML for images. This has to be manually deleted before uploading the saved page to the web host, which isn't at all WYSIWYG.

For weeks I've been looking for a script to eliminate the file path from the image src tag, but I can't find anything that works client-side. I understand why it's necessary for an editor to use the file path to display an inserted image on the page under construction, but other WYSIWYG editors eliminate the path if the page is saved in the same folder/directory as the image. How is this done? I assume the script would have to be added to the execCommand(Save As) function.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: drop down tool tip
•  Re: My asp page changes my website links, what can I do?
•  Re: Web design
•  What is the HTML
•  Re: Ask for suggestions on blog template :)
•  Re: Im trying to creat an exception class - TRY CATCH
•  Re: Menu Problems
•  API for candlestick chart
•  Re: how we convert image into byte array in rmi


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011