This code will work on any site... No changes need other than the url to search and the start and end tags of course... The code I submitted last night only worked on yahoo... ouch!
<cfparam name=outstring default=''> <CFHTTP URL="enterurlhere" METHOD="GET" RESOLVEURL="yes"> </CFHTTP>
<cfset stvar='<start_tag>'> <cfset endvar='<end_tag>'>
<CFSET st=Findnocase('#stvar#',CFHTTP.FileContent)> <CFSET end=Findnocase("#endvar#",CFHTTP.FileContent)>
<CFSET num=end-st> <cfscript> AddExcess = num + #len(endvar)#; </cfscript> <cfset outstring=mid(CFHTTP.FileContent,st,AddExcess)>
<CFOUTPUT>#outstring#</CFOUTPUT>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To unsubscribe, send a message to cf-server-request@houseoffusion.com with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com