Re: OT JS question
Can you try this, (parseInt(,10)||0) Raj Thanks for the suggestions but if I do this I get NaN (not a number I am guessing). parseInt(FOO,10); parseInt(,10); http://www.w3schools.com/jsref/jsref_parseInt.asp var value = 15; parseInt(value,10); On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray cg...@careyweb.com wrote: ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331375 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Local DEV setup, multiple projects/websites
On Wed, Mar 3, 2010 at 1:14 PM, Dave Watts dwa...@figleaf.com wrote: Yes. In any case, you shouldn't be using Windows Server 2000 for production, and therefore you shouldn't be using XP for development of IIS-specific functionality within web sites. If you don't need IIS-specific functionality and want to continue using XP, you should use Apache. If you do need IIS-specific functionality, you should ideally use the same server platform for development as you'll use in production - VMware and VirtualPC make this very easy, of course. Yeah, that's why I said earlier that we use Apache on our development machines. We do have a few IIS-specific things on some of our sites (mainly ISAPI rewrite, which seems to be a bit different from mod-rewrite). -- - Scott Brady http://www.scottbrady.net/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331376 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CF Debugger for application scoped CFC
It works just fine for me. Setting break points before or after it's loaded to memory works for me. What I have seen is that sometimes it does not stop on the breakpoint that I have set if I have changed the code once it's in memory or if the debugger finds some issue that it does not tell you about. Try setting the break point in different locations, you'll probably find that it stops on one of them so at least you can look at something. -Original Message- From: Dorioo [mailto:dor...@gmail.com] Sent: Thursday, March 04, 2010 11:11 AM To: cf-talk Subject: Re: CF Debugger for application scoped CFC Don't know if it's supposed to work, but I have experienced it _not_ working once the CFC is in memory. Told myself that the debugger processes files used in the request. Once the CFC is memory, no files are parsed for it and so the debugger does not fire. I'd love to be wrong though. - Gabriel On Thu, Mar 4, 2010 at 11:05 AM, Brook Davies cft...@logiforms.com wrote: Hi Jochem, The debugging service itself starts and is running. The debugger does not break on the breakpoints. Sorry I should have been more clear. I did put the breakpoints in before caching. Should this work? Brook -Original Message- From: Jochem van Dieten [mailto:joch...@gmail.com] Sent: March-03-10 11:50 PM To: cf-talk Subject: Re: CF Debugger for application scoped CFC On 3/4/10, Brook Davies wrote: I just set up the eclipse based CF debugger from adobe. Works fine on a CFM, but doesn't start for an application scoped CFC. What do you mean exactly with doesn't start? Do you mean that th debug server doesn't start? Or do you mean that breakpoints you set are not being triggered? If the latter, did you put the breakpoints in before caching your cfc in the application scope? Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331377 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFWindow not working in CF9
For some reason I cannot use CFWindow. When I do just a basic cfwindow width=500 height=500 initshow=true/cfwindow it does not work. I get the following error in firebug: Ext.Window is not a constructor anonymous(cf_window1267811011254, Object name=url, Object modal=false closable=true)cfwindow.js (line 140) anonymous(cf_window1267811011254, Object name=_121, Object name=url, Object modal=false closable=true)cfwindow.js (line 51) anonymous()test.cfm (line 27) anonymous()cfajax.js (line 1101) anonymous(load )cfajax.js (line 1205) [Break on this error] _13e=new Ext.Window(_13d);\ncfwindow.js (line 140) I've tested other ajax functions like cfpod and it works fine. Anyone have any idea what the problem could be? Thanks in advance for any help ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331378 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Setting windows directory security with ColdFusion
I was under the impression that CF could do .NET interop. If that's the case, then instantiating a .NET System.IO.Directory class could acheive this for you quite easily. On 3/4/2010 9:45 AM, Dave Watts wrote: That said, you could do this using CFEXECUTE and the command-line cacls/xcacls/icacls tools. Thanks Dave, I had a strong feeling it was going to be something that tapped the command-line through CFEXECUTE. But having never done directory security before with the command-line I didn't really know what would do it. Thanks for the name of some relevant tools to help me search up the appropriate syntax. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331379 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Setting windows directory security with ColdFusion
I was under the impression that CF could do .NET interop. If that's the case, then instantiating a .NET System.IO.Directory class could acheive this for you quite easily. Yes, that's another good alternative, I think, although I haven't used this approach from CF yet. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331380 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Invitation to connect on LinkedIn
LinkedIn Jerry Barnes requested to add you as a connection on LinkedIn: -- James, I'd like to add you to my professional network on LinkedIn. - Jerry Accept invitation from Jerry Barnes http://www.linkedin.com/e/kf_f_G1APNKUmMHaBOJgkT0vUW9a8-62-pGINmq/blk/I1864642450_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0Rd38QdzgSe359bRZ3kQJUlDpHbP4VejwMc3gOcj4LrCBxbOYWrSlI/EML_comm_afe/ View invitation from Jerry Barnes http://www.linkedin.com/e/kf_f_G1APNKUmMHaBOJgkT0vUW9a8-62-pGINmq/blk/I1864642450_2/39vc3kQczgSd3oUckALqnpPbOYWrSlI/svi/ -- DID YOU KNOW your LinkedIn profile helps you control your public image when people search for you? Setting your profile as public means your LinkedIn profile will come up when people enter your name in leading search engines. Take control of your image! http://www.linkedin.com/e/ewp/inv-22/ -- (c) 2010, LinkedIn Corporation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFC's
Hi everyone, I'm playing around with using CFGRID and CFC's. I want to be able to page through a CFGRID... you know, show 25 rows and then 25 more, etc. If there is a way without binding to a CFC, then I'm all ears... I should learn more about CFC's so a neccessary evil I suppose... I have the grid part down. I'm running CF 8,0,0,176276. I have a IIS virtual directory pointing to he CFIDE folder... This site (http://tutorial1.learncf.com/) show's how to do this but I'm getting this error: Error Invoking CFC... Internal Server Error. I have the CFC file in the same folder as my presentation page. So, is there a special folder to put CFC's? Any thoughts or suggestions? I appreciate your time as always... TJ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331382 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFC's
This site (http://tutorial1.learncf.com/) show's how to do this but I'm getting this error: Error Invoking CFC... Internal Server Error. I have the CFC file in the same folder as my presentation page. So, is there a special folder to put CFC's? Any thoughts or suggestions? There's no special folder, but the CFC is being invoked just like any URL, basically, so it has to be accessible. But without seeing more information about the error, it could be almost anything. Look in your error logs. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331383 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Migrating to CF9: trouble getting JRun working with SSL
I have a client on MX7 who wants to migrate to CF9. I have a dev environment for them on my WinXP machine where I've configured MX7 to run with JRun's built-in web server. I've had that working for a long time with both regular and SSL connections. I installed CF9 yesterday side-by-side with the existing MX7 install. The install was smooth and detected MX7, adjusted CF9's port numbers for no conflict, etc. Testing started well: MX7 over regular and SSL still worked and CF9 worked over regular HTTP. But I can't get CF9 to work with SSL. I installed a new certificate with keytool, FireFox (v3.6) complained about it being unsigned, I added it to the exception list, and now I get this: Secure Connection Failed An error occurred during a connection to localhost:9101. Peer reports it experienced an internal error. (Error code: ssl_error_internal_error_alert) I've been Googling that in all variations but can't find much help to get past this. I don't see any info in any log files either. FWIW, here's my SSL config from SERVER-INF/jrun.xml: service class=jrun.servlet.http.SSLService name=SSLService attribute name=enabledtrue/attribute attribute name=interface*/attribute attribute name=port9101/attribute attribute name=keyStore{jrun.rootdir}/lib/mykey/attribute attribute name=keyStorePassword*deleted*/attribute attribute name=trustStore{jrun.rootdir}/lib/trustStore/attribute attribute name=socketFactoryNamejrun.servlet.http.JRunSSLServerSocketFactory/attribute attribute name=deactivatedfalse/attribute attribute name=bindAddress*/attribute attribute name=clientAuthfalse/attribute /service Anyone here know of any issues re setting up SSL and CF9? Anyone had success with it? Dave ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331384 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFC's
Patrick, Try setting output to true on the component... Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Friday, March 05, 2010 2:13 PM To: cf-talk Subject: Re: CFC's This site (http://tutorial1.learncf.com/) show's how to do this but I'm getting this error: Error Invoking CFC... Internal Server Error. I have the CFC file in the same folder as my presentation page. So, is there a special folder to put CFC's? Any thoughts or suggestions? There's no special folder, but the CFC is being invoked just like any URL, basically, so it has to be accessible. But without seeing more information about the error, it could be almost anything. Look in your error logs. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331385 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Migrating to CF9: trouble getting JRun working with SSL
I installed CF9 yesterday side-by-side with the existing MX7 install. The install was smooth and detected MX7, adjusted CF9's port numbers for no conflict, etc. Testing started well: MX7 over regular and SSL still worked and CF9 worked over regular HTTP. But I can't get CF9 to work with SSL. I installed a new certificate with keytool, FireFox (v3.6) complained about it being unsigned, I added it to the exception list, and now I get this: Secure Connection Failed An error occurred during a connection to localhost:9101. Peer reports it experienced an internal error. (Error code: ssl_error_internal_error_alert) This might be a stupid question, but is there a reason why you're configuring the JRun web server for SSL instead of just using, say, Apache? Because that's the approach I'd recommend. I realize that's not much of an answer. What's in your JRun log files? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331386 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Migrating to CF9: trouble getting JRun working with SSL
This might be a stupid question, but is there a reason why you're configuring the JRun web server for SSL instead of just using, say, Apache? Because that's the approach I'd recommend. Mainly for simplicity. So far I've gotten the job done without installing extra software I have to configure. It's worked so far. I don't see why it can't be made to work again. Famous last words maybe. I realize that's not much of an answer. What's in your JRun log files? I've looked through all .log files in my CF9 install dir but don't see anything interesting. I may not know what to look for. Do you know which file JRun might log errors to? Dave ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331387 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Migrating to CF9: trouble getting JRun working with SSL
I've looked through all .log files in my CF9 install dir but don't see anything interesting. I may not know what to look for. Do you know which file JRun might log errors to? I would have assumed it would go to the JRun -event.log or -out.log files, but it may not get logged at all by default. This URL I found indicates that you can enable additional logging for various things in JRun, although I didn't see a specific mention of logging JRun's own web server: http://livedocs.adobe.com/jrun/4/JRun_Administrators_Guide/netmon2.htm Good luck! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331388 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Transfer Object Behaviour
Guys! Here is my sample table in DB:- Emp ID Emp Name State 111 Sandeep IN 112 Kumar IN 113 JackMI 114 Bob IL How does the transfer object of Transfer ORM behaves:- 1. In general. 2. When I ask transfer object to get me 'Emp ID' from IN state. Does it go to database to get data? 3. When I ask transfer object to get me 'Emp ID' from IN state and When Emp Name='Kumar'. Does it again go back to database to get data? 4. When I ask transfer object to get me 'Emp ID' from IN and MI states. Does it again go back to database to get data(just MI or IN too?)? 5. How does the transfer object decide that now is the time to go back to DB? Thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331389 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Transfer Object Behaviour
Are you working with queries or objects? I believe it goes to the database for every query. But for objects, it gets them once and caches them. So interaction then occurs with the cached object instead of making a trip to the DB (unless needed of course). - Gabriel On Fri, Mar 5, 2010 at 4:05 PM, sandeep saini sandeep00...@yahoo.com wrote: Guys! Here is my sample table in DB:- Emp ID Emp Name State 111 Sandeep IN 112 Kumar IN 113 Jack MI 114 Bob IL How does the transfer object of Transfer ORM behaves:- 1. In general. 2. When I ask transfer object to get me 'Emp ID' from IN state. Does it go to database to get data? 3. When I ask transfer object to get me 'Emp ID' from IN state and When Emp Name='Kumar'. Does it again go back to database to get data? 4. When I ask transfer object to get me 'Emp ID' from IN and MI states. Does it again go back to database to get data(just MI or IN too?)? 5. How does the transfer object decide that now is the time to go back to DB? Thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331390 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfspreadsheet write problem within function
Has anyone encountered problems using cfspreadsheet action='write' inside a function? Take a look at the code below: == cfset myQuery = queryNew(ID,Name) cfset queryAddRow(myQuery) / cfset querySetCell(myQuery,ID,1) / cfset querySetCell(myQuery,Name,Lucy) cfset queryAddRow(myQuery) / cfset querySetCell(myQuery,ID,2) / cfset querySetCell(myQuery,Name,Desi) cfdump var=#myQuery# cfset path = C:\lucy.xlsx / cfdump var=#path# cffunction name=build access=public returntype=any output=false cfargument name=myQuery type=query required=true / cfargument name=path type=string required=true / cfset var ss = spreadsheetNew(Desilu,true) / cfset spreadSheetAddRow(ss,ID,Character Name) cfloop query=arguments.myQuery cfset spreadsheetsetCellValue(ss,arguments.myQuery.ID, arguments.myQuery.currentRow+1,1) / cfset spreadsheetsetCellValue(ss,arguments.myQuery.Name, arguments.myQuery.currentRow+1,2) / /cfloop !---cfspreadsheet action=write filename=#arguments.path# name=ss overwrite=true sheetname=Fred /--- cfreturn ss /cffunction cfset desilu = build(myQuery,path) / cfdump var=#desilu# cfspreadsheet action=write filename=#path# name=desilu overwrite=true sheetname=Desilu / === Note the commented-out line within the function, writing the spreadsheet file. If it remains commented, the spreadsheet is written correctly by the final action in the code. However, if the comments are removed, an error occurs during the function: 'Specified variable ss is not-defined or invalid.' Yet obviously, the variable is defined. And when it is returned outside the function, it is valid for writing a spreadsheet in the second cfspreadsheet tag. The error only occurs when I apply the 'write' action within a function. And seeing as how I really want all of this to take place within a CFC, it needs to happen *inside* a function. Can someone just confirm that I'm not crazy, and perhaps give me some advice? Googling hasn't help. And there don't seem to be any spreadsheet-related bugs filed in the Adobe bugbase. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331391 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFWindow not working in CF9
Without knowing more about your setup it's hard to debug. I copy+pasted the above cfwindow tag into a template on my server and it worked fine. -Adam On Fri, Mar 5, 2010 at 12:58 PM, Steve Sequenzia c...@thinksys.com wrote: For some reason I cannot use CFWindow. When I do just a basic cfwindow width=500 height=500 initshow=true/cfwindow it does not work. I get the following error in firebug: Ext.Window is not a constructor anonymous(cf_window1267811011254, Object name=url, Object modal=false closable=true)cfwindow.js (line 140) anonymous(cf_window1267811011254, Object name=_121, Object name=url, Object modal=false closable=true)cfwindow.js (line 51) anonymous()test.cfm (line 27) anonymous()cfajax.js (line 1101) anonymous(load )cfajax.js (line 1205) [Break on this error] _13e=new Ext.Window(_13d);\ncfwindow.js (line 140) I've tested other ajax functions like cfpod and it works fine. Anyone have any idea what the problem could be? Thanks in advance for any help ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331392 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
I'm not quite sure I understand. This is happening right after I store the shipping options. The first thing it does is redirect to: SECUREORDERAPP.verifybillingmethod This is the contents of that: cfcase value=verifybillingmethod cflock scope=SESSION type=READONLY timeout=10 cfif not isDefined(session.billinginfo) cflocation addtoken=No url=#self#/fuseaction/SECUREPayment.startPayment/index.cfm /cfif /cflock /cfcase So we go to SECUREPayment.startPayment which is: cfcase value=startPayment startPaymentcfabort /cfcase I'm just trying to get it down so I can see it and hopefully spot something. I don't see what is happening here. On Thu, Mar 4, 2010 at 7:12 PM, Maureen mamamaur...@gmail.com wrote: What's the value of your switch? Does it ever get changed to not be one of the values you are testing for? On Thu, Mar 4, 2010 at 4:33 PM, Matthew Smith chedders...@gmail.com wrote: I'm reworking an old fusebox 3 app. I'm getting a never ending redirect loop but I cannot figure out why ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331393 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
No load balancing. This is my local box, apache. Doesn't the explicit passing of cfid/cftoken solve the session issue? On Thu, Mar 4, 2010 at 11:05 PM, Kevin Pepperman chorno...@gmail.comwrote: Are you on a load balanced server with more than 1 CFML server? If so you will need to do some type of session replication, session.billinginfo may not be set yet. Also, cfmodule calls can be tricky sometimes when depending on session/cookie variables-- you may want to put your session checks wrapped around the cfmodule calls instaead of inside them. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331394 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
What I would do in this case would be to comment out all your redirects first-- then anyplace you have a redirect-- do a cfdump var=#SESSION#/cfabort / And verify that the server is getting the info that it needs. I also have found that instead of accessing the SESSION scope directly, you are better off either adding a global function to access the structure-- the point being you cannot depend on the SESSION scope to actually exist before you depend on it for critical processes. SESSION/COOKIE scopes can bite you an the rear if not managed effectively, try to encapsulate all access to those scopes in one place, it will save you these headaches in the long run. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331395 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
Doesn't the explicit passing of cfid/cftoken solve the session issue? Not always-- like I mentioned, cfmodule uses the page scopes different than an include. I never use cfmodule, mainly for performance reasons, but if I recall I had these type of issues, cfmodule does not share the same scope as the calling template. cfmodule has its (it's?) own scope called attributes. Anything available to cfmodule must be passed in to be manipulated. /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331396 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: time difference
2 ?'s I need to show a difference between to dates basically how much time is left between the ending date and now. can cf do this or should I use a java script? also, how do I use a Now() but add 3 hours to the output? server is 3 hours behind but I need to be the current time. I don't think the java get current time will work because I need to retrieve it from a db lots o ?'s tonight why see below! haha dave !--- doesn't know jack about cfm --- My god. This still holds true today! Wanna chime in Rick??? LOL!! Will ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331397 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: time difference
actually I already have it:) just really sick of reading it at the moment. lots to absorb, short amount of time Dave, CF is a lot to absorb chief!! LOL!!! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331398 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
If I were doing this, I would eliminate all cfmodule calls. I do see what you are doing here, calling fuseactions with cfmodule-- that is what FB4 and FB5 does without cfmodule. FB3 required cfmodule to access fuseactions. There is a alternate core for FB3 that uses FuseQ, here is an example that also has the alternate FB3 core files. http://www.briankotek.com/index.cfm?fuseaction=content.viewcontentitemcontentid=34returnto=coldfusion.main It allows you to access fuseactions from other circuits without cfmodule. This would be much better than cfmodule. cfset addtoq( 'mycircuit.myfuseaction' ). You should be able to just swap out the core files and run with it where you need it. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331399 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfspreadsheet write problem within function
Can someone just confirm that I'm not crazy You are not crazy. A very quick test produced the same results for me. Interestingly, the error disappeared if I removed the VAR declaration for the ss variable. Obviously not a viable solution though. Try using the SpreadSheetWrite() function instead. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331400 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: time difference
Is there really a need to bring one of his threads back to life? Especially one that has been dead for #dateDiff(, '02-10-2003', now())# years... -Original Message- From: Will Tomlinson [mailto:w...@wtomlinson.com] Sent: Friday, March 05, 2010 7:39 PM To: cf-talk Subject: Re: time difference 2 ?'s I need to show a difference between to dates basically how much time is left between the ending date and now. can cf do this or should I use a java script? also, how do I use a Now() but add 3 hours to the output? server is 3 hours behind but I need to be the current time. I don't think the java get current time will work because I need to retrieve it from a db lots o ?'s tonight why see below! haha dave !--- doesn't know jack about cfm --- My god. This still holds true today! Wanna chime in Rick??? LOL!! Will ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331401 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Pretty XML
I've been given the task of outputting XML to the page in a readable format. We want all the XML tags to still display, but we want the output to be formatted pretty. If I use something like ToString(XmlParse(xmlString)) the source behind the page looks perfect, but the output to the screen looses all the tags - as it should. However if I add XmlFormat(ToString(XmlParse(xmlString))) I get the correct output but all the formatting is lost. Is there a straightforward way to display pretty XML to the page using ColdFusion? Thanks! -Scott ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331402 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Pretty XML
Use HTMLEditFormat() rather than XMLFormat() and use pre tags around the output to preserve the formatting. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ On 6 March 2010 14:06, Scott McAllister stmcallis...@gmail.com wrote: I've been given the task of outputting XML to the page in a readable format. We want all the XML tags to still display, but we want the output to be formatted pretty. If I use something like ToString(XmlParse(xmlString)) the source behind the page looks perfect, but the output to the screen looses all the tags - as it should. However if I add XmlFormat(ToString(XmlParse(xmlString))) I get the correct output but all the formatting is lost. Is there a straightforward way to display pretty XML to the page using ColdFusion? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331403 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Pretty XML
ToString(XmlParse(xmlString)) This is redunant. You just turned a string into an object, and back into a string again. XmlFormat(ToString(XmlParse(xmlString))) 5 yard penalty for misuse of the xmlFormat function. That function is designed to make a string safe for inclusion in an XML document without being confused with the XML markup of the document it is being included in. Try this: pre #xmlString# /pre If you want more control, htmlEditFormat it, and manually replace line breaks with br, spaces with nbsp; and tabs with nbsp;nbsp;nbsp;nbsp;nbsp; etc... ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331404 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Pretty XML
pre #xmlString# /pre Sorry, should have typed pre #htmlEditFormat(xmlString)# /pre ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Pretty XML
I wrote this little UDF a couple years back to pretty-print XML. http://www.barneyb.com/barneyblog/2008/05/01/indentxml-cf-udf/ cfoutput pre#htmlEditFormat(indentXml(xmlStringToFormat))#pre /cfoutput On Fri, Mar 5, 2010 at 10:20 PM, Brad Wood b...@bradwood.com wrote: ToString(XmlParse(xmlString)) This is redunant. You just turned a string into an object, and back into a string again. XmlFormat(ToString(XmlParse(xmlString))) 5 yard penalty for misuse of the xmlFormat function. That function is designed to make a string safe for inclusion in an XML document without being confused with the XML markup of the document it is being included in. Try this: pre #xmlString# /pre If you want more control, htmlEditFormat it, and manually replace line breaks with br, spaces with nbsp; and tabs with nbsp;nbsp;nbsp;nbsp;nbsp; etc... ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331406 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: time difference
The sad part here is that now 7 years later Will still would have to look this up! And thank god we got bobbie here to referee the proper count! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331407 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm