Seems to me you need to use a regex to strip out all the image tags and
replace them with markers (I would use "#SUB#1", "#SUB#2", "#SUB#3" etc
where SUB = Chr(26). After the second form replace the markers with the
actual code. 

You need to search for something like this: "<img[^>]*>"


-----Original Message-----
From: Scott Van Vliet [mailto:[EMAIL PROTECTED]]
Sent: Friday, 19 April 2002 2:43 p.m.
To: CF-Talk
Subject: RE: Finding Images in HTML and Uploading


ActivEdit is too much for this particular client.  The client is
basically going to be receiving a ZIP file containing an HTML file and
images.  His job will just be to copy the HTML out of the file and paste
it into the field, and then supply the required images (which will be
named as those in the ZIP file).  Any other ideas?  Thanks for the tip,
though - ActivEdit is a great tool, and I have used it before. ^_^

----
SCOTT VAN VLIET
BRD.WRKS INTERACTIVE
T: 714.469.6805
E: [EMAIL PROTECTED]
 

-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 18, 2002 3:56 PM
To: CF-Talk
Subject: RE: Finding Images in HTML and Uploading

Why don't you use something like Activedit which has image uploading
built in?

-----Original Message-----
From: VAN VLIET, SCOTT E (SBCSI) [mailto:[EMAIL PROTECTED]]
Sent: Friday, 19 April 2002 10:50 a.m.
To: CF-Talk
Subject: Finding Images in HTML and Uploading


Before I go any farther than I already have, I thought I should ask you
folks if you have already seen this functionality, or know of a custom
tag
or UDF to do this:
 
I have a client who wants to be able to post HTML to a content
management
site, and have the ability to upload the images he references in the
code.
This is essentially a nightmare, however I can up with an idea for the
solution.
 
Basically, when he saves the HTML, I want to search through the text
that he
has typed and find any <img> tags.  Then, once I have the references to
those images found in the text, I will bring the user to another form
page,
which will loop over the list of these found <img> tags and write a
dynamically named <input type="image"> field for the corresponding
image.
Once the user selects and image for each found in the HTML text, I will
then
need to upload those images and change the <img> tags in the HTML text
to
reflect the names and location of the images uploaded, and return the
modified HTML text to be saved to the database.
 
WHEH!  That sounds like so much fun!  But, if any of you out there have
any
better ideas, please let me know.
 
Thanks!
 
Scott
 
+--------------------------+---------------------------+
| SCOTT VAN VLIET          | SBC SERVICES, INC.        |
| Senior Analyst           | ITO Enterprise Tools      |
| Tel: 858.886.3878        | 7337 Trade St. Room 4000  |
| Pgr: 858.536.0070        | San Diego, CA 92121       |
| Email: [EMAIL PROTECTED]    | http://www.sbc.com        |
+--------------------------+---------------------------+<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 
 




______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to