I run this code every time a major change as taken place to update a static
webpage. All you are missing is the interval and operation.

<cfset StartTime = #DateAdd('n',1,Now())#>
<cfset StartTime = #TimeFormat(StartTime,'HH:MM:SS')#>

<cfschedule interval="Once" action="UPDATE" task="BlueEar_UpdatePageContent"
operation="HTTPRequest"
url="http://192.168.0.90/LocalAgents/UpdateFrontpage.cfm";
startdate="#DateFormat(Now(),'MM/DD/YYYY')#" starttime="#StartTime#"
resolveurl="Yes" publish="No">


Rick


-----Original Message-----
From: James Johnson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 2:11 PM
To: CF-Talk
Subject: Cfschedule syntax

Hello,

I'm having a problem getting the syntax for cfschedule correct.

I want to run a CF page which will query a db and run a batch of emails.
That is done. What I'm having a problem with is the actual <cfschedule> tag.

1) Does the Task need to be setup before hand in CF Admin?
2) If it doesn't, I'm getting confused on the ACTION attributes RUN/UPDATE.

The emailing page is called RR_email_results.cfm

<cfset stDate = #DateFormat(Now(),"M/DD/YYY")#>
<cfset stTime = #TimeFormat(Now(),"h:mm tt")#>
<cfset stTime = #DateAdd('N',10,Now())#>
<cfset stTime = #TimeFormat(newTime,"h:mm tt")#>

<cfschedule 
        action="update" 
        startdate=#stDate# 
        starttime=#stTime# 
        task="Test Schedule" 
        url="http://127.0.0.1/oryanresellerrecruit/RR_email_results.cfm";
        resolveurl="yes"
>

The error message I'm getting is:
Attribute validation error for tag CFSCHEDULE.  
When the value of the ACTION attribute is "UPDATE", the tag requires the
attribute(s): INTERVAL,OPERATION.  

Does anyone have some sample code, they'd like to share?
Thanks,
James


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to