Can I create a form with several HTML5 multi-file uploads and send to unique destinations?
I have a page where people need to be able to upload multiple files that go to different places. I can use: input type=file multiple=multiple name=fileSet1 / input type=file multiple=multiple name=fileSet2 / input type=file multiple=multiple name=fileSet3 / To get the files but once I get to the back end I'm stuck. Using CFFILE with action=upload only uploads the first file but at least I can send it to the right place. Using action=uploadall sends all the files to all the locations because I can specify a filefield value. Obviously I could have one form for each file set but that gets tedious for the end user. Any suggestions? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353257 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Versant OODB
Has anyone here integrated a Versant Object Oriented Database in a CF project? If so how was it? What challenges did you have to address? Shawn McKee ~| 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:313065 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: What determines session inactivity timeouts?
As developers do we have access to these session variables? If so why not just update them manually every so often during page processing? You could also over ride the system time out with a cfsetting tag for these specific pages since you know they may run long. Shawn McKee -Original Message- From: Ashwin Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 12:52 AM To: CF-Talk Subject: RE: What determines session inactivity timeouts? The session's last accessed time is updated every time a page is hit, and every time a session variable is read, written or removed. CF does not attempt to keep the session active during page processing. If you do have pages running longer than your session timeout, you'll either have to increase the session timeout, or take a long hard look at those data loading screens (?) and see if some of that can be pre-loaded and/or cached. Not that I have much JS experience, but here's a random thought - what if you ran the JS in a hidden frame? The page could execute for as long as it wanted to in the main (visible) frame, while your JS checker script could continue to run in the hidden frame, and would still allow a user to respond to session timeout warnings. -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 4:46 AM To: CF-Talk Subject: Re: What determines session inactivity timeouts? Thanks Mike, but I was looking for a bit more granular detail - I know that the page request resets the inactivity timer. But that occurs at the beginning of the page processing - I'm more concerned about what happens after that point in order to keep the session active. Is CF keeping the session active *during* the page processing, regardless of whether there is any actual interaction with the session scope? That's really the crux of my question. Every .cfm page request, regardless of session variable usage, within a given application, resets that particular session's timeout counter. CF's session management is related to the session cookies (cfid/cftoken or the J2EE session) that are automatically set, by ColdFusion. You do not need to create your own session variables to continue the session. CFDUMP the session and cookie scopes once you have enabled session management and you will see what is created. Then, try a few things, like deleting the cookies, closing the browser, and you will see how CF handles the session management. M!ke -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 3:53 PM To: CF-Talk Subject: What determines session inactivity timeouts? What started out as a simple exercise has gone crazy. All I wanted to do was to give my users a warning of impending session timouts and give them the opportunity to refresh the session. I tried using the CF_SessionWatch tag but it's a bit too simplistic - I used it to setup a JS call to set a timer for a few minutes less than the session timeout value, but if the user takes longer to respond (maybe they walked away from their PC) than the remaining session timeout, then when the user comes back and clicks on the yea I want to keep working option, the resulting attempt to touch a page in the app (to reset the session timeout) ends up causing the login page to come up (since by then the session vars have timed out), so now the user is real confused (because he has his original page, as well as a login page in the pop-up window). So, I added a bit more JS so that when the warning pop-up comes up, it first sets a timer for about a minute less than the amount of remaining session var time, and if *that* timer fires, then I log the user off and force the opener page to go back to the home page, and do a window.close() to get rid of the pop-up window. Sounds fine, right? Here's my concern - what if the page that is executing takes longer to execute than the session timeout value? Our server is set for 1 hour max timeout, and some of the data loading screens can take longer than that to run, especially when the CF or SQL server is loaded. I don't want to have it whacked in the middle of it's work by the session timeout checker. So this leads to my initial question, which I've never thought about before even though I've been using session vars for years and years - what exactly constitutes inactivity in CF's perspective? What if a long running page doesn't touch any session vars for a period of time greater than the session var timeout? Is session activity defined by a request being active, or by the actual touching of a session-scoped var? Do I need to have potential long-running pages periodically touch a session var? I thought about moving the code for setting up the JS timers from the application.cfm file to orequestend.cfm, which wouldn't start up the timers until the page actually completes, but then that has
RE: What determines session inactivity timeouts?
As developers do we have access to these session variables? If so why not just update them manually every so often during page processing? You could also override the system timeout with a cfsetting tag for these specific pages since you know they may run long. Shawn McKee -Original Message- From: Ashwin Mathew [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 12:52 AM To: CF-Talk Subject: RE: What determines session inactivity timeouts? The session's last accessed time is updated every time a page is hit, and every time a session variable is read, written or removed. CF does not attempt to keep the session active during page processing. If you do have pages running longer than your session timeout, you'll either have to increase the session timeout, or take a long hard look at those data loading screens (?) and see if some of that can be pre-loaded and/or cached. Not that I have much JS experience, but here's a random thought - what if you ran the JS in a hidden frame? The page could execute for as long as it wanted to in the main (visible) frame, while your JS checker script could continue to run in the hidden frame, and would still allow a user to respond to session timeout warnings. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238771 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
Stored procedures
I have used lots of Oracle stored procedures using cfstoredproc but my DBA has now written several functions that I need to use. I have never had any luck accessing these via cfstoredproc and was wondering if it was a) not possible or b) there is some clever trick involved. Using MX 6.1 on Linux. Thanks, Shawn McKee ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238623 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: Stored procedures
Integers, strings, etc. A single value for a given function. -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 11:33 AM To: CF-Talk Subject: Re: Stored procedures What do the functions return? On 4/25/06, Shawn McKee [EMAIL PROTECTED] wrote: I have used lots of Oracle stored procedures using cfstoredproc but my DBA has now written several functions that I need to use. I have never had any luck accessing these via cfstoredproc and was wondering if it was a) not possible or b) there is some clever trick involved. Using MX 6.1 on Linux. Thanks, Shawn McKee ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238641 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: ***SPAM*** Re: Stored procedures
Yes they are part of an Oracle package. -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 11:46 AM To: CF-Talk Subject: ***SPAM*** Re: Stored procedures Are the functions part of an Oracle package? If so I can send ya the code to use 'emjust a normal CFQUERYno use of CFSTOREDPROC Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238646 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: Stored procedures
Here is an example function spec from the package. No output parameters listed. FUNCTION GET_CONTENT_FILE_STATUS_ID( I_CFSREF_ALPHA_CODE CONTENT_FILE_STATUS_REF_TB.CFSREF_ALPHA_CODE%TYPE ) RETURN CONTENT_FILE_STATUS_REF_TB.CFSREF_CONTENT_FILE_STATUS_ID%TYPE; -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 11:55 AM To: CF-Talk Subject: ***SPAM*** Re: Stored procedures here's how ya get at a fucntion that is part of a package: cfstoredproc procedure=schemaName.packageName.functionName datasource=#datasource# username=#userid# password=#passwd# cfprocparam type=In cfsqltype=CF_SQL_BIGINT dbvarname=varName1 value=varValue1 cfprocparam type=In cfsqltype=CF_SQL_BIGINT dbvarname=varName2 value=varValue2 cfprocparam type=Out cfsqltype=CF_SQL_BIGINT dbvarname=DBoutVarName variable=outVarName /cfstoredproc HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238661 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: What am I missin' here with this cfparam??
No clue as to why the problem is happening but how about doing a simple if check instead. cfif NOT isDefined(FORM.criteria) cfset FORM.criteria = /cfif Shawn McKee -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 10:02 PM To: CF-Talk Subject: Re: What am I missin' here with this cfparam?? Yes, i'm back! The form itself is inside a cfc that outputs. I don't know how that'd make a double insert happen though. I think the key is the cfparam. Howcome when I remove the cfparam, one record is inserted as it should be? Leave the cfparam in, 2 records insert. poof! ~| 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:226909 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: What am I missin' here with this cfparam??
But CFPARAM isn't working for him and so maybe there is something strange in the implementation of that seemingly innocuous piece of code and it would be worth checking if implementing it yourself works. In general a bad idea to assume something won't help just because we know it is the same thing. Shawn McKee -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 7:28 AM To: CF-Talk Subject: RE: What am I missin' here with this cfparam?? Because that is exactly what cfparam function does? Regards, Andrew Scott Quote of the Day: In politics an absurdity is not a handicap. - Napoleon Bonaparte -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED] Sent: Wednesday, 14 December 2005 12:18 AM To: CF-Talk Subject: RE: What am I missin' here with this cfparam?? No clue as to why the problem is happening but how about doing a simple if check instead. cfif NOT isDefined(FORM.criteria) cfset FORM.criteria = /cfif Shawn McKee -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 10:02 PM To: CF-Talk Subject: Re: What am I missin' here with this cfparam?? Yes, i'm back! The form itself is inside a cfc that outputs. I don't know how that'd make a double insert happen though. I think the key is the cfparam. Howcome when I remove the cfparam, one record is inserted as it should be? Leave the cfparam in, 2 records insert. poof! ~| 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:226913 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: Is this a bug in CFMX?
So if I need to accurately convert a floating point number with X digits in the decimal portion to one with Y (Y X) digits what do I do? For instance 10.3456 to 10.34. I have to do currency conversion prior to hitting a credit card. The credit card is limited to two decimal points but the conversion can end up with many more. I wrote this: numOut = (int(numIn * 100))/100 and thought all would be well. However it is regularly off by .01 which is obviously a problem when dealing with money. Shawn McKee ~| 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:226881 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: Is this a bug in CFMX?
Well naturally a soon as I wrote this I answered my own question, at least for this particular instance. I was scaling the numbers, adding them up and scaling them again. I believe that would screw up. Dropped the second scaling and the problem is gone. Shawn -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 4:25 PM To: CF-Talk Subject: Re: Is this a bug in CFMX? So if I need to accurately convert a floating point number with X digits in the decimal portion to one with Y (Y X) digits what do I do? For instance 10.3456 to 10.34. I have to do currency conversion prior to hitting a credit card. The credit card is limited to two decimal points but the conversion can end up with many more. I wrote this: numOut = (int(numIn * 100))/100 and thought all would be well. However it is regularly off by .01 which is obviously a problem when dealing with money. Shawn McKee ~| 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:226884 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: Is this a bug in CFMX?
Because it is money I need to int/trunc/floor the value. -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 5:32 PM To: CF-Talk Subject: Re: Is this a bug in CFMX? Don't use int(), use round(). int() truncates, and is equivalent to the floor() (the inverse of ceiling()) function found in most languages. round(), on the other hand, follows normal rounding rules (0-4 goes down, 5-9 goes up). cheers, barneyb On 12/12/05, Shawn McKee [EMAIL PROTECTED] wrote: So if I need to accurately convert a floating point number with X digits in the decimal portion to one with Y (Y X) digits what do I do? For instance 10.3456 to 10.34. I have to do currency conversion prior to hitting a credit card. The credit card is limited to two decimal points but the conversion can end up with many more. I wrote this: numOut = (int(numIn * 100))/100 and thought all would be well. However it is regularly off by .01 which is obviously a problem when dealing with money. Shawn McKee -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| 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:226885 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
CHEADER and forcing a 404
Based on what happens during the processing of a page I may need to hand a 404 error back to the user. When I create a page that has nothing but this on it: cfheader statuscode=404 statustext=Not Found cfabort I get a blank page, not a 404. More specifically I get an open html, open body, close html and close body tags. What's wrong? Shawn McKee ~| 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:210399 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: xhtml and cfform flash
Because the uninitiated customers like the pretty colors. For those who don't understand the potential consequences the HTML mail looks more professional. Shawn McKee -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, June 23, 2005 1:23 PM To: CF-Talk Subject: RE: xhtml and cfform flash don't know how 'InvalidTag' could occur there (some magic thing or I made a mistake during copy from the validator:) That's a mailing list issue. It strips HTML script tags to prevent bad things from executing in clients that display HTML mail. Why anyone would use HTML mail is beyond me, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:210407 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: CHEADER and forcing a 404
Ahh. Thanks. Is there a way to validate that the header indeed contains a 404? -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Thursday, June 23, 2005 1:19 PM To: CF-Talk Subject: Re: CHEADER and forcing a 404 Shawn McKee wrote: Based on what happens during the processing of a page I may need to hand a 404 error back to the user. When I create a page that has nothing but this on it: cfheader statuscode=404 statustext=Not Found cfabort I get a blank page, not a 404. More specifically I get an open html, open body, close html and close body tags. What's wrong? You are not sending an error page. Just because you are sending a 404 statuscode doesn't mean you shouldn't send any HTML :) cfheader statuscode=404 statustext=Not Found html headtitlenot found/title/head bodyh1Not found/h1/body /html cfabort Jochem ~| 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:210410 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
Factory problems.
Tried this on CF-Server to no avail. We are trying to get CF MX 6.1 running as a J2EE application under JRun. We are getting this error when trying to load and initialize a Java Class object coldfusion.server.ServiceFactory$ServiceNotAvailableException: The DataSource service is not available. The object tag is as follows. cfobject type=JAVA action=Create name=MapperAdaptor class=com.newsstand.library.WWWMapperAdaptor We then call the init function including the data source name that we use throughout the system and get the above error. The Java here fails. import coldfusion.server.DataSourceService; import coldfusion.server.ServiceFactory; . . . public WWWMapperAdaptor(String dataSourceName, String username) throws Exception { // Get a service locator from the cold fusion server. DataSourceService ds = ServiceFactory.getDataSourceService(); // Lookup the specific datasource. dataSource = ds.getDatasource(dataSourceName); this.username= username; // Get the list of subscriptions belonging to this user. // Loads data into the subscriptions and userData instance variables. fillInSubscriptions(); } Specifically on this line: DataSourceService ds = ServiceFactory.getDataSourceService(); But this CF works just fine. // This will dump all of the services in CFMX cfobject type=JAVA action=Create name=factory class=coldfusion.server.ServiceFactory cfdump var=#factory# // This will dump the datasources and drivers manipulating datasources is as simple as modifying // the structure datasources below cfobject type=JAVA action=Create name=factory class=coldfusion.server.ServiceFactory cfset sqlexecutive = factory.getDataSourceService() cfset drivers=sqlexecutive.drivers cfset datasources=sqlexecutive.datasources cfdump var=#sqlexecutive# label=DataSource Factory cfdump var=#datasources# label=DataSources cfdump var=#drivers# label=Database Drivers Currently the class file is in a path referenced by the specific CF instance. My Java developer feels that this is a class loader problem and we are moving this class file to the same location as the system wide CF jar files. All of this works just fine in stand alone mode. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 400 Austin, TX 78757 USA 512-334-5100 NewsStand Inc. is the leader in digital delivery of newspapers, magazines and other print publications. Our user-friendly technology and innovative media distribution is changing the way people read. Now, we have over 125 titles (in several languages) for purchase as either single copies or subscriptions that can be easily downloaded on your PC. Follow the link below to try a free copy of The New York Times. Select Try a free sample and click on Add to cart. http://newsstand.com/?fuseaction=signuppromo_id=2295 ~| Purchase RoboHelp from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=59 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190082 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: Factory problems.
But why would it work with CF standalone and fail when installed under JRun as a J2EE application? -Original Message- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 4:14 PM To: CF-Talk Subject: Re: Factory problems. On Wed, 12 Jan 2005 09:46:48 -0400, Shawn McKee [EMAIL PROTECTED] wrote: We are getting this error when trying to load and initialize a Java Class object coldfusion.server.ServiceFactory$ServiceNotAvailableException: The DataSource service is not available. Certain coldfusion.* classes only work in the context of the ColdFusion class loader - therefore the Java objects work when invoked from CF but will not worked when invoked outside of CF. -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 5 invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Now there’s a better way to fax. eFax makes it possible to use your existing email account to send and receive faxes. Try eFax free. http://www.houseoffusion.com/banners/view.cfm?bannerid=63 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190134 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
Variable names stored in database
I would like to store style sheet information in a database but need to be able to change some of the parameters on the fly.If a straight file doing the variable substitutions is no big deal. cfquery name=specs datasource=#dsn# SELECT color FROM spec_table WHERE customer = 42 /cfquery cfset variables.bgcolor = spec.color cfoutput style type=text/css div.template1{ width: 300; height: 250; border: 1px solid black; background-color : #variables.bgcolor#; } /style /cfoutput Yes I know I don't need to use the extra step in this case but if it is stored in a DB I need constant names in string. So is it possible to store the style block ina DB and then do the variable replacement? Shawn McKee Mgr., Web Development http://www.newsstand.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: SOT: How to apply a style sheet to a file upload bottom.
All that does is turn the background of the field a color.CSS limitation, this can't be done currently. -Original Message- From: Asim Manzur [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 11:33 AM To: CF-Talk Subject: Re: SOT: How to apply a style sheet to a file upload bottom. html head titleUntitled/title style .buttoncolor { color:#FF; background: #557799; FONT-FAMILY: Arial, sans-serif; FONT-SIZE: 8pt; font-weight: bold;} /style /head body form name=MyForm method=post action=""> enctype=multipart/form-data It also needs to have a file selection control: input name=MyFile type=file class=buttoncolor size=20 /body /html Hi, I am in the process of creatinga page for my endusers to upload files and the first thing that they complained about is that the button is not the same style as the rest of the buttons in the applications.All of the buttons are usually a form of blue (We use IE6.0 only - internal), but the BROWSE button will only show up This is the color I would like the button to show: .buttoncolor { color:#FF; background: #557799; FONT-FAMILY: Arial, sans-serif; FONT-SIZE: 8pt; font-weight: bold;} But I have tried to include the inline stylesheet but nothing works in the code snippet below but all I get is the grey button. Any ideas?? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleUntitled/title /head body form name=MyForm method=post action=""> enctype=multipart/form-data It also needs to have a file selection control: input type=file name=MyFile size=20 /body /html _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Variable names stored in database - SOLVED
cfset fred = queryNew(text) cfset queryAddRow(fred, 1) cfset x = QuerySetCell(fred, text, template1Text{float: right;width: 135px;font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size: 10px;text-align: left;padding: 5 5 5 5;color : #variables.txtcolor##) cfquery name=chris dbtype=query SELECT * FROM FRED /cfquery cfset variables.txtcolor = blue cfoutput#Evaluate(DE(chris.text))#/cfoutput -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 9:19 AM To: CF-Talk Subject: Variable names stored in database I would like to store style sheet information in a database but need to be able to change some of the parameters on the fly.If a straight file doing the variable substitutions is no big deal. cfquery name=specs datasource=#dsn# SELECT color FROM spec_table WHERE customer = 42 /cfquery cfset variables.bgcolor = spec.color cfoutput style type=text/css div.template1{ width: 300; height: 250; border: 1px solid black; background-color : #variables.bgcolor#; } /style /cfoutput Yes I know I don't need to use the extra step in this case but if it is stored in a DB I need constant names in string. So is it possible to store the style block ina DB and then do the variable replacement? Shawn McKee Mgr., Web Development http://www.newsstand.com _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Data not retrieved as stored
MX 6.1, Oracle 9i, Linux. We are in the process of supporting UTF-8 storage in our database and have fields that are UTF-8 but the base character set of the DB is still ASCII-7 and will remain that way. If I do an update to an NVARCHAR field like this. UPDATE TAF_OFFER_REWARD_MASTER SET TORMAS_SHORT_DESCRIPTION = unistr(cfqueryparam cfsqltype=CF_SQL_NVARCHAR value='Fran\00E7ais) WHERE TORMAS_TAF_OFFER_REWARD_ID = cfqueryparam cfsqltype=CF_SQL_INTEGER value=55 It gets stored correctly which I have verified by doing an Oracle dump of the field. 0,46,0,72,0,61,0,6e,0,e7,0,61,0,69,0,73 This charcter is a lower case c with a circumflex but when I display it I just get a lower case c. The conversion appears to be happening either in the database or the driver. Any suggestions? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
NCLOB
MX 6.1, Oracle 9i. We are in the process of supporting UTF-8 storage in our database and have fields that are UTF-8 but the base character set of the DB is still ASCII-7 and will remain that way. We have data stored where the original text entered looks like this. Dear FIRST_NAME LAST_NAME: Thank you for registering with NewsStand with the username of USER_ID.Ifyou have forgotten your password you may retrieve it by visiting http://newsstand.com/?fuseaction=login and clicking on FORGOT YOUR PASSWORD. A stored procedure is used to insert the data and when I pull it back out I get a box between each letter, clearly the second byte. The Application file has this. cfscript setEncoding(form, utf-8); setEncoding(url, utf-8); /cfscript cfcontent type=text/html; charset=utf-8 and the doctype is: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN CONTENT=text/html; charset=UTF-8 Is there a way to specify the character encoding of field that you are extracting from a database?Kind of like a queryparam on the select. Shawn McKee [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Bug? Problem with Oracle Stored Procedure
Is this just a typo in the e-mail or do I not know the syntax? cfstoredproc rocedure=#variables.schema#.Taxon_GW.findAllFoliarHabits Shouldn't rocedure be procedure? Shawn McKee -Original Message- From: Troy Simpson [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 5:51 PM To: CF-Talk Subject: Bug? Problem with Oracle Stored Procedure All I am using ColdFusionMX 6.1 with Oracle9i (9.2) I have been creating and referencing Oracle Stored Procedures all day long without a problem.And then this one of a kind procedure is giving me a problem.It is different than the others that I have created and used.This procedure only has one IN/OUT parameter which is a generic cursor type.All the other procedures that I have created required at least one numeric parameter and in IN/OUT generic Cursor parameter. The following procedure is defined in an Oracle Package. In the Package Specification: --- -- Define a generic cursor type. TYPE generic_curtype IS REF CURSOR; /*** * **/ PROCEDURE findAllFoliarHabits ( p_FoliarHabitCur IN OUT Generic_CurType ); --- In the Package Body: /*** * **/ PROCEDURE findAllFoliarHabits ( p_FoliarHabitCur IN OUT Generic_CurType ) AS BEGIN OPEN p_FoliarHabitCur FOR SELECT * FROM FOLIARHABIT; END; - This is the function defined in my CFC: cffunction name=findAllFoliarHabits access=public returntype=query output=true displayname=Find all foliar habits. !--- --- cfstoredproc rocedure=#variables.schema#.Taxon_GW.findAllFoliarHabits datasource=#variables.dsn# cfprocresult name=qryFoliarHabits/ /cfstoredproc cfreturn qryFoliarHabits / /cffunction -- This is the Error I get from CFMX: [Macromedia][Oracle JDBC Driver][Oracle]ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'FINDALLFOLIARHABITS' ORA-06550: line 1, column 7: PL/SQL: Statement ignored *** But why am I getting this Error?The procedure takes only one argument which is a REF_CURSOR.So just for try, I add a bogus cfprocparam... to my procudure call and it worked!!! -- This is the function with the extra bogus cfprocparam... cffunction name=findAllFoliarHabits access=public returntype=query output=true displayname=Find all foliar habits. !--- --- cfstoredproc procedure=#variables.schema#.Taxon_GW.findAllFoliarHabits datasource=#variables.dsn# cfprocparam type=In cfsqltype=CF_SQL_NUMERIC dbvarname=p_TaxonID value=-1 / cfprocresult name=qryFoliarHabits/ /cfstoredproc cfreturn qryFoliarHabits / /cffunction * *** Is this a bug or am I missing something?!?!?!?LOL Thanks, Tory -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:Oracle Error
Did anyone ever come up for a solution for this on CF5? We're getting the Oracle error ORA-24334: no descriptor for this position with the following query. Not having much luck finding out what's going on, or getting info from the MM CF forum, CF-Talk archives, or Google.Any ideas?(CF 4.5.1 SP2 on Solaris 8, Oracle 8i db, with 8.1.7 client) thanks, Chris Norloff SELECT job_id, provider_code, NVL(financial_no, '0') financial_no, mailing_facility, job_title, process_category, class, local_permit_no, permit_type, total_piece, total_weight, cqt_total_pieces, cqt_weight, location_zip, owner_name, gca_version FROM m_job_summary WHERE job_id = 'QD2AES_1' ANDprovider_code = 'QUAD' ANDmailing_facility = '22203-1553' Oracle's description of the error: ORA-24334 no descriptor for this position Cause: The application is trying to get a descriptor from a handle for an illegal position. Action: Check the position number. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: The Value of CFQUERYPARAM
Doesn't it only recompile when the values change and queryparam gets around that?I think if the values are constant there is no advantage to putting them in a param, but that depends on if it recompiles every time or not. Shawn McKee -Original Message- From: Tom Kitta [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 12:43 PM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM Use CFQUERYPARAM as the DB engine will only compile you query once and hopefully cache it. Otherwise it will re-compile every time. TK -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:36 PM To: CF-Talk Subject: The Value of CFQUERYPARAM When writing a select statement, if I have a part of a WHERE clause that will be static, always the same value, and this value is not passed in with a variable or constant, is there any inherent value in cfqueryParam ... tags? An Example: WHERE STATUS = cfqueryParam value=M ... or WHERE STATUS = 'M' Is there any real advantage of one of these forms over the other? Just to repeat, these are hard coded, unchanging values NOT passed in with variables or constants.I understand the value of the cfqueryParam tags in conjunction with passing in data with variables, especially data from user forms. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA Confidentiality Notice:This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: The Value of CFQUERYPARAM
I just talked to my Oracle DBA and if the query is all constants SELECT M FROM S WHERE W = 'huh' it will get parsed once and put in the cache. SELECT M FROM S WHERE W = '#url.k#' Gets parsedevery time the contents of url.k changes SELECT M FROM S WHERE W = ? ? = 'huh' Is the solution for this because the QUERYPARAM is a bind variable that the DB can handle and knows no to parse again. Shawn McKee -Original Message- From: Tom Kitta [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 12:58 PM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM As far as I know, yes, it does recompile every time. And it is quite intuitive, just look at the debug of what is sent to the DB server for something like: SELECT M FROM S WHERE W = '#url.k#' and SELECT M FROM S WHERE W = 'huh' Assuming url.k is 'huh' you get the same thing sent to the DB server. However, if you use cfqueryparam what is sent: SELECT M FROM S WHERE W = ? ? = 'huh' So the DB compiles (only once) the query and puts in 'huh' as the argument. Summarizing it doesn't matter whatever 'huh' is static or from a variable, it is still treated the same way. Also, it would help to remember that #your_var_here# causes the value of the var to be printed and it becomes static text. TK -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:47 PM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM Even though the value is static and unchanging, the query will be recompiled every time?This seems to be a bit counter intuitive to me, but it is basically what I'm trying to confirm. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA -Original Message- From: Tom Kitta [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 10:43 AM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM Use CFQUERYPARAM as the DB engine will only compile you query once and hopefully cache it. Otherwise it will re-compile every time. TK -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:36 PM To: CF-Talk Subject: The Value of CFQUERYPARAM When writing a select statement, if I have a part of a WHERE clause that will be static, always the same value, and this value is not passed in with a variable or constant, is there any inherent value in cfqueryParam ... tags? An Example: WHERE STATUS = cfqueryParam value=M ... or WHERE STATUS = 'M' Is there any real advantage of one of these forms over the other? Just to repeat, these are hard coded, unchanging values NOT passed in with variables or constants.I understand the value of the cfqueryParam tags in conjunction with passing in data with variables, especially data from user forms. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA Confidentiality Notice:This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: The Value of CFQUERYPARAM
Both will work, both will be cached.IMHO it is easier to read the query if the constants are not bind variables. Shawn McKee -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:54 PM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM Just for fun then if you have a mix of constants and variables would it be written like this? SELECT * FROM table WHERE status = 'A' AND ID = cfqueryParam value=1246 ... or SELECT * FROM table WHERE status = cfqueryParam value=A ... AND ID = cfqueryParam value=1246 ... I would think the former from the answers in this forum, but I'm not sure. Or are they both the same really, and it doesn't matter? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 11:29 AM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM I just talked to my Oracle DBA and if the query is all constants SELECT M FROM S WHERE W = 'huh' it will get parsed once and put in the cache. SELECT M FROM S WHERE W = '#url.k#' Gets parsedevery time the contents of url.k changes SELECT M FROM S WHERE W = ? ? = 'huh' Is the solution for this because the QUERYPARAM is a bind variable that the DB can handle and knows no to parse again. Shawn McKee -Original Message- From: Tom Kitta [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 12:58 PM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM As far as I know, yes, it does recompile every time. And it is quite intuitive, just look at the debug of what is sent to the DB server for something like: SELECT M FROM S WHERE W = '#url.k#' and SELECT M FROM S WHERE W = 'huh' Assuming url.k is 'huh' you get the same thing sent to the DB server. However, if you use cfqueryparam what is sent: SELECT M FROM S WHERE W = ? ? = 'huh' So the DB compiles (only once) the query and puts in 'huh' as the argument. Summarizing it doesn't matter whatever 'huh' is static or from a variable, it is still treated the same way. Also, it would help to remember that #your_var_here# causes the value of the var to be printed and it becomes static text. TK -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:47 PM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM Even though the value is static and unchanging, the query will be recompiled every time?This seems to be a bit counter intuitive to me, but it is basically what I'm trying to confirm. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA -Original Message- From: Tom Kitta [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 10:43 AM To: CF-Talk Subject: RE: The Value of CFQUERYPARAM Use CFQUERYPARAM as the DB engine will only compile you query once and hopefully cache it. Otherwise it will re-compile every time. TK -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:36 PM To: CF-Talk Subject: The Value of CFQUERYPARAM When writing a select statement, if I have a part of a WHERE clause that will be static, always the same value, and this value is not passed in with a variable or constant, is there any inherent value in cfqueryParam ... tags? An Example: WHERE STATUS = cfqueryParam value=M ... or WHERE STATUS = 'M' Is there any real advantage of one of these forms over the other? Just to repeat, these are hard coded, unchanging values NOT passed in with variables or constants.I understand the value of the cfqueryParam tags in conjunction with passing in data with variables, especially data from user forms. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA Confidentiality Notice:This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. _ _ _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CF5 Scheduled Task on Linux
Did you ever get a solution for this problem.I am having a similar problem and wondered.I am gettin the details together and will post a more specific set of information shortly. Shawn McKee www.newsstand.com I am having a serious problem with scheduled tasks on Linux and wondered if anyone else has run into the same problem. I have gone through the archives without finding anything like this. Cold Fusion is stopping and restarting while running scheduled tasks. At first, it will begin stopping and restarting every once in a while, and then will stop / restart every time I call the task. I have verified this problem with three separate installations of CF enterprise. The specific error looks like this: Fatal,8200,02/21/03,11:10:57,,Caught a fatal signal (11) - Aborting Information,1024,02/21/03,11:10:58,,The ColdFusion Application Server started. I thought the problem was with the code, but I can run it from a browser with no problem. The one thing that may be happening is a long timeout - about six seconds every once in a while. Anyone have any thoughts? Thanks, M [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CF5 Scheduled Task on Linux
We have a scheduled task that runs every 15 minutes and causes items to be made available to our customers.This is a database intensive process. Most of the day it runs just fine but lately it has started having problems. A sample from the log files that looks strange to me is below.This is a mix of the scheduler and server logs.What is missing here is that there is no success message at the same time as the completion message.I have to believe that something outside of the server and the CF code is the culprit but I am at a loss as to what.Although it says it completed I know that it has not because not all of the work got done.Also four seconds between completion and a restart seems awful fast. 2003-12-0304:02:58Information1024 The ColdFusion Application Server started. 2003-12-0304:02:54Information458760 Scheduled task 'update_display_times' for URL request 'http://secure-cm.aus-isp.newsstand.com/actions/act_update_display_times.cfm ' completed. 2003-12-0304:00:08Information458760 Scheduled task 'update_display_times' for URL request 'http://secure-cm.aus-isp.newsstand.com/actions/act_update_display_times.cfm ' initiated. The hardware is ... a Dell PowerEdge 2450. 256MB RAM, 512MB swap. Not sure on the CPU speed, I think it is 650MHz PIII if memory serves.There are no unusual additional processes running on the box.There is a system backup going on at this time. The only other symptom we have is the following in the server.stdout file. My Java experts assure me this is not the cause but a reaction to the shutting down of the system. SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [0]: SI_USER [pid: 0, uid: 0] Full thread dump Classic VM (Linux_JDK_1.2.2_FCS, native threads): Finalizer (TID:0x419b4320, sys_thread_t:0x98e07c0, state:CW, native ID:0x2c0b) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174) Reference Handler (TID:0x419b43b0, sys_thread_t:0x98e0694, state:CW, native ID:0x280a) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114) SIGQUIT handler (TID:0x419b43e0, sys_thread_t:0x98e0568, state:R, native ID:0x2409) prio=5 main (TID:0x419b41e0, sys_thread_t:0x98e043c, state:R, native ID:0x2008) prio=5 Monitor Cache Dump: [EMAIL PROTECTED]/41A834B8: unowned Waiting to be notified: Reference Handler (0x98e0694) [EMAIL PROTECTED]/41A839C0: unowned Waiting to be notified: Finalizer (0x98e07c0) Registered Monitor Dump: utf8 hash table: unowned JNI pinning lock: unowned JNI global reference lock: unowned BinClass lock: unowned Class linking lock: unowned System class loader lock: unowned Code rewrite lock: unowned Heap lock: unowned Monitor cache lock: unowned Thread queue lock: unowned Monitor registry: unowned Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 400 Austin, TX 78757 USA 512-334-5100 NewsStand Inc. is the leader in digital delivery of newspapers, magazines and other print publications. Our user-friendly technology and innovative media distribution is changing the way people read. Now, we have over70 titles (in several languages) for purchase as either single copies or subscriptions that can be easily downloaded on your desktop, laptop or Tablet PC. Here is a link to a free copy of The New York Times for you to try. Select Try a free sample and click on Add to cart. http://newsstand.com/?fuseaction=signup http://newsstand.com/?fuseaction=signuppromo_id=2295 promo_id=2295 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX and a collection loop problem
Here is what I am using now and it works.It is a listSort on the structKeyList. cfset lastletter = '@' mailto:'@' cfloop list=#listSort(structKeyList(application.translate), 'textnocase')# index=field cfif mid(field,1,1) NEQ lastletter AND mid(field,1,1) NEQ '1' cfset lastletter = mid(field,1,1) cfset anchorhref = '##'lastletter cfoutput input type=Radio name=letter value=#lastletter# size=+1 color=##80#lastletter#/font /cfoutput /cfif /cfloop Attempting to use structKeySort gets this error message. Variable STRUCTKEYSORT is undefined. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 400 Austin, TX 78757 USA 512-334-5100 NewsStand Inc. is the leader in digital delivery of newspapers, magazines and other print publications. Our user-friendly technology and innovative media distribution is changing the way people read. Now, we have over 50 titles (in several languages) for purchase as either single copies or subscriptions that can be easily downloaded on your desktop, laptop or Tablet PC. Here is a link to a free copy of The New York Times for you to try. Select Try a free sample and click on Add to cart. http://newsstand.com/?fuseaction=signup http://newsstand.com/?fuseaction=signuppromo_id=2295 promo_id=2295 -Original Message- From: Ubqtous [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 9:08 AM To: CF-Talk Subject: Re: CFMX and a collection loop problem Raymond, On 11/26/2003 at 09:39, you wrote: RC The docs actually say this? Yeah, I quoted directly from the LiveDocs site. It's mentioned here as well: http://livedocs.macromedia.com/coldfusion/6/Migrating_ColdFusion_5_Applicati ons/cf_migration_guide7.htm http://livedocs.macromedia.com/coldfusion/6/Migrating_ColdFusion_5_Applicat ions/cf_migration_guide7.htm RC structSort sorts by the values, not by the keys. As for RC structKeySort - there is no function called structKeySort. Looks like the unsorted behavior was noticed some time ago: http://cfguru.daemon.com.au/archives/50.html http://cfguru.daemon.com.au/archives/50.html ~ Ubqtous ~ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFMX and a collection loop problem
We store language translations for our site in an XML file that we load into an application variable like this. cffile action="" file=#attributes.xmlfile# variable=wddxpacket cfwddx action="" input=#wddxpacket# output=application.translate In CF5.x we access via a loop to make an editing interface. cfset lastletter = '@' cfloop collection=#application.translate# item=field cfif mid(field,1,1) NEQ lastletter AND mid(field,1,1) NEQ '1' cfset lastletter = mid(field,1,1) cfset anchorhref = '##'lastletter cfoutput input type=Radio name=letter value=#lastletter# size=+1 color=##80#lastletter#/font /cfoutput /cfif /cfloop This then prints out a nice list of the letters of the alphabet that have content.All works great in CF5 but under MX the fields are brought back in a pseudo random order.If I do a cfdump of the application variable it is just fine it is only inside the loop that I have problems. Shawn www.newsstand.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
SOLVED: CFMX and a collection loop problem
Perfect! -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 5:19 PM To: CF-Talk Subject: RE: CFMX and a collection loop problem change cfloop collection=#application.translate# item=field to cfloop list=#listSort(structKeyList(application.translate), textnocase)# index=field and it'll sort it for you.I bet that's what CFDUMP does internally. _ From: Shawn McKee [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 1:59 PM To: CF-Talk Subject: CFMX and a collection loop problem We store language translations for our site in an XML file that we load into an application variable like this. cffile action="" file=#attributes.xmlfile# variable=wddxpacket cfwddx action="" input=#wddxpacket# output=application.translate In CF5.x we access via a loop to make an editing interface. cfset lastletter = '@' cfloop collection=#application.translate# item=field cfif mid(field,1,1) NEQ lastletter AND mid(field,1,1) NEQ '1' cfset lastletter = mid(field,1,1) cfset anchorhref = '##'lastletter cfoutput input type=Radio name=letter value=#lastletter# size=+1 color=##80#lastletter#/font /cfoutput /cfif /cfloop This then prints out a nice list of the letters of the alphabet that have content.All works great in CF5 but under MX the fields are brought back in a pseudo random order.If I do a cfdump of the application variable it is just fine it is only inside the loop that I have problems. Shawn www.newsstand.com _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX and a collection loop problem
Well the file is in alpha order but who knows what the wddx conversion does to it. Barney's solution worked so I'm going with that as it was simple and I can handle simple. Shawn -Original Message- From: Philip Arnold [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 5:24 PM To: CF-Talk Subject: RE: CFMX and a collection loop problem The difference is how CFMX holds Structures compared to CF5 In CF5 it always held them in alphabetical order, but in CFMX, it stores the as they are created (or how is see's them as being created) Why not re-write it to create the available letters, then loop from A-Z and check if they're in the list? -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 4:59 PM To: CF-Talk Subject: CFMX and a collection loop problem We store language translations for our site in an XML file that we load into an application variable like this. cffile action="" file=#attributes.xmlfile# variable=wddxpacket cfwddx action="" input=#wddxpacket# output=application.translate In CF5.x we access via a loop to make an editing interface. cfset lastletter = '@' cfloop collection=#application.translate# item=field cfif mid(field,1,1) NEQ lastletter AND mid(field,1,1) NEQ '1' cfset lastletter = mid(field,1,1) cfset anchorhref = '##'lastletter cfoutput input type=Radio name=letter value=#lastletter# size=+1 color=##80#lastletter#/font /cfoutput /cfif /cfloop This then prints out a nice list of the letters of the alphabet that have content.All works great in CF5 but under MX the fields are brought back in a pseudo random order.If I do a cfdump of the application variable it is just fine it is only inside the loop that I have problems. Shawn www.newsstand.com _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: (Admin) Behavior
All right! The first flame of the e-mail about not flaming ;-) Shawn McKee -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 12:56 PM To: CF-Talk Subject: RE: (Admin) Behavior It awfully presumptuous for people who to suggest who Macromedia should hire. Further, it seems ridiculous to ask for a job with Macromedia like was just done. Macromedia already has an evangelist (Ben Forta) and a community manager (Vernon Viehe). If you don't like them or what they do that is one issue, but suggestion they hire someone else is simply not the way to approach it. Michael, if you really want to make a living working for the ColdFusion community I suggest you either apply for a job with Macromedia through the normal channels or better yet; start your own ColdFusion community portal. If you make it the number one spot for ColdFusion developers to go then I am sure you will be able to find plenty of ad revenue from companies like Macromedia. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: [EMAIL PROTECTED] -Original Message- From: Thane Sherrington [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 10:38 AM To: CF-Talk Subject: Re: (Admin) Behavior At 01:23 PM 7/25/02 -0400, Michael Dinowitz wrote: If the behavior of flaming simple, common or any other question continues, I'm going to be forced to assign homework to the flamer. If your so good at this that you can bash someone else for asking the question, then you have to write up a short FAQ to answer the question. I think that if enough of these FAQs are written then maybe it'll cut down on what some feel are easy or silly Excellent idea. I agree that the same question gets asked over and over, but it isn't the end of the world. This is one of the two best lists I've ever been on, largely because I can feel free to ask a question that some people would label stupid. questions. I can't do this alone until someone decides to pay me for hosting the lists and community work. I barely have enough time as is. (Yes, this is a hint to Macromedia) I think you should be hired on as a technology evangelist - this list is probably one of the greatest marketing machines MM has access to. T __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Custom tag length in CFMX?
Had a Pascal compiler about 20 years ago that did this. No single file could be over a certain size. Forced you to write modular code. Shawn McKee -Original Message- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 9:27 AM To: CF-Talk Subject: RE: Custom tag length in CFMX? Anyone at MM know about this? This is a bit of problem, ya know. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:03 PM To: CF-Talk Subject: Custom tag length in CFMX? I have a custom tag that's 108kb large. I'm getting an error in CFMX saying that it's over 65kb. Are there any issues with CFMX not handling custom tags larger than 65kb? __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: MX inSite Magazine
No need to give them a CC for the free sample. I am downloading it now. Shawn McKee -Original Message- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 10:38 AM To: CF-Talk Subject: Re: MX inSite Magazine Problem is, they want your credit card to get the FREE issue. I don't want to do that. Dave - Original Message - From: Chambers, Bryan (NE) [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, July 23, 2002 9:54 AM Subject: RE: MX inSite Magazine It's difficult to make a judgement yet since they've only come out with one issue so far and they've yet to come out with a print issue. I believe the first issue is available for free on their website in pdf format. They sent an e-mail out last week saying that the first print issue will be available in early August. It looks promising, but it does seem like a lot of ground to cover in one magazine. -Bryan -Original Message- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 8:42 AM To: CF-Talk Subject: MX inSite Magazine Is anybody here subscribed to MX inSite Magazine? If so, what do you think? I'd like some feedback before I invest . . . KWIM? Dave === David R Hannum Ohio University Web Analyst/Programmer (740) 597-2524 [EMAIL PROTECTED] If your wife is having fun and you're not, you're still having a lot more fun than if you're having fun and she's not!' - Red Green __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Card Processors
You might want to check out TrustCommerce (www.trustcommerce.com). They have a Java CFX and the transaction process is very fast. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CF file error
Are you doing: cffile action=UPLOAD filefield=form.fName ... Or: cffile action=UPLOAD filefield=#form.fName# ... Number one is correct. Shawn McKee -Original Message- From: stas [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 10:44 AM To: CF-Talk Subject: CF file error I have a simple file upload form and I am getting the error below: Error Diagnostic Information Error in CFFILE tag The form field specified in the CFFILE tag (FILENAME) does not contain an uploaded file. Please be sure that you have specified the correct form field name. The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (12:1) to (12:93) in the template file E:\INETPUB\WWWROOT\FORM116\ACT_UPLOAD_DOC.CFM. If I cfoutput #form.filename# it contains the full local file path. I am not really sure what I am doing wrong. I've done this dozens of times and it's probably something basic. Thanks for any tips! __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CF file error
Pay attention to Isaac and Yves, they have the real solution for you. Shawn McKee -Original Message- From: stas [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 11:05 AM To: CF-Talk Subject: Re: CF file error The first one ... - Original Message - From: Shawn McKee [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, July 18, 2002 11:48 AM Subject: RE: CF file error Are you doing: cffile action=UPLOAD filefield=form.fName ... Or: cffile action=UPLOAD filefield=#form.fName# ... Number one is correct. Shawn McKee __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFCONTENT and closing the main page
This has more than you want but: I have this form on one page. form action=/act_dnldReports.cfm method=post select name=cndRprt size=5 value=pub_report_id multiple id=SmerFont cfoutput query=cannedReports option value=#pub_report_id##dateFormat(pub_report_date, 'MMDD')# - #pub_report_desc# /cfoutput /selectbrbr input type=submit value=Download Reports id=SmerFont /form The user selects the reports they want to download and hit the submit button which calls this file. The main page never refreashes and the only thing that opens is the download dialog. cfinclude template=../app_globals.cfm cfquery datasource=#dsn# name=rprtPath SELECT pub_report_path FROM pub_report_detail prd WHERE pub_report_id IN (#attributes.cndRprt#) /cfquery cfoutput query=rprtPath #pub_report_path#br /cfoutput cfset allFiles = valueLIst(rprtPath.pub_report_path) cftry cfoutput query=rprtPath cfset path = GetDirectoryFromPath(pub_report_path) cfset fName = #path##client.username#.zip CFX_JCompress ACTION=NEW FILEIN=#allFiles# FILEOUT=#fName# cfexecute name=/bin/chmod arguments=-R 775 #fName# timeOut=15/cfexecute CFHEADER NAME=Content-Disposition VALUE=filename=#client.username#.zip cfcontent type=application/x-zip-compressed file=#fName# deletefile=Yes /cfoutput cfcatch type=Any cfdump var=#cfcatch# /cfcatch /cftry Shawn McKee -Original Message- From: Margaret Fisk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 12:58 PM To: CF-Talk Subject: RE: CFCONTENT and closing the main page Hi everyone, I am using CFCONTENT to force a download dialog box (thanks to some help from this list :-)) and I have an additional question. Right now, I pop up a separate window that then pops up the File Download dialog. However, the original window stays open even after the download is complete and displays as a blank page. I'm going to work on putting a Click Save on the File Download dialog box message to avoid the blank page, but this is rather obvious. Is there any way to close the window after the File Download box has displayed...without disrupting the download of course. Thanks in advance, Margaret Fisk Manager of Customer Support [EMAIL PROTECTED] Quiver, Inc. 2121 El Camino Real Suite 300 San Mateo, CA 94403 Quiver...Knowledge is Your Advantage Visit our website: http://www.quiver.com/ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Download a list of files to user
I have a page where a user selects a list of reports to download. I would like to kick of a series of download windows to send these to the user. I tried: cfquery datasource=#dsn# name=rprtPath SELECT pub_report_path FROM pub_report_detail WHERE pub_report_id IN (#attributes.cndRprt#) /cfquery cftry cfloop query=rprtPath cfcontent type=application/unknown file=#pub_report_path# deletefile=No /cfloop cfcatch type=Any cfdump var=#cfcatch# /cfcatch /cftry But this has two problems. It only gives one file from the list and it is named with the name of the .CFM template. I need the entire list downloaded and I need to maintain the names. Any help appreciated. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Download a list of files to user
I'm fine with that but how do I get cfcontent to maintain the file name? Shawn -Original Message- From: Andre Turrettini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:57 PM To: CF-Talk Subject: RE: Download a list of files to user Why don't you make him a zip file on the server and cfcontent that? Lower bandwidth required. One cfcontent versus dozens(albeit a bigger one). I think theres some free zip utilities on the devcenter at macromedia.com. DRE -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 2:53 PM To: CF-Talk Subject: Download a list of files to user I have a page where a user selects a list of reports to download. I would like to kick of a series of download windows to send these to the user. I tried: cfquery datasource=#dsn# name=rprtPath SELECT pub_report_path FROM pub_report_detail WHERE pub_report_id IN (#attributes.cndRprt#) /cfquery cftry cfloop query=rprtPath cfcontent type=application/unknown file=#pub_report_path# deletefile=No /cfloop cfcatch type=Any cfdump var=#cfcatch# /cfcatch /cftry But this has two problems. It only gives one file from the list and it is named with the name of the .CFM template. I need the entire list downloaded and I need to maintain the names. Any help appreciated. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Download a list of files to user
That works like a champ! Any idea why it falls out of the loop? Shawn -Original Message- From: Trishan Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 4:23 PM To: CF-Talk Subject: Re: Download a list of files to user CFHEADER NAME=Content-Disposition VALUE=filename=#TheFileNameYouWantToShowUp# right before the cfcontent tag. That help any? - Trishan Singh Paracom Technologies 316-293-2900 - Original Message - From: Shawn McKee [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 4:06 PM Subject: RE: Download a list of files to user I'm fine with that but how do I get cfcontent to maintain the file name? Shawn -Original Message- From: Andre Turrettini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:57 PM To: CF-Talk Subject: RE: Download a list of files to user Why don't you make him a zip file on the server and cfcontent that? Lower bandwidth required. One cfcontent versus dozens(albeit a bigger one). I think theres some free zip utilities on the devcenter at macromedia.com. DRE -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 2:53 PM To: CF-Talk Subject: Download a list of files to user I have a page where a user selects a list of reports to download. I would like to kick of a series of download windows to send these to the user. I tried: cfquery datasource=#dsn# name=rprtPath SELECT pub_report_path FROM pub_report_detail WHERE pub_report_id IN (#attributes.cndRprt#) /cfquery cftry cfloop query=rprtPath cfcontent type=application/unknown file=#pub_report_path# deletefile=No /cfloop cfcatch type=Any cfdump var=#cfcatch# /cfcatch /cftry But this has two problems. It only gives one file from the list and it is named with the name of the .CFM template. I need the entire list downloaded and I need to maintain the names. Any help appreciated. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: RE: Printing
Load the file in the browser and point you user at the print button. Obviously assumes an interactive session and not a scheduled task. Shawn McKee -Original Message- From: Dan O'Keefe [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 9:52 AM To: CF-Talk Subject: RE: RE: Printing It looks like this will only print to the local network, whereas I need to print to the printer connected to the clients local machine over the internet. Dan -Original Message- From: Ian Lurie [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 11:35 PM To: CF-Talk Subject: RE: RE: Printing Sorry, here's the link: http://devex.macromedia.com/developer/gallery/info.cfm?ID=7417CA2C-0EC4-11D 6-83FA00508B94F85Amethod=Full It was 'printserver'. Someday they'll put a real search engine up there... -Original Message- From: Eric Hoffman [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 8:06 PM To: CF-Talk Subject: RE: RE: Printing No good searching by print server... Regards, Eric J Hoffman Head Tech Geek DataStream Connexion www.datastreamconnexion.com Delivering Creative Data Solutions -Original Message- From: Ian Lurie [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 9:07 PM To: CF-Talk Subject: RE: RE: Printing There's an excellent print server product in the Dev Exchange on Macromedia. We just used it to print to remote, networked printers at a big event and it worked like a dream. Search for print server and you should find it. -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 4:08 PM To: CF-Talk Subject: RE: RE: Printing Hi Dan, Unfortunately afaik the closest JavaScript will let you get to actually printing a file is opening the print dialog box and then the user would have to hit the okay button to actually print the document... I believe Flash MX may have a way to go directly to the printer, so you should be able to create a very simple flash movie with a single text area which you could populate with data from the flashVars param ( up to 64k ) and then go directly to the printer. You can probably even get the Flash movie to fit 100% height and 100% width so the text would expand to fill the browser window... :) Isaac www.turnkey.to 954-776-0046 Original Message --- You know what though, I need to print to a clients printer, so I assume I will be talking JavaScript and the window.print method. I will need to print a number of letters with the dynamic name and address, similar to a mail merge. Dan -Original Message- From: Tipton Josh (orl1jdt) [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 3:01 PM To: CF-Talk Subject: RE: Printing copy file.txt lpt1 is it is local or if you have captured the printer in dos to lpt1 if it is networked. I do that exact thing using cffile then exexecute. It sends it through the server to a printer that everyone works on. Joshua Tipton -Original Message- From: Dan O'Keefe [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 2:58 PM To: CF-Talk Subject: Printing What is the easiest way to send a text document to a printer from CFML. I would imagine writing the file out with CFFILE and somehow initiating a DOS command such as: copy file.txt PRN Dan - Dan O'Keefe TriPoint Technologies 954.501.3115 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cffile copy problem
I'm talking about possibly thousands of files and mostly binaries. I am working on using cfexecute and the cp command to get around this. Shawn -Original Message- From: Margaret Fisk [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 3:07 PM To: CF-Talk Subject: RE: cffile copy problem It will only get you the text of the file and probably lose some formatting, but you could read it and then output a new file using the file contents couldn't you? -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:08 PM To: CF-Talk Subject: RE: cffile copy problem No joy, still won't copy a file that I don't have write permissions for. Shawn -Original Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:49 AM To: Shawn McKee Subject: RE: cffile copy problem Yeah, the attributes parameter looks like a Windows-only thing. -- Original Message -- From: Shawn McKee [EMAIL PROTECTED] Date: Thu, 11 Jul 2002 08:40:44 -0500 This actually comes from the custom tag local_to_local. In looking at it I am wondering if it is the combination of the attributes and the mode in the same tag. I am betting I added the mode and left the attributes. cffile action=COPY source=#Dir#/#Name# destination=#attributes.DestDir#/#NewFile# attributes=normal mode=664 Shawn -Original Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:35 AM To: Shawn McKee Subject: RE: cffile copy problem Ah, yes, I agree - your CF is running as userid cfadm. Sounds like Linux itself is happy with what you've got. Do you have a mode parameter in your cffile statement? Here's one I use: cffile action=append file=myfilename mode=644 addnewline=Yes output=blah blah blah -- Original Message -- From: Shawn McKee [EMAIL PROTECTED] Date: Thu, 11 Jul 2002 08:16:54 -0500 I'll check that but when it does successfully copy the files the end up as owned by cfadm not by nobody thus my assumption that it was running as cfadm. Shawn -Original Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 7:59 AM To: CF-Talk; [EMAIL PROTECTED] Subject: Re: cffile copy problem CF (on Solaris, anyway) runs as userid nobody. So the permissions have to be right for nobody for cffile to work. Chris Norloff -- Original Message -- from: Shawn McKee [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] date: Wed, 10 Jul 2002 19:00:20 -0500 I am trying to copy a file on a Linux system that has read permissions at the group level (644 specifically). I can log into the box and su to cfadm and make the copy just fine. If I try and do it with the cffile tag I get a permission denied. If I change the file permissions to read, write at the group level (774) all is OK. The write permission at group should not impact my ability to read and copy the file. Any ideas? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cffile copy problem
No joy, still won't copy a file that I don't have write permissions for. Shawn -Original Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:49 AM To: Shawn McKee Subject: RE: cffile copy problem Yeah, the attributes parameter looks like a Windows-only thing. -- Original Message -- From: Shawn McKee [EMAIL PROTECTED] Date: Thu, 11 Jul 2002 08:40:44 -0500 This actually comes from the custom tag local_to_local. In looking at it I am wondering if it is the combination of the attributes and the mode in the same tag. I am betting I added the mode and left the attributes. cffile action=COPY source=#Dir#/#Name# destination=#attributes.DestDir#/#NewFile# attributes=normal mode=664 Shawn -Original Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:35 AM To: Shawn McKee Subject: RE: cffile copy problem Ah, yes, I agree - your CF is running as userid cfadm. Sounds like Linux itself is happy with what you've got. Do you have a mode parameter in your cffile statement? Here's one I use: cffile action=append file=myfilename mode=644 addnewline=Yes output=blah blah blah -- Original Message -- From: Shawn McKee [EMAIL PROTECTED] Date: Thu, 11 Jul 2002 08:16:54 -0500 I'll check that but when it does successfully copy the files the end up as owned by cfadm not by nobody thus my assumption that it was running as cfadm. Shawn -Original Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 7:59 AM To: CF-Talk; [EMAIL PROTECTED] Subject: Re: cffile copy problem CF (on Solaris, anyway) runs as userid nobody. So the permissions have to be right for nobody for cffile to work. Chris Norloff -- Original Message -- from: Shawn McKee [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] date: Wed, 10 Jul 2002 19:00:20 -0500 I am trying to copy a file on a Linux system that has read permissions at the group level (644 specifically). I can log into the box and su to cfadm and make the copy just fine. If I try and do it with the cffile tag I get a permission denied. If I change the file permissions to read, write at the group level (774) all is OK. The write permission at group should not impact my ability to read and copy the file. Any ideas? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cffile copy problem
I am trying to copy a file on a Linux system that has read permissions at the group level (644 specifically). I can log into the box and su to cfadm and make the copy just fine. If I try and do it with the cffile tag I get a permission denied. If I change the file permissions to read, write at the group level (774) all is OK. The write permission at group should not impact my ability to read and copy the file. Any ideas? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Naming Convention choice
Yes, they just don't celebrate it as US Independence day. ;-) Shawn McKee -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 11:30 AM To: CF-Talk Subject: Re: Naming Convention choice Head hurts, vision blurry... Happy 5th of July ;D I understand ... question, does Europe and other countries have a 4th of July too? Paul Giesenhagen QuillDesign (Or do they go from the 3rd to the 5th USA Humor) __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfscript WAS:RE: OT: Naming Convention choice
IMHO it is a lot cleaner and easier to read. Shawn McKee -Original Message- From: Weaver, Anthony [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 2:00 PM To: CF-Talk Subject: RE: OT: Naming Convention choice I have been writing CF code since 3.x and have NEVER used CFScript. I have never actually found a need. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 2:56 PM To: CF-Talk Subject: RE: OT: Naming Convention choice Ben! Say it ain't so! :D I still use cfscript a lot! Even inside components! cfscript = evil. g Actually, I think I just got turned off by it when it debugged with the line number of the starting cfscript tag. I know it's fixed, but I like my tag based CF code better anyway. Ben Johnson __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: *CRITCAL FLAW*
Not sure how many programming languages you have used but this is not all that unusual with floating point numbers. You need to do some work to get the significant bits you care about if it really matters. Doing equality checks on floating point math is generally a problem. For instance this: script alert(12.1+.1+.1+.1);/script On my system gives back 12.399 in Netscape and 12.398 in IE. As I recall from my BASIC/FORTRAN/C/C++ days we generally multiplied by a factor to move everything we cared about to the left of the decimal then added .5, floored the whole thing and then divided it back by the factor. script alert(Math.floor12.1+.1+.1+.1) * 10) + .5)) /10);/script Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 -Original Message- From: Brian Eckerman [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 12:49 PM To: CF-Talk Subject: RE: *CRITCAL FLAW* no i'm trying to takeand it comes out to 12.401 ARRRGHH this is cripling -Original Message- From: Critter [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 1:18 PM To: CF-Talk Subject: Re: *CRITCAL FLAW* oi Brian!! are you using parseFloat() ? -- Critz Certified Adv. ColdFusion Developer Crit[s2k] - CF_ChannelOP Network=Efnet Channel=ColdFusion Monday, July 1, 2002, 1:11:59 PM, you wrote: BE I know this is WAY of track, but what the heck is up with BE the way Javascript messes up floating point numbers. BE Sheesh. BE __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: *CRITCAL FLAW* final fix
Guess that is why it is called floating point. ;-) Shawn -Original Message- From: Brian Eckerman [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 1:45 PM To: CF-Talk Subject: RE: *CRITCAL FLAW* final fix Great, thankyou for the answer, but lol get this when you ((n*10)+.5)/10 it mucks it up again and will give you something like 12.41. Just dividing the thing confuses it. I give up. I'll just try not to use Javascript for dynamic math. (p.s. I did stumble apon a hack/temporary fix) (go to http://www.spiderpro.com/bu/bujvsh002.html) -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 2:10 PM To: CF-Talk Subject: RE: *CRITCAL FLAW* Not sure how many programming languages you have used but this is not all that unusual with floating point numbers. You need to do some work to get the significant bits you care about if it really matters. Doing equality checks on floating point math is generally a problem. For instance this: script alert(12.1+.1+.1+.1);/script On my system gives back 12.399 in Netscape and 12.398 in IE. As I recall from my BASIC/FORTRAN/C/C++ days we generally multiplied by a factor to move everything we cared about to the left of the decimal then added .5, floored the whole thing and then divided it back by the factor. script alert(Math.floor12.1+.1+.1+.1) * 10) + .5)) /10);/script Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 -Original Message- From: Brian Eckerman [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 12:49 PM To: CF-Talk Subject: RE: *CRITCAL FLAW* no i'm trying to takeand it comes out to 12.401 ARRRGHH this is cripling -Original Message- From: Critter [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 1:18 PM To: CF-Talk Subject: Re: *CRITCAL FLAW* oi Brian!! are you using parseFloat() ? -- Critz Certified Adv. ColdFusion Developer Crit[s2k] - CF_ChannelOP Network=Efnet Channel=ColdFusion Monday, July 1, 2002, 1:11:59 PM, you wrote: BE I know this is WAY of track, but what the heck is up with BE the way Javascript messes up floating point numbers. BE Sheesh. BE __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: 4 million messages per hour - is it possible?
And in just over two months you have sent an e-mail to everyone in the world! Shawn McKee -Original Message- From: Paris Lundis [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 5:32 PM To: CF-Talk Subject: RE: 4 million messages per hour - is it possible? holly cow... 4 million geez... I am not asking who this is for.. that's a gross amount of emails... First off, I haven't created such a tool... Let's talk about theory here... With CF you can expect how many simultaneous pages per second performance wise? 50-100 on a nice box with tight code.. optimization, etc... so let's be optimistic... 100 x 60 seconds = 6000 messages per minute 6000 per min * 60 minutes = 360, messages per hour... per box... that's about 6 times the spool limit.. which is about 65k files... putting that aside... you need about 10-15 servers essentially with a distributed cooperative pooling mechanism to handle this... ideally... You also need a damn fast DNS or multiple local servers to reduce lookup times... Ideally, if you scrap the mail server need (which would be expensive, clogged, nightmare) and utilized a CF friendly mail server like iMS and ripped the mailing to a giant database table... had a scheduled event whereby each machine grabbed a range, worked it and recorded status errors etc to database and purged valid already mailed stuff or put in another table.. and talked maybe directly SMTP versus the need of a server well then it would be doable... recommend MySQL here... cheap and damn fast but with the machines I mentioned... you might also need some good bandwidth considering the volume of mail and the potential size of the emails themselves... That's my input... -paris Paris Lundis Founder Areaindex, L.L.C. http://www.areaindex.com http://www.pubcrawler.com (p) 1-212-655-4477 [finding the future in the past, passing the future in the present] [connecting people, places and things] __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Attempting crude MD5 check causing server to reboot.
I need one of two things from the experts here. Either a way to do an MD5 check on a file that doesn't require reading the whole file in to memory or a way to stop this code from either not successfully reading the output files from the cfexecute or worse rebooting the server because an exception is caught. The goal here is to copy a set of directories across an NFS mount on a Linux system and make sure all the bits made it across unmolested. I am using cf_local_to_local to do the copy. I have tried various tricks to put a wait after the executes and before the read but that doesn't seem to help either unless the wait is ridiculously long and when I am copying thousands of files I can't afford five seconds between writes. cfexecute name=/usr/bin/md5sum arguments=/topdir/abc/abc/abc/12345678/XYZ.pdf outputfile=/topdir/cde/cde/abc/ck1.cfadm/ cfexecute name=/usr/bin/md5sum arguments=/topdir/cde/cde/abc/12345678/XYZ.pdf outputfile=/topdir/cde/cde/abc/ck2.cfadm/ cffile action=READ file=/topdir/cde/cde/abc/ck1.cfadm variable=ck1 cfoutput#ck1#/cfoutputbr cffile action=READ file=/topdir/cde/cde/abc/ck2.cfadm variable=ck2 cfoutput#ck2#/cfoutput cfset ck1 = Left(ck1, Find( /, ck1)) cfset ck2 = Left(ck2, Find( /, ck2)) cfset x = compare(ck1, ck2) cfoutputbr|#x#|br |#ck1#|br |#ck2#|/cfoutput Thanks, Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Weird problem with CFEXECUTE not releasing file
Anybody have a Linux version of this? Shawn McKee -Original Message- From: Lewis Sellers [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 3:07 PM To: CF-Talk Subject: Re: Weird problem with CFEXECUTE not releasing file On Thu, 27 Jun 2002 08:47:14 -0400, in cf-talk you wrote: FYI. There's also it's successor, CFX_Execute. Which I also wrote. It's more like CFEXECUTE, except for the bugs. :) I was unable to find CFX_Execute on the MM developer exchange... could you email me a copy off list at [EMAIL PROTECTED] or even just send me a link that I can download from? I stopped use the exchange ages ago because it never worked (cfml errors or other problems). Maybe Macromedia's gotten it working now. Haven't looked in many many months. Anyway... http://www.intrafoundation.com/freeware.html. Everything's there. --min __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Card Processors
Has any one had any experience with Paymentech as a credit card processor? How did integration go, were there any canned CF tools you were able to use? Thanks, Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Directory copies on UNIX systems
If I do this: cfexecute name=/bin/cp arguments=-R -p #dirName1# #dirName2#/fred outputfile=#outName#/cpOut/cfexecute where 'fred' doesn't exist I get this in the output file: /bin/cp: cannot create directory `/ftp/ahb/ahb/bkm/fred': No such file or directory If it succeeds the file is empty Neither case is a single integer. Documentation says this: outputFile - Optional. The file to which to direct the output of the program. If not specified, the output is displayed on the page from which it was called. This is all CF5 on RH-Linux Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 6:27 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems You don't have to parse the file. All the file will contain is a single integer. What's so hard about that? -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 4:22 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems As I said. -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:44 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems That will work but I kind of like getting some sort of success or failure back without having to dump things to a log file that I then have to parse through. Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 6:15 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems You output what cp returns to a file and then read the file. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:57 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems I know cp does but does cfexecute translate that back to the calling program. The docs don't indicate that it does. Exception cfexecute throws the following exceptions: If the application name is not found: Application File Not Found exception If the output file cannot be opened: Output File Cannot exception If the effective user of the ColdFusion executing thread does not have permissions to execute the process, a security exception is thrown. The time out values must be between 0 and the longest time out value supported by the operating system Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:50 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems cp returns a success/failure code. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:44 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems That will work but I kind of like getting some sort of success or failure back without having to dump things to a log file that I then have to parse through. Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:12 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems Use cfexecute and call the cp program. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 11:34 AM To: CF-Talk Subject: Directory copies on UNIX systems I need to be able to copy complete directory structures from one location to another on various UNIX systems. I have gotten close using a variety of custom tags I have found but the underlying problem is that I really need to maintain the group, and preferably the owner. I am trying to avoid creating CFX tag simply because of lack of resources. Suggestions? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Directory copies on UNIX systems
Good information, thanks. But the core here was I do want a return code from cfexecute which it doesn't appear to do, although a try/catch does seem to give some useful information. My work around to all of this has been a series of using cfexecute to do a chmod on the files first to make sure the permissions are what I want, then calling cf_local_to_local by Rizal Firmansyah to do the copy and then finally cfexecute to do a chgrp at the end so that the correct people can get to the files. Shawn McKee -Original Message- From: Larry W. Virden [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 9:35 AM To: CF-Talk Subject: Re: Directory copies on UNIX systems from: Shawn McKee [EMAIL PROTECTED] If I do this: cfexecute name=/bin/cp arguments=-R -p #dirName1# #dirName2#/fred outputfile=#outName#/cpOut/cfexecute where 'fred' doesn't exist I get this in the output file: /bin/cp: cannot create directory `/ftp/ahb/ahb/bkm/fred': No such file or directory If it succeeds the file is empty Neither case is a single integer. Documentation says this: outputFile - Optional. The file to which to direct the output of the program. If not specified, the output is displayed on the page from which it was called. This is all CF5 on RH-Linux Shawn Shawn, I don't know how Linux works, but both GNU's cp and Solaris's cp does this: $ gcp -R -p /tmp/lwv /tmp/lwv26 $ In other words, no output is produced. There is a $? return code that is 'returned' - but it's not output to stdout or stderr. -- Support Internet Radio URL: http://saveinternetradio.org/ Larry W. Virden mailto:[EMAIL PROTECTED] URL: http://www.purl.org/NET/lvirden/ Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -- __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Directory copies on UNIX systems
I need to be able to copy complete directory structures from one location to another on various UNIX systems. I have gotten close using a variety of custom tags I have found but the underlying problem is that I really need to maintain the group, and preferably the owner. I am trying to avoid creating CFX tag simply because of lack of resources. Suggestions? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Directory copies on UNIX systems
That will work but I kind of like getting some sort of success or failure back without having to dump things to a log file that I then have to parse through. Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:12 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems Use cfexecute and call the cp program. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 11:34 AM To: CF-Talk Subject: Directory copies on UNIX systems I need to be able to copy complete directory structures from one location to another on various UNIX systems. I have gotten close using a variety of custom tags I have found but the underlying problem is that I really need to maintain the group, and preferably the owner. I am trying to avoid creating CFX tag simply because of lack of resources. Suggestions? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Directory copies on UNIX systems
I know cp does but does cfexecute translate that back to the calling program. The docs don't indicate that it does. Exception cfexecute throws the following exceptions: If the application name is not found: Application File Not Found exception If the output file cannot be opened: Output File Cannot exception If the effective user of the ColdFusion executing thread does not have permissions to execute the process, a security exception is thrown. The time out values must be between 0 and the longest time out value supported by the operating system Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:50 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems cp returns a success/failure code. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:44 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems That will work but I kind of like getting some sort of success or failure back without having to dump things to a log file that I then have to parse through. Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:12 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems Use cfexecute and call the cp program. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 11:34 AM To: CF-Talk Subject: Directory copies on UNIX systems I need to be able to copy complete directory structures from one location to another on various UNIX systems. I have gotten close using a variety of custom tags I have found but the underlying problem is that I really need to maintain the group, and preferably the owner. I am trying to avoid creating CFX tag simply because of lack of resources. Suggestions? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Directory copies on UNIX systems
As I said. -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:44 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems That will work but I kind of like getting some sort of success or failure back without having to dump things to a log file that I then have to parse through. Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 6:15 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems You output what cp returns to a file and then read the file. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:57 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems I know cp does but does cfexecute translate that back to the calling program. The docs don't indicate that it does. Exception cfexecute throws the following exceptions: If the application name is not found: Application File Not Found exception If the output file cannot be opened: Output File Cannot exception If the effective user of the ColdFusion executing thread does not have permissions to execute the process, a security exception is thrown. The time out values must be between 0 and the longest time out value supported by the operating system Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:50 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems cp returns a success/failure code. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:44 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems That will work but I kind of like getting some sort of success or failure back without having to dump things to a log file that I then have to parse through. Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 5:12 PM To: CF-Talk Subject: RE: Directory copies on UNIX systems Use cfexecute and call the cp program. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 11:34 AM To: CF-Talk Subject: Directory copies on UNIX systems I need to be able to copy complete directory structures from one location to another on various UNIX systems. I have gotten close using a variety of custom tags I have found but the underlying problem is that I really need to maintain the group, and preferably the owner. I am trying to avoid creating CFX tag simply because of lack of resources. Suggestions? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: California Stats sales tax by county
If CA is like TX there are more taxing authorities than you can think of. It can get down to the city and school district level. Shawn McKee -Original Message- From: Jeff Beer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 3:11 PM To: CF-Talk Subject: California Stats sales tax by county Does anyone have a compiled list of the various sales tax rates by county for California? Just finishing up an e-commerce site, and I didn't know the state tax was broken down this way.. grr.. Thanks in advance! Jeff Beer Director of Application Development Digital Stormfront, Inc http://www.digitalstormfront.com http://www.digitalstormfront.com __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
dynamic variable name
My brain is fried. How do I do this? cfloop from=1 to=10 index=i cfset dynamicName_#i# = #i# /cfloop So that I end up with variables name dynamicName_1 through dynamicName_10? Shawn McKee __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: dynamic variable name
Doh! Thanks -Original Message- From: James Ang [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 6:04 PM To: CF-Talk Subject: RE: dynamic variable name cfset dynamicName_#i# = i Or cfset SetVariable(dynamicName_#i#, i) Or Use an array for dynamicName and use the dynamicName[] notation if i is a number. Or Use a struct for dynamicName and use the dynamicName[] notation if I can be any string. If you can do the 3rd option, go for the 3rd option. :) James Ang Senior Programmer MedSeek, Inc. [EMAIL PROTECTED] -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 3:59 PM To: CF-Talk Subject: dynamic variable name My brain is fried. How do I do this? cfloop from=1 to=10 index=i cfset dynamicName_#i# = #i# /cfloop So that I end up with variables name dynamicName_1 through dynamicName_10? Shawn McKee __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
OT: Print from Mac Browser using JS
Does the JS window.print have a problem in MSIE on a PowerPC? When our customers hit a print button on one of our pages to get a printout of their receipt I get errors from PowerPC users. IE 5+ and NS 4+ seem to work fine on Windoze. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Bilingual App HELP!!
Try this as well. http://www.devx.com/xml/articles/kc1100/cox01-1.asp We took this idea and loaded the XML file into an application variable after de-serializing it with a cfwddx call. Sample of the XML file. wddxPacket version=1.0 header / data struct var name=1LANG stringEnglish|Spanish/string /var var name=1LANGCODE stringen|es/string /var var name=2NDDOWNLOAD string2nd Download Fee:|Costo de la Segunda Descarga:/string /var var name=ZOOMSETTINGS stringZoom Settings|Ajustes del Zoom/string /var /struct /data /wddxPacket cfif NOT isdefined(application.translate) OR attributes.readXML EQ true !--- read xml file --- cffile action=READ file=#attributes.xmlfile# variable=wddxpacket !--- de-serialize xml into application variable --- cfwddx action=WDDX2CFML input=#wddxpacket# output=application.translate cfset attributes.readXML = false /cfif Then we use this to get the correct language out. Client.langid is the numeric position in the list where the correct text is at. It is defined as being the index of the language ID in the 1LANGCODE element of the table. cfoutput#listgetat(application.translate[2NDDOWNLOAD],Int(client.langid) ,|)#/cfoutput We support English, German, Spanish and Italian at the moment. Clearly we also wrote a nice application that displays the whole table and lets us edit it simply. One of these days I am going to replace all of the LISTGETAT stuff with a UDF that will guarantee that if the translated text doesn't exist we will at least get the English back. For any graphics we have different image subdirectories with those there. images_en, images_es ... The path is set in the app_globals (We use FuseBox 2.0) like this: cfset attributes.imagespath = /images_#client.langcode# Finally we check the language of the browser and default to the correct one if it is supported otherwise we use English. We have links on the site that let the user change the language and we store that as a client variable so we know the next time they come back what language they wanted. It is also stored in the database so if they log in from a new machine we can give them the correct language. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 -Original Message- From: Jaime Bonilla [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 2:09 PM To: CF-Talk Subject: RE: Bilingual App HELP!! Hi snifflebear! You will need to use some sort of Content Management type of framework where the content of your site is store in a database. This way you can translate all of the information and then display it in templates according to the user's preference. Rather than give you a lengthy explanation of what I have done with something similar I leave you my email so that you can contact me directly if you really are interested in hearing my 2 cents. Feel free to email me at [EMAIL PROTECTED] Jaime -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 1:47 PM To: CF-Talk Subject: Bilingual App HELP!! Hey guys, any of yall Familiar with the Houston International Festival? Well it's like this festival that features music, dance, arts, and spotlights a different country every year. Well this year that country is MEXICO. And they want to have an English and Spanish version. I would like some ideas on methods on approaching this. Everything will be identical. Layout, grpahics. The only difference is the langage (and of course, text on the navigation buttons will change too). But i was wondering if there are any veterans :) Ideally, I would like to have only one copy, instead of an English copy and a Spanish copy. That way they use the same CFM code. A bulk of the site would be text and information. So i was thinking maybe I can just set the text to variables, and display the correct language depending on their preference. Just text only though! There will be only one HTML code, and only one CFM code to follow. So well, there you go! I appreciate any input, humour, pity :) snifflebear __ 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 FAQ: http://www.thenetprofits.co.uk
RE: Search Engines
Also http://searchenginewatch.com/ Shawn McKee -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 11:00 AM To: CF-Talk Subject: Re: Search Engines Try http://www.searchengineworld.com a good amount of information. Good Luck Paul Giesenhagen QuillDesign - Original Message - From: Douglas Brown [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, May 24, 2002 11:05 AM Subject: OT: Search Engines Does anyone know of a list that has to do with search engine optimization? We are trying to get better rankings and I could use all the input I can get. Douglas Brown Email: [EMAIL PROTECTED] __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Phone Number Format
Here is a formatting tag we use for several things. Stored in CustomTags as format.cfm. It is an old tag so please don't critique the details of the coding. Shawn McKee !--- Purpose: Format a field with the given delimiter Attributes: type=ssn | phone | zip | cc -required value=[value to be formatted] -required var=[variable where you want the output stored] -default formatVar parents=yes | no -default yes -notes specifies if you want parentheses around a phone # delimiter=[value to use as a delimter, i.e .,-,(,)] -default - maskcc=yes | no -default yes will put in '*' for first segments of cc number Error Throws: If a required attribute isn't specified then an application throw is done. To catch the error: put the tag in a try/catch format and then process the error as you like. Usage Notes: if installed under custom tags directory: cf_format type=ssn|phone|zip value=#form.phonenumber# [var=#somevariable#] [parents=yes|no] [delimter=#delimiter] if installed in relative directory to your application: cfmodule template=#path#/format.cfm type=ssn|phone|zip value=#form.phonenumber# [var=#somevariable#] [parents=yes|no] [delimter=#delimiter] if this custom tag has thesame name as another tag in custom tags directory: cfmodule name=#dir#.#dir2#.format type=ssn|phone|zip value=#form.phonenumber# [var=#somevariable#] [parents=yes|no] [delimter=#delimiter] Misc. Notes: For dynamic variables you must only use local variables. Other scoped variables will cause a run-time error. i.e, cf_format type=ssn value=#form.phonenumber# var=form.phonenumber - this will cause an error. Modification Log: Date AuthorChange == = --- !--- Set default values on attributes --- cfparam name=attributes.type default=-1 cfparam name=attributes.value default=-1 cfparam name=attributes.var default=formatVar cfparam name=attributes.parents default=yes cfparam name=attributes.delimiter default=- cfparam name=attributes.maskcc default=yes !--- Check required attributes for validity and if it not valid then throw an error to the calling page --- cfif trim(attributes.type) is -1 cfthrow message=Format.cfm: Type is a required attribute. /cfif cfif trim(attributes.value) is -1 cfthrow message=Format.cfm: Value is a required attribute. /cfif !--- Strip all whitespace form the variable --- cfset attributes.value = trim(attributes.value) !--- determine the type and do the proper format --- cfswitch expression=#lcase(attributes.type)# cfcase value=ssn cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 3) cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 6) /cfcase cfcase value=phone cfif len(trim(attributes.value)) gt 7 cfif attributes.parents is yes cfset attributes.value = insert((, attributes.value, 0) cfset attributes.value = insert() , attributes.value, 4) cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 9) cfelse cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 3) cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 7) /cfif /cfif /cfcase cfcase value=zip cfif len(trim(attributes.value)) gt 5 cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 5) /cfif /cfcase cfcase value=cc cfif #attributes.maskcc# eq yes AND len(trim(attributes.value)) gt 4 cfset endloop = len(trim(attributes.value)) - 4 cfset attributes.value = removechars(attributes.value,1,(len(trim(attributes.value))-4)) cfloop index=maskloop from=1 to=#endloop# cfset attributes.value = insert('*',attributes.value,0) /cfloop /cfif cfif len(trim(attributes.value)) EQ 16 cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 12) cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 8) cfset attributes.value = insert(trim(attributes.delimiter), attributes.value, 4
cf_browser
Anybody have suggestions for a more robust browser trapper? This seems to fail when there is no user agent provided. I get this error message. Var = Mid(#Source#,ST+Eposition,(ET-(ST+Eposition))) If it could report search engines as well that would be really cool. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Is this right?
quot; -Original Message- From: Chakka, Sudheer [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 11:59 AM To: CF-Talk Subject: Is this right? Hi, How do i insert one '' into a html file. Should be I using some ASCII value for that.If so can any one tell me the ascii value of that Any help on this is apprecited!!! Sudheer Chakka __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: checkout exit survey
I'll also disable the back button. This is my Holy Grail, how are you going to do it? Shawn McKee -Original Message- From: cf refactoring [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 9:53 AM To: CF-Talk Subject: checkout exit survey Our marketing department wants to know why people abandon the checkout process, so they've tasked IT with creating a survey which pops up when people abandon their cart. I'm thinking what I'll do is to capture the onunload event for each page of the checkout process, and that on unload I'll check to see if the user is leaving the page via one of the links/forms on the page, or by some other method. If it's by some other method, I'll pop up the survey. I'll also disable the back button. This won't capture all the abandonment, but it seems to me to be the least intrusive = least likely to popup when it's not supposed to. I'd appreciate any alternatives and any suggestions to make this less intrusive. = I-Lin Kuo Macromedia CF5 Advanced Developer Sun Certified Java 2 Programmer __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: checkout exit survey
I have seen and coded lots of partial solutions but I have yet to see the true back button killer. Shawn McKee -Original Message- From: Darren Adams [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 10:01 AM To: CF-Talk Subject: RE: checkout exit survey H, I think my colleague just did that using Javascript ! Darren Adams Web Developer Mob:07759 956523 Office:01252 556220 Data + Structure = Information -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: 07 May 2002 15:57 To: CF-Talk Subject:RE: checkout exit survey I'll also disable the back button. This is my Holy Grail, how are you going to do it? Shawn McKee -Original Message- From: cf refactoring [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 9:53 AM To: CF-Talk Subject: checkout exit survey Our marketing department wants to know why people abandon the checkout process, so they've tasked IT with creating a survey which pops up when people abandon their cart. I'm thinking what I'll do is to capture the onunload event for each page of the checkout process, and that on unload I'll check to see if the user is leaving the page via one of the links/forms on the page, or by some other method. If it's by some other method, I'll pop up the survey. I'll also disable the back button. This won't capture all the abandonment, but it seems to me to be the least intrusive = least likely to popup when it's not supposed to. I'd appreciate any alternatives and any suggestions to make this less intrusive. = I-Lin Kuo Macromedia CF5 Advanced Developer Sun Certified Java 2 Programmer __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Back Button WAS: RE: checkout exit survey
The one place I would like to use it, and we have coded around it with redirectors, is during a registration process. I agree that the user wants and needs the back button but there are limited places where the path needs to be forward only and you give them a programmatic way to get back and alter previously entered information. Shawn McKee -Original Message- From: Jim Curran [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 10:16 AM To: CF-Talk Subject: RE: checkout exit survey I find it horrible that developers still try to accomplish this. The back button is part of the user's environment, and altering its behavior in any way is troublesome. I make every application back-button friendly. Just my thoughts.. - j -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 11:11 AM To: CF-Talk Subject: RE: checkout exit survey I have seen and coded lots of partial solutions but I have yet to see the true back button killer. Shawn McKee -Original Message- From: Darren Adams [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 10:01 AM To: CF-Talk Subject: RE: checkout exit survey H, I think my colleague just did that using Javascript ! Darren Adams Web Developer Mob:07759 956523 Office:01252 556220 Data + Structure = Information -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: 07 May 2002 15:57 To: CF-Talk Subject:RE: checkout exit survey I'll also disable the back button. This is my Holy Grail, how are you going to do it? Shawn McKee -Original Message- From: cf refactoring [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 9:53 AM To: CF-Talk Subject: checkout exit survey Our marketing department wants to know why people abandon the checkout process, so they've tasked IT with creating a survey which pops up when people abandon their cart. I'm thinking what I'll do is to capture the onunload event for each page of the checkout process, and that on unload I'll check to see if the user is leaving the page via one of the links/forms on the page, or by some other method. If it's by some other method, I'll pop up the survey. I'll also disable the back button. This won't capture all the abandonment, but it seems to me to be the least intrusive = least likely to popup when it's not supposed to. I'd appreciate any alternatives and any suggestions to make this less intrusive. = I-Lin Kuo Macromedia CF5 Advanced Developer Sun Certified Java 2 Programmer __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: mx i18n
This link: http://www.devx.com/xml/articles/kc1100/cox01-1.asp Shows how to do it without a DB. www.newsstand.com has implemented this technique. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 9:36 AM To: CF-Talk Subject: Re: mx i18n Yes, but other than UTF-8 encoding, is there anything that will explicitly native utf-8 is just the tip of the iceberg. this release has removed just about all the obstacles to fully i18n. haven't had enough time to play with MX I, for one, would love to be able to provide an XML file for the text for each language for a site, have it well you can do that now w/cf5 (well with a db backend anyways see http://support.tei.or.th). mx's xml support make this even easier. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Lower case file names - Was: MX and CustomTags again
Turns out there is a known problem with this and it is fixed in the next release. What started me down this path was MX not being able to see my custom tags. Now it appears that I have to lowercase all of the files on the Linux server for them to be seen. Anybody else run into this? Shawn McKee -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:04 AM To: CF-Talk Subject: RE: MX and CustomTags again Well I tried but the bug submittal blew up. I sent them an e-mail about that and will try later. -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:48 AM To: CF-Talk Subject: RE: MX and CustomTags again It must be a bug then because I am running the same version without issue. I would submit the bug and then possible reinstall beta 3 to get the custom tag path back. If you don't want to reinstall beta 3, rc 1 should be available soon. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 6:10 AM To: CF-Talk Subject: RE: MX and CustomTags again Server Details Server Product Neo Version 6,0,0,42977 Edition Enterprise Serial Number Operating System UNIX OS Version 2.4.9-21 -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 5:25 PM To: CF-Talk Subject: RE: MX and CustomTags again What version of CFMX are you running? -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:11 PM To: CF-Talk Subject: MX and CustomTags again At install the server was set to /home/cfadm/neo/CustomTags but applications couldn't find the custom tags. I checked case and location and all was correct. I deleted that path from the server and went to add it back in and now I get this error message: Unable to add custom tag path /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin. Even though the path I added was as above. I have typed it by hand and used the browse server function. I am at a loss. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: MX and CustomTags again
Server Details Server Product Neo Version 6,0,0,42977 Edition Enterprise Serial Number Operating System UNIX OS Version 2.4.9-21 -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 5:25 PM To: CF-Talk Subject: RE: MX and CustomTags again What version of CFMX are you running? -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:11 PM To: CF-Talk Subject: MX and CustomTags again At install the server was set to /home/cfadm/neo/CustomTags but applications couldn't find the custom tags. I checked case and location and all was correct. I deleted that path from the server and went to add it back in and now I get this error message: Unable to add custom tag path /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin. Even though the path I added was as above. I have typed it by hand and used the browse server function. I am at a loss. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: MX and CustomTags again
Well I tried but the bug submittal blew up. I sent them an e-mail about that and will try later. -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:48 AM To: CF-Talk Subject: RE: MX and CustomTags again It must be a bug then because I am running the same version without issue. I would submit the bug and then possible reinstall beta 3 to get the custom tag path back. If you don't want to reinstall beta 3, rc 1 should be available soon. -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 6:10 AM To: CF-Talk Subject: RE: MX and CustomTags again Server Details Server Product Neo Version 6,0,0,42977 Edition Enterprise Serial Number Operating System UNIX OS Version 2.4.9-21 -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 5:25 PM To: CF-Talk Subject: RE: MX and CustomTags again What version of CFMX are you running? -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:11 PM To: CF-Talk Subject: MX and CustomTags again At install the server was set to /home/cfadm/neo/CustomTags but applications couldn't find the custom tags. I checked case and location and all was correct. I deleted that path from the server and went to add it back in and now I get this error message: Unable to add custom tag path /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin. Even though the path I added was as above. I have typed it by hand and used the browse server function. I am at a loss. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CF Wishlist
Amen!!! Shawn McKee -Original Message- From: David Schmidt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 11:42 AM To: CF-Talk Subject: CF Wishlist Ok, Have carefully considered what I want from CF, the most striking feature I want to see is... Stop treating empty list items as null. That is a list of 3,5,,,3,2,2 should have a length of 7, instead of 5. Doing this would nearly eliminate the need for any field names like name=cost_#i#, since HTML sends back 3,5,,,3,2,2 for duplicate text fields named cost anyways. __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
MX and CustomTags again
At install the server was set to /home/cfadm/neo/CustomTags but applications couldn't find the custom tags. I checked case and location and all was correct. I deleted that path from the server and went to add it back in and now I get this error message: Unable to add custom tag path /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin. Even though the path I added was as above. I have typed it by hand and used the browse server function. I am at a loss. Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
MX and CustomTags
Why can't it find my custom tags? Running on Linux, everything looks fine in the administrator but when I try to use a custom tag I get an error: Detail ColdFusion attempted looking in the tree of installed custom tags but did not find a custom tag with this name. Message Cannot find CFML template for custom tag ... The server has been stopped and started several times, the directories are where they belong. Ideas? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: MX and CustomTags
Yes. I believe our IT folks set it up as an alias of some sort. Might that be confusing things? Shawn -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 5:01 PM To: CF-Talk Subject: RE: MX and CustomTags Did you set the custom tag path in the administrator? -Matt -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 2:31 PM To: CF-Talk Subject: MX and CustomTags Why can't it find my custom tags? Running on Linux, everything looks fine in the administrator but when I try to use a custom tag I get an error: Detail ColdFusion attempted looking in the tree of installed custom tags but did not find a custom tag with this name. Message Cannot find CFML template for custom tag ... The server has been stopped and started several times, the directories are where they belong. Ideas? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: ORACLE CLOB, single quotes double quotes turn into question m arks
On the topic of CLOB's. How do you insert it when using cfqueryparam? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: ORACLE CLOB, single quotes double quotes turn into question m arks
Since I'm using Oracle this sounds like the answer, thanks. Shawn -Original Message- From: Dave Carabetta [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:13 PM To: CF-Talk Subject: RE: ORACLE CLOB, single quotes double quotes turn into question m arks On the topic of CLOB's. How do you insert it when using cfqueryparam? I've had no trouble using the following with Oracle: cfqueryparam value=#variable_name# cfsqltype=CF_SQL_LONGVARCHAR Can't speak for other DBMS platforms though. Regards, Dave. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CSS and Netscape - was(CSS and dynamically changing classes)
It completely conflicts with the standards concept. The point is to get everyone on board with a feature rich set of standards. If, as a web designer/developer, you choose to use proprietary features of one browser then don't complain when you loose customers because they don't use the browser you prefer or when you have to code work around's to support multiple browsers. I don't know that IE is any more compliant than NS. I do feel it is more forgiving of poor programming. I typically build for NS and most everything then works in IE. Shawn McKee -Original Message- From: Valerie L. Criswell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 12:27 PM To: CF-Talk Subject: Re: CSS and Netscape - was(CSS and dynamically changing classes) This doesn't directly align with the standardization argument, but it still bespeaks a major disadvantage of NS. What about mentioning that it's difficult for us to reccommend the NS browsers to our Intranet type clients because it doesn't offer the same rich non-standard features that IE does? In those environments we can expolit IE coolness, but what does NS offer in comparision? btw, you can add my name. ~Val Criswell __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Currency Localization
The CF docs for lsCurrencyFormat says that 100,000.00 (US Style) converts as follows in Italian: Italian (Standard) Local: L. 10.000.000 International: ITL10.000.000 None: 10.000.000 lsNumber format gives me: 10,000 Although for the input I have to drop the ,. An Italian I know says that the number above would be represented as 100.000,00 in Italy. Is this a known issue with the localization functions or is it related to trying to represent US currency in a non-US localized format? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfoutput - was RE: cfset vs using cfscript
While on this topic, how about efficiency with cfoutput? It makes sense to me that this: select name=fred cfloop query=fredQ option value=cfoutput#val#/cfouputcfoutput#valDesc#/cfouput /cfloop /select is faster than this: cfoutput select name=fred cfloop query=fredQ option value=#val##valDesc# /cfloop /select /cfouput But what about these? select name=fred cfoutput query=fredQ option value=#val##valDesc# /cfoutput /select select name=fred cfloop query=fredQ option value=cfoutput#val##valDesc#/cfouput /cfloop /select Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfoutput - was RE: cfset vs using cfscript
My testing agrees with this. This flies in the face of what Chris Cortes says in his book Optimizing ColdFusion 5. Page 404. Or am I reading it wrong? Does anyone else have any beefs with this book? Jochem - thanks for pointing me at GetTickCount(). Shawn -Original Message- From: Venn, Matthew [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 11:20 AM To: CF-Talk Subject: RE: cfoutput - was RE: cfset vs using cfscript RecordSet contained 1000 results... Using Cfoutput to loop through query: 50 ms Using Cfloop contained with cfoutput tags: 50 ms Using Cfloop with cfoutput tag contained within the cfloop tags: 170 ms Matt -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 11:01 AM To: CF-Talk Subject: Re: cfoutput - was RE: cfset vs using cfscript Shawn McKee wrote: While on this topic, how about efficiency with cfoutput? It makes sense to me that this: select name=fred cfloop query=fredQ option value=cfoutput#val#/cfouputcfoutput#valDesc#/cfouput /cfloop /select is faster than this: cfoutput select name=fred cfloop query=fredQ option value=#val##valDesc# /cfloop /select /cfouput Please explain, because it doesn't make sense to me. But what about these? select name=fred cfoutput query=fredQ option value=#val##valDesc# /cfoutput /select select name=fred cfloop query=fredQ option value=cfoutput#val##valDesc#/cfouput /cfloop /select GetTickCount() is your friend. Enlighten us :) Jochem __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: listing all form variables
If you want the field names they are also in form.fieldnames. Shawn McKee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:43 AM To: CF-Talk Subject: listing all form variables Can CF output a list of all the form variables passed to a page? I vaguely remember this being possible but i don't remember how to do it. jim __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Daylight savings time
This looks promising. Shawn McKee -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 9:12 PM To: CF-Talk Subject: RE: Daylight savings time It's a huge pain. I was exploring this yesterday and found this link which might be useful. http://www.twinsun.com/tz/tz-link.htm Regards, Matthew Walker /* Cabbage Tree Creative Ltd Christchurch - New Zealand http://www.matthewwalker.net.nz/ http://www.cabbagetree.co.nz/ */ -Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Friday, 5 April 2002 10:01 a.m. To: CF-Talk Subject: Daylight savings time I have applications that deliver content in a time sensitive manner. We store times in our database in UTC (GMT). Whenever a country changes from or to standard time I catch a lot of grief because release times have to be manually updated. Anybody know of a tool, CF or otherwise, that can help me solve the problem of update the UTC stored based on some sort of location parameter. Shawn McKee __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Daylight savings time
I have applications that deliver content in a time sensitive manner. We store times in our database in UTC (GMT). Whenever a country changes from or to standard time I catch a lot of grief because release times have to be manually updated. Anybody know of a tool, CF or otherwise, that can help me solve the problem of update the UTC stored based on some sort of location parameter. Shawn McKee __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Checking an email
I build up a query where everything is applied dynamically. cfquery name=alphas datasource=#dsn# SELECT #alpha# FROM #table# ORDER BY #alpha# /cfquery Works great and returns what I want. If I use this I can loop over the query and output the contents. cfloop query=alphas cfoutput#Evaluate(alpha)#/cfoutputbr /cfloop I could use this to build a list as well but would rather use the intrinsic functions but I can't figure out what to pass to valueList. Any ideas? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Evaluating Variables from a stupid person who doesn't change subj ect (was RE: Checking an email)
-Original Message- From: Shawn McKee [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:40 PM To: CF-Talk Subject: RE: Checking an email I build up a query where everything is applied dynamically. cfquery name=alphas datasource=#dsn# SELECT #alpha# FROM #table# ORDER BY #alpha# /cfquery Works great and returns what I want. If I use this I can loop over the query and output the contents. cfloop query=alphas cfoutput#Evaluate(alpha)#/cfoutputbr /cfloop I could use this to build a list as well but would rather use the intrinsic functions but I can't figure out what to pass to valueList. Any ideas? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Another cfexecute question
Is there any way, other than reading an output file, to get a return code from a command executed with cfexecute? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFServer 5 Spooling Mail
If our e-mail server gets no response or a bad MX record when sending and e-mail this same thing happens. Your server is probably rebooting every time it tries to send mail as well. Shawn -Original Message- From: Jim Priest [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 9:23 AM To: CF-Talk Subject: Re: CFServer 5 Spooling Mail On Monday, March 25, 2002, Critz wrote: C My server seems to not be sending out mail. I've currently got over 3,000 Never had it happen but know that the spool will choke if there is a 0 byte file in the queue? I'd dig through the logs and see if anything looks odd. C Any ideas as to why this might have happened? It's Monday?! :) jim __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfexecute
In order to make our service a little faster we use caching servers around the world to store content. We want to place the content on the servers as soon as it is available and the cache owners provide a method to do this via Telnet. Does anyone have a method to run a Telnet session from within CF? A CFX presumably. If not our first solution was to create a Perl script and execute it with a cfexecute call. The problem here is that I have to sit and wait for the job to finish before moving on and that can take awhile. Is there a way to walk away from a cfexecute without ending up with a bunch of defunct jobs on the server? Shawn McKee Manager, Web Development NewsStand, Inc. 8620 Burnet Rd., Suite 100 Austin, TX 78757 USA 512-334-5100 Read newspapers and magazines from around the world in a whole new way. NewsStand delivers them to your PC without paper and without delay! Try: http://www.newsstand.com?NSEMC=EMNSI01 __ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: two SUBMIT buttons on a form?
That is why I prefer the onClick to dynamically change the form action as you suggested. Shawn McKee -Original Message- From: Scott Van Vliet [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 9:40 AM To: CF-Talk Subject: RE: two SUBMIT buttons on a form? This won't work on IE 4.5 on the Mac, and NN 4.x (both Mac and PC) are giving me problems as I am testing this right now. Has anyone else had success with NN (or IE on the Mac) and naming buttons? Thoughts? -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 7:26 AM To: CF-Talk Subject: RE: two SUBMIT buttons on a form? Yeah the name of the button is in the form scope. -Shawn Regan -Original Message- From: Scott Van Vliet [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 5:04 PM To: CF-Talk Subject: RE: two SUBMIT buttons on a form? Does that work in Netscape? -Original Message- From: Sam Roach [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 5:00 PM To: CF-Talk Subject: RE: two SUBMIT buttons on a form? you could set a name for you submit buttons. On you process page do a include based on which button was clicked. EX: form action=go.cfm input type=submit value=x1 name=click_x1 input type=submit value=x2 name=click_x2 /form -- go.cfm cfif isdefined(click_x1) cfinclude template=x1_process.cfm cfelseif isdefined(click_x2) cfinclude template=x2_process.cfm /cfif - -- Sam -Original Message- From: Ed Gordon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 4:54 PM To: CF-Talk Subject: two SUBMIT buttons on a form? Is there a simple way to have two buttons on the bottom of a form, one which goes to one .cfm and one to another, and yet have both process the entered form data on the way? I would of course label them differently, such as NEW and COPY, or for similar functions. TIA Ed Gordon FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfexecute
Thanks. The CFHTTP solution works like a champ. Shawn -Original Message- From: Joseph Thompson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:14 AM To: CF-Talk Subject: Re: cfexecute It is possible to spawn a task. Use CFEXECUTE to start a new thread. The code in that thread just goes about it's business while the calling page can continue. http://cfhub.com/forum//index.cfm?Fuseaction=ThreadTopicID=1037start=1 It is also possible (and even better in some cases) to use CFHTTP to call the worker file but set the timeout in the CFHTTP tag to like one second. Now your calling page starts the remote script... then just ignores it after the timeout. The worker thread goes about it's business as does your calling page. If not our first solution was to create a Perl script and execute it with a cfexecute call. The problem here is that I have to sit and wait for the job to finish before moving on and that can take awhile. Is there a way to walk away from a cfexecute without ending up with a bunch of defunct jobs on the server? __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Verity and PDF's
What OS? The Verity included with CF 5 won't index PDF's on a UNIX box. Shawn -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 4:04 PM To: CF-Talk Subject: RE: Verity and PDF's If they were created on a Mac, (my memory is hazy - its been 3 years for this...) using Acrobat or Distiller, I think the Mac's default is/was to save ONLY the graphic portion (not text and graphics). A simple setting change on the control panel can fix/change this. (for any new PDFs). Jerry Johnson [EMAIL PROTECTED] 03/19/02 04:47PM H that's a good question, I do not know. The graphics department does them and uploads them will have to ask. if they are from images...that would splain it thanks for the tip Jon -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 4:46 PM To: CF-Talk Subject: RE: Verity and PDF's Well, do the PDFs contain text, or are they PDFs created from images? If the PDFs were created from TIFF (or other) images, and there is no text data in the PDF, the search engine is not going to find anything useful in them. Just a thought, Jerry Johnson [EMAIL PROTECTED] 03/19/02 04:37PM Then what's the secret? The code works just fine for .doc,.xls,.ppt but NOT for .pdf! it finds all of the others EXCEPT the pdf's. no errors...just no PDF's. Jon -Original Message- From: Paul Ihrig [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 4:27 PM To: CF-Talk Subject: RE: Verity and PDF's no it is not correct it will see pdfs just fine -paul -Original Message- From: Moneymaker, Jon S CONT (WPNSTA Yorktown) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 4:10 PM To: CF-Talk Subject: Verity and PDF's I understand that the version of verity that comes with CF 4.5 will not see pdf's (is this correct?). If correct, is there a patch? or workaround with verity? thanks, Jon Moneymaker Fleet and Family Support Center, Yorktown Computer Specialist __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists