RE: Ordered Argument names
Here try this. Notice the cfset in the cffunction. cffunction name=doStuff cfset ArraySort(StructKeyArray(Arguments), textnocase, desc) / cfdump var=#Arguments# label=Arguments/ cfdump var=#StructKeyList(Arguments)#/br / cfdump var=#ArrayToList(Arguments)#/br /br / /cffunction cfset doStuff( a:'first' , b:'second' , c:'third' ) / cfset doStuff( z:'first' , y:'second' , x:'third' ) / cfset doStuff( a:'first' , b:'second' , x:'third' , y:'fourth' ) / cfset doStuff( b:'first' , d:'second' , f:'third' ) / -Chuck ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313147 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Ordered Argument names
@Dan - Good question. If you are sending the argument name in the call to the cffunction then they can be in any order and the cffunction will figure it out. -Chuck ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313153 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CSS Question
Put the style attribute in the option tag and get rid of the span. Chuck -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 12:07 PM To: CF-Talk Subject: CSS Question cfoutput query=getHexID option value=#hex_id# cfif hex_id eq get_category.hex_idselectedcfelse/cfif span style=background-color:#hex_id#; border:medium; width:10px; height:10px;nbsp;/span#hex_id# /option /cfoutput any reason why the span tag shouldn't produce a small box colored with the dynamic hex value -- Scott Stewart ColdFusion Developer Office of Research Information Systems Research amp; Economic Development University of North Carolina at Chapel Hill Phone:(919)843-2408 Fax: (919)962-3600 Email: [EMAIL PROTECTED] ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312601 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CSS Question
Ok, I get what you are trying to do now. You want a colored box beside the hex value in the option tag. Correct? Chuck -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 12:30 PM To: CF-Talk Subject: Re: CSS Question this colors the entire option tag here's the rendered html with a div in place, still no love select name=hex_id id=hex_id option value=#CC selecteddiv style=display: block; background-color:#CC; border:medium; border-color:#00; width:10px; height:10px;nbsp;/div#CC/option option value=#66CC66 div style=display: block; background-color:#66CC66; border:medium; border-color:#00; width:10px; height:10px;nbsp;/div#66CC66/option option value=#CC6699 div style=display: block; background-color:#CC6699; border:medium; border-color:#00; width:10px; height:10px;nbsp;/div#CC6699/option /select Weidler, Wilfred C. wrote: Put the style attribute in the option tag and get rid of the span. Chuck -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 12:07 PM To: CF-Talk Subject: CSS Question cfoutput query=getHexID option value=#hex_id# cfif hex_id eq get_category.hex_idselectedcfelse/cfif span style=background-color:#hex_id#; border:medium; width:10px; height:10px;nbsp;/span#hex_id# /option /cfoutput any reason why the span tag shouldn't produce a small box colored with the dynamic hex value -- Scott Stewart ColdFusion Developer Office of Research Information Systems Research amp; Economic Development University of North Carolina at Chapel Hill Phone:(919)843-2408 Fax: (919)962-3600 Email: [EMAIL PROTECTED] ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312606 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: using delimiters for a list function
The problem is the # in your string. I'm assuming you are testing something like this. cfset detail = '#7-Bodi - 25 votes' cfset votestring = listgetat(detail, 2, -) I'm also assuming that in the real solution you are reading the value from a file. If this is the case then this will work. cffile action=read file=#ExpandPath('.')#\text.txt variable=myOutPut cfset detail = myOutPut cfset votestring = listgetat(detail, 2, -) cfoutput #votestring# /cfoutput Let me know if I'm way off base here with the second assumption. Chuck -Original Message- From: Matthew Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, September 06, 2008 10:55 AM To: CF-Talk Subject: using delimiters for a list function I am trying to access a string as a list to get the second half of it. Here is the string: #7-Bodi - 25 votes Here is the code, but it throws an error: cfset votestring = listgetat(detail, 2, '-') Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312115 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Can I Use This CFScript Like This?
Rick, I have not tried it the way you have described, but I do use the Java sleep like so: go_to = createObject(java, java.lang.Thread); go_to.sleep(5000); //sleep time in milliseconds Chuck -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 12:10 PM To: CF-Talk Subject: Can I Use This CFScript Like This? I'm trying to set up a way to check the status of threads and implement a sleep function that loops and delays a following thread's initialization until the status of the first thread is Completed. I found an example in the CF8 docs using a sleep timer this is placed just inside the opening cfthread... tag of the cfthread that needs to wait. cfscript thread.sleepTimes=0; thread.initialized=false; while ((2_hmls_offices.Status != COMPLETED) (2_hmls_offices.Status != TERMINATED)) { sleep(2000); thread.sleeptimes++; } // Only do the post-initilization code if 2_hmls_offices is complete. If (threadA.Status == COMPLETED) { thread.initialized=true; // Post-initialization code would go here. } /cfscript I understand what's happening inside the cfscript, but I'd like to continue the processing *outside* the cfscript tag and use regular CFML, not cfscript for the thread. This example states, in the last line //Post-initialization code would go here. Can I just use the cfscript as is and follow the cfscript block with my cfqueries, etc., or would all my thread processing have to occur within the cfscript block? Is there a way to break out of the cfscript block once the status of the first thread, 2_hmls_offices, is Completed and go on to process regular CFML code? Thanks, Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311786 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Can I Use This CFScript Like This?
Rick, That code is ran in a cfscript block. You only have to create the object one. So the code would look something like this. cfscript go_to = createObject(java, java.lang.Thread); /cfscript Or if you prefer tags cfset go_to = createObject(java, java.lang.Thread) cfloop from=1 to=1000 cfif cfthread.2_hmls_offices.status is not completed cfscript go_to.sleep(5000); //sleep time in milliseconds /cfscript Or if you prefer tags cfset go_to.sleep(5000) cfelse Run queries, etc... /cfif Chuck -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 3:44 PM To: CF-Talk Subject: RE: Can I Use This CFScript Like This? Well... my attempt didn't work. After emptying the database tables that are filled with data upon running the .cfm file with the threads, all the tables were filled but the one with the cfscript in it. Chuck, I guess that I would use your java sleep code like so? cfloop from=1 to=1000 cfif cfthread.2_hmls_offices.status is not completed go_to = createObject(java, java.lang.Thread); go_to.sleep(5000); //sleep time in milliseconds cfelse Run queries, etc... /cfif Is your good just like it is or does it need script tags around it? Such as: script type=text/javascript go_to = createObject(java, java.lang.Thread); go_to.sleep(5000); //sleep time in milliseconds /script Thanks, Rick -Original Message- From: Weidler, Wilfred C. [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 12:57 PM To: CF-Talk Subject: RE: Can I Use This CFScript Like This? Rick, I have not tried it the way you have described, but I do use the Java sleep like so: go_to = createObject(java, java.lang.Thread); go_to.sleep(5000); //sleep time in milliseconds Chuck -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 12:10 PM To: CF-Talk Subject: Can I Use This CFScript Like This? I'm trying to set up a way to check the status of threads and implement a sleep function that loops and delays a following thread's initialization until the status of the first thread is Completed. I found an example in the CF8 docs using a sleep timer this is placed just inside the opening cfthread... tag of the cfthread that needs to wait. cfscript thread.sleepTimes=0; thread.initialized=false; while ((2_hmls_offices.Status != COMPLETED) (2_hmls_offices.Status != TERMINATED)) { sleep(2000); thread.sleeptimes++; } // Only do the post-initilization code if 2_hmls_offices is complete. If (threadA.Status == COMPLETED) { thread.initialized=true; // Post-initialization code would go here. } /cfscript I understand what's happening inside the cfscript, but I'd like to continue the processing *outside* the cfscript tag and use regular CFML, not cfscript for the thread. This example states, in the last line //Post-initialization code would go here. Can I just use the cfscript as is and follow the cfscript block with my cfqueries, etc., or would all my thread processing have to occur within the cfscript block? Is there a way to break out of the cfscript block once the status of the first thread, 2_hmls_offices, is Completed and go on to process regular CFML code? Thanks, Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311804 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ColdFusion IIS Virtual Directories
I have never set up anything but the CFIDE virtual directory. Chuck -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 2:08 PM To: CF-Talk Subject: ColdFusion IIS Virtual Directories What are the IIS Virtual Directories set up for websites using ColdFusion? I know there should be one for CFIDE, but isn't there a second one as well? TIA ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311668 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Connect/Create com opbject to MS Word Viewer
I have already tried that, but thanks for the suggestion. Chuck -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 11:24 AM To: CF-Talk Subject: Re: Connect/Create com opbject to MS Word Viewer I'm taking a guess here, because the MS Word Viewer 2003 exe is wordview.exe and not word.exe, wouldn't that change the class in the object call to wordview.application? just a shot in the dark.. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311417 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4