Unusual CFCACHE Problem

2006-10-19 Thread Stephen Whiteley
Hi

I've got a problem is which killing me slowly. CFCACHE on one of my domains has 
stopped working. I can get it to work using the ip address for the domain, but 
if I use the domain name it doesn't work. 

http://63.134.204.53/cache/cachetest.cfm - This works
http://www.bigtripper-scotland.co.uk/cache.cachetest.cfm - This doesn't

When using the domain name it seems to bypass the cfcache tag altogether, even 
if I put an incorrect directory in the cfcache it doesn't even throw an error. 
Although there is an error appearing in my application log as follows--this 
occurs only when domain is used.

Error,jrpp-1275,10/19/06,15:02:44,,File not found: 
/cache/cachetest.cfm The specific sequence of files included or processed is: 
c:\inetpub\wwwroot\cache\cachetest.cfm 
Error,jrpp-1278,10/19/06,15:02:44,,cfcache could not retrieve the page 
content. HTTP status code '404 Not Found'

I've had a look at DNS settings and everything seems fine, it is working on 
other domain names though.

Any ideas?

Thanks

Steve

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257391
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Unusual CFCACHE Problem

2006-10-19 Thread Stephen Whiteley
Yes, but does it cache if you press refresh, on one the time will stop cos its 
cached, on the other it doesn't

thanks

steve


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257408
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Unusual CFCACHE Problem

2006-10-19 Thread Stephen Whiteley
Yes, it will, but does one cache the time? on the other doesn't when you press 
refresh

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257411
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT: Roll out menus

2005-10-27 Thread Stephen Whiteley
Again not free, but basically you can position within tables, also does 
infinite menus based on adjacency list

http://www.xtreeme.com/dhtml/dynamic-creation/

Steve

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222401
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Recursion anyone?

2005-10-27 Thread Stephen Whiteley
Thanks David, I get that:)

Steve

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222402
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


Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Hi

I keep returning to this problem in order to build an infinite DHTML menu (a 
task which has now become a quest and a matter of honour). Does anyone know how 
to recurse through an adjacency list model table, of the following setup

ID CategoryName ParentItemID

Also, I hear you can use CFTREE format=xml or format=object and then use 
that to make a DHTML menu? anyone have any experience

Muchos Thank You's

Steve

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:79
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFTREE Object - Looping through structure

2005-10-26 Thread Stephen Whiteley
On Tuesday 25 October 2005 17:51, Stephen Whiteley wrote:
 I always seem to have a way of wording questions, that inspire no answers,
 does anyone want any clarification or more information?

You're not sure how to write a recursive function in CF ?
You've tried and it craps out ?

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

Yes I am, sorry I cross-posted thinking that this thread was dead. In the 
following thread I think I explain myself better I hope.


http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:42965

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:81
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


Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Hi

Yes the problem is the recursion can't get my head round it, never used 
CFSCRIPT before being a bit of a newbie.

Not trying to build a DHTML menu from scratch and would use an off the shelf 
one.

CFTREE in CFMX 7 will output xml or a structure depending on format= used.

I'll keep playing with the code provided thanks, but if anyone can expand for a 
dummy, much appreciated

Steve

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:87
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
OK, this is my database setup

ItemID,ParentItemID,AdCategoryName

What I want to be able to do is output something like this (before I go to the 
DHTML menu stage, walk before I can run)

Accommodation
Self Catering
Farmhouse
Rustic Farmhouse
Activities
Walking
Walking Routes
 Walking Shops

etc. etc...

I'm sure once a get the hang of it I'll be ok but any help much appreciated

Thanks

Steve


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:89
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Kerry

I'm trying to get you code to work but will be making a real hash of it, I 
wonder if you take a look at this, I think getting the query in is the problem.

cfquery datasource=#DSN# name=getAllCategories
SELECT itemid,parentitemid,adcategoryname FROM tblAdvertTypes
/cfquery


cfscript

variables.inst.menuqry = getAllCategories();

function buildmenu(currentid){
  var i=0;
  for(i=1; i lte parentitemid.menuqry.recorcount; i=i+1){
  if(variables.inst.menuqry.parentitemid[i] eq arguments.currentID)
writeoutput(variables.menuqry.adcategoryname);
buildmenu(variables.inst.menuqry.itemid[i]);
  }
  }

/cfscript

cfset returnValue=buildmenu(10)


cfoutput#returnvalue#/cfoutput

thanks


Steve

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:95
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


Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Thanks Kerry

I'm starting to understand, got no experience of cfscript but it seems a lot 
like actionscript.

Unfortunately I've tried to run the code and I'm getting the following error.

Context validation error for tag cfscript.  
The start tag must have a matching end tag. An explicit end tag can be provided 
by adding /cfscript. If the body of the tag is empty you can use the shortcut 
cfscript .../. 


This is the exact code

cfquery datasource=#DSN# name=getAllCategories
SELECT itemid,parentitemid,adcategoryname FROM tblAdvertTypes
/cfquery


cfscript
variables.inst.menuqry = getAllCategories;

function buildmenu(currentid,depth){
  var i=0;
  for(i=1; i lte parentitemid.menuqry.recorcount; i=i+1){
  if(variables.inst.menuqry.parentitemid[i] eq arguments.currentID)
writeoutput(repeatstring(,arguments.depth)variables.menuqry.adcategoryname[i]br);
buildmenu(variables.inst.menuqry.itemid[i],arguments.depth+1);
  }
  }

buildmenu(10,0)
/cfscript

Steve

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222308
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Thanks, missed that

Still throwing an error though

Variable PARENTITEMID is undefined.  
 
  
The error occurred in C:\Inetpub\wwwroot\bigtripper\recurse\testfunction.cfm: 
line 11
 
9 : function buildmenu(currentid,depth){
10 :   var i=0;
11 :   for(i=1; i lte parentitemid.menuqry.recordcount; i=i+1){
12 :   if(variables.inst.menuqry.parentitemid[i] eq arguments.currentID)

 
The code is below:

cfquery datasource=#DSN# name=getAllCategories
SELECT itemid,parentitemid,adcategoryname FROM tblAdvertTypes
/cfquery


cfscript
variables.inst.menuqry = getAllCategories;

function buildmenu(currentid,depth){
  var i=0;
  for(i=1; i lte parentitemid.menuqry.recordcount; i=i+1){
  if(variables.inst.menuqry.parentitemid[i] eq arguments.currentID)
writeoutput(repeatstring(,arguments.depth)variables.menuqry.adcategoryname[i]br);
buildmenu(variables.inst.menuqry.itemid[i],arguments.depth+1);
  }
  }

buildmenu(1,0);
/cfscript

Thanks

Steve

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222324
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Recursion anyone?

2005-10-26 Thread Stephen Whiteley
Hi

Thanks everyone, there's lots of different approaches here which I'll look at 
over time. Brain got tired in the end! I just thought that with the new CFTREE 
format options i.e. xml and object, that there could be a quick (and easy) way 
to do DHTML menus.

But I've learnt quite a bit, sorry if I hacked anyone off - the ease of basic 
Coldfusion means that not everyone who uses it is a full-on programmer with a 
computer-science degree. So difficult to debug code when you're not 100% sure 
what it does!

I eventually found an off the peg DHTML and recursion solution here 
http://www.xtreeme.com/dhtml/dynamic-creation/ which although not directly 
supporting coldfusion does work really well and solves my immediate problem.

Thanks again

Steve

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222369
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


CFTREE Object - Looping through structure

2005-10-25 Thread Stephen Whiteley
Hi

I'm using the CFTREE tag on cfmx7. I've set the format type to object. This 
gives me a structure called navtree. I need to loop through it to use the 
information in either Breadcrumb nav or DHTML menu nav. BUT not sure how to do 
it. Here's what i've got so far, but it isn't recursive and only goes down two 
levels, also what happens when I need to recurse up the tree.OR am I 
missing something really simple here.

Thanks

Steve

cfset al=#ArrayLen(navtree.children)#
cfloop from=1 to=#al# index=x

strongcfoutput#navtree.children[#x#].display#/cfoutput/strongbr
cfset 
al2=#ArrayLen(navtree.children[#x#].children)#br
cfloop from=1 to=#al2# index=y
cfdump 
var=#navtree.children[#x#].children[#y#].display#br
/cfloop
p
/cfloop

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222168
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


Re: CFTREE Object - Looping through structure

2005-10-25 Thread Stephen Whiteley
I always seem to have a way of wording questions, that inspire no answers, does 
anyone want any clarification or more information?

Cheers

Steve

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:01
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


Re: Real time count-down

2005-10-25 Thread Stephen Whiteley
I had to do this recently, but did it in flash, which worked well. Here's a 
link 

http://www.kirupa.com/developer/mx/countdown.htm

Thanks

Steve

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:02
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