Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Server
Cold Fusion Server Tech
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Server: 
Subject: Re: [Converting Dates AND Dropping Imported HTML]
s@njeevi (9p/+0r)     Posted: Wednesday 28 Feb 2001
This post: 46 views, +0 rating

Hi May be this could help First use the CFHTTP and the read the file contents as #CFHTTP.FileContent#

or save the file in the server that is got from the CFHTTP and then read the contents say as "Counter" and then do the folling code

<!---- this line in case U save the file and then read the contents of the file ---> <CFFILE ACTION="Read" file="#new_file_with_path#" Variable="Counter"> <!-------- end of line --------->

<CFSET startpos = FindNoCase("<start_tag>", Counter) + 10> <!----- here U are adding 10 becoz from the 10th position onwards U want to extract the data ie after the > in <start_tag>

<CFSET endpos = FindNoCase("</end_data>", Counter, startpos)>

<CFSET data_to_extract =TRIM(Mid(Counter, startpos, endpos - startpos))>

may be U can run this in a look to get all the occurance of <Start_tag> and <end_tag>

I suggest U use <!--<data_to_extact> what ever data that is to be extracted </data_to_extract>--> instead of <start_data> and <end_data> becoz by using the <!-- it is a HTMl comment and the Browser does not interpret it but the CF reads it.

So that way it is safe and there is no chance of having any unnecessary data on the screen by using personalised uncommented tags.

hope it help fell free to get back with Queries. I use this very often

"Tony Hicks" <webmigit@alltel.net> wrote: > Is there a way to import a page using cfhttp and then slicing cfhttp.content > up so that if it says <start_tag> it knows to start gathering data at that > point and if it says <end_tag> it knows to stop? I've done similar with > importing delimited files into databases but the delimit value of cfhttp > won't do this either. And is there a way to make it repeatedly do this all > the way through the document til it has all the data? > > And on a similar note... i need to slice up a date in the format of MMDDYY > and put a period in after every two digits... so it would be MM.DD.YY or > even slashes would work, im not really concerned with the delimiter > anymore.. > > I also want to say thanks to this list.. Sometimes the questions asked > inspired me on my own ideas and many times I've harvested information from > the answers given, it would surely have been alot harder for me to have come > as far as I have without this list... Talk about a community, this is a > strong one and people are always willing to help if they know how and in > some cases just to point a person in the right direction. > > Thanks, > Tony Hicks > Professionally Designed Websites > http://www.righteousdesigns.com > ICQ: 5874143 AIM: Webmigit Y!: Webmigit > mailto:webmigit@alltel.net > Tired of your web host? > http://www.nextmill.net > Need a Domain? Don't have a credit card? > http://www.domainsbycheck.com > Got your Free Online Business Card Yet? > Here's mine: http://thecardfile.com/webmigit.htm > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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


Similar Subject Line Posts (+/- two weeks of this post)
RE: Create Directory Script  13 Mar 2001   (39 v/ +0 r)
RE: Create Directory Script  13 Mar 2001   (29 v/ +0 r)
Re: Create Directory Script  13 Mar 2001   (34 v/ +0 r)
RE: [RE: Create Directory Script]  13 Mar 2001   (39 v/ +0 r)
RE: Create Directory Script  13 Mar 2001   (28 v/ +0 r)
RE: Reboot and All Web Sites Stopped  13 Mar 2001   (23 v/ +0 r)
RE: Create Directory Script  13 Mar 2001   (35 v/ +0 r)
RE: Create Directory Script  13 Mar 2001   (39 v/ +0 r)
RE: Create Directory Script  13 Mar 2001   (32 v/ +0 r)
RE: NT Performance Counters  13 Mar 2001   (43 v/ +0 r)
FW: Your post  13 Mar 2001   (36 v/ +0 r)
Reboot and All Web Sites Stopped  13 Mar 2001   (36 v/ +0 r)
NT Performance Counters  13 Mar 2001   (28 v/ +0 r)
problems with CFHTTP on Windows 2000  13 Mar 2001   (47 v/ +0 r)
Re: Session Array  13 Mar 2001   (22 v/ +0 r)
RE: Session Array  13 Mar 2001   (27 v/ +0 r)
Session Array  13 Mar 2001   (22 v/ +0 r)
CF and SNMP  13 Mar 2001   (52 v/ +0 r)
ALTERNATIVE Re: Kill CFID and CFToken (fwd)  13 Mar 2001   (47 v/ +0 r)
Is there any check list on configuring CFSERVER under linux ?  13 Mar 2001   (32 v/ +0 r)
Browser digested cookie?  13 Mar 2001   (36 v/ +0 r)
RE: Create Directory Script  13 Mar 2001   (31 v/ +0 r)
RE: Create Directory Script  12 Mar 2001   (38 v/ +0 r)
KILL CFID and CFTOKEN  12 Mar 2001   (45 v/ +0 r)
Create Directory Script  12 Mar 2001   (32 v/ +0 r)
 

Send a reply to the CF-Server list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000