Glenn,

Why not parse for the elements contained within the brackets?

Search for the leading bracket ... 
- if followed by a legal element (e.g., "<img src"), then ...
- replace everything within the quotes (i.e., the folder and file name)
with the Arachne assigned name
- the result would be an acceptable Arachne reference valid for offline
use

Bob ~


On Sat, 07 Jun 2003 23:43:27 -0400 "Glenn McCorkle" <[EMAIL PROTECTED]>
writes:
> On Sat, 7 Jun 2003 22:45:58 -0400, Roger Turk wrote:
> 
> > Glenn,
> 
> > I guess that I don't understand.  If all a person wants to do is 
> to read a
> > page offline, then it shouldn't make any difference if a dynamic 
> image is
> > changed to static, should it?
> 
> > Roger Turk
> 
> My point is simply that when the link is 'dynamic' it does
> not contain "http://....";
> 
> Therefore, searching for "http://"; will not find it....
> Therefore it will not get replaced.
> 
> The link will remain as
> <img src="images/small/smallphoto-ofmyhouse-01.gif">
> 
> And will not be replaced by our required link to the local copy of
> the image <img src="file://spmh-01.gif">
> 
> > Glenn McCorkle wrote:
> 
> > .. > Ahhhh..... 'twould be nice if 'twere that easy. ;-)
> 
> > .. > However,
> 
> > .. > Most web pages use a combination of both "static" and 
> "dynamic"
> > .. > addresses for images. (and for links to other pages)
> 
> > .. > (static)
> > .. > <img 
> src="http://www.cisnet.com/glennmcc/images/cacheidx.gif";>
> 
> > .. > (dynamic)
> > .. > <img src="images/cacheidx.gif">
> 
> > .. > When the dynamic address is contained within a page located
> > .. > at http://www.cisnet.com/glennmcc/
> 
> > .. > Then the 'completed address' becomes the same as if we had 
> used the
> > .. > static address.
> 
> > .. > The reason for doing this is for 'portability'.
> 
> > .. > The exact same page can be placed at many different
> > .. > sites without editing to change a link to a (now local) 
> file.
> 
> > .. > So.....
> > .. > Doing a 'search and replace' of "http://.."; will not 'cut the 
> mustard'.
> 
> > .. > --
> > .. >  Glenn
> 
> -- 
>  Glenn
>  http://arachne.cz/
>  http://www.delorie.com/listserv/mime/
>  http://www.cisnet.com/glennmcc/
>  http://www.cisnet.com/glennmcc/aqc/
> 
> 

________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!

Reply via email to