I've got it. I just did a replacenocase() on it and it worked fine.

Phil

-----Original Message-----
From: Phillip Perry [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 31, 2004 4:34 PM
To: CF-Talk
Subject: another cfhttp issue


Along with the links i'm also parsing some inline css. Is there a way I can
get rid of those css lines?

Phil

-----Original Message-----
From: Cold Fusion User Group CNY [mailto:[EMAIL PROTECTED]
Behalf Of Gregory Lewis
Sent: Sunday, October 31, 2004 4:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFUGCNY] Cfhttp and displaying links


Hi Phillip,

You need to use the RESOLVEURL="YES" attribute in your CFHTTP tag, like so:

<CFHTTP URL="http://www.someurl.com/subfolder/file.html"; METHOD="GET"
RESOLVEURL="YES"></CFHTTP>

Then, all your worldly problems will melt away like butter.

-Gregory


Phillip Perry wrote:

>Hi,
>
>I've parsed some links from a website but the links are bad. The links are
>being parsed as <a href="../folder/file.html">blah</a> but that poses a
>problem. I need it to show the whole proper url. I know where ../ leads so
I
>can replace it but how do I display the right path? What I need to do is
get
>rid of the ../ and replace it with http://www.thesite.com/
>
>
>I'm inlcuding the code so you can see what i'm doing.
>
>Thanks
>
>Phil
>
><cfhttp URL=http://www.someurl.com/subfolder/file.html
>method="get"></cfhttp>
><cfset start=find("content to start on",CFHTTP.FileContent,1)>
><cfset EndOfFile=find("end of content,CFHTTP.FileContent,1)>
><cfloop from=1 to=5 index=whatever>
><cfif FindNoCase("<a",CFHTTP.FileContent,start) GT 0>
><cfif FindNoCase("<a",CFHTTP.FileContent,start) GTE EndOfFile>
>
><cfbreak>
></cfif>
><cfset start=FindNoCase("<a",CFHTTP.FileContent,start)>
><cfset end=FindNoCase("</a>",CFHTTP.FileContent,start)+4>
><cfset length=end-start>
><cfoutput>
>#Mid(CFHTTP.FileContent,start,length)#<br>
></cfoutput>
><cfset start=end>
></cfif>
></cfloop>
>
>________________________________________________________________
>To unsubscribe: send a message to [EMAIL PROTECTED] with
>'Unsubscribe CFUGCNY' in the body.
>To send a message to the list: [EMAIL PROTECTED]
>
>List archives:
http://www.mail-archive.com/[EMAIL PROTECTED]/index.html
>Visit our website: http://www.cfugcny.org
>
>
>
>


--
#include Inter_Galactic_Library
invokeHuman('Gregory','Lewis');
doDomain('www.earthboar.com');

________________________________________________________________
To unsubscribe: send a message to [EMAIL PROTECTED] with
'Unsubscribe CFUGCNY' in the body.
To send a message to the list: [EMAIL PROTECTED]

List archives:
http://www.mail-archive.com/[EMAIL PROTECTED]/index.html
Visit our website: http://www.cfugcny.org

________________________________________________________________
To unsubscribe: send a message to [EMAIL PROTECTED] with
'Unsubscribe CFUGCNY' in the body.
To send a message to the list: [EMAIL PROTECTED]

List archives:
http://www.mail-archive.com/[EMAIL PROTECTED]/index.html
Visit our website: http://www.cfugcny.org







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=37

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183027
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to