RE: When CFHTTP fails, use WGET
I use a self written java cfx, took 2 hrs to write (I'm a java n00b) and is massively faster than cfhttp, granted it's a little more simple but it works well. Using a w32 utility with cfexecute is likely to be even slower than cfhttp, I wouldn't go there to be honest. If your'e already doing it, I'd think again. Just my opinion, Craig. -Original Message- From: David Adams [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 16:31 To: CF-Talk Subject: When CFHTTP fails, use WGET On a CF 4.5 platform, I had enormous trouble using CFHTTP to access a page behind a proxy server. I got the typical Connection Failure message. After verifying my CF code, using CF-Talk and all other resources, it was clear that I was not going to be successful. Instead, I resorted to using WGET from http://www.wget.org http://www.wget.org/ . This utility has a million parameters and I have put the description at the bottom of this report. For windows users, it is best that you create an ini file and place it in the same directory as the wget binary. By the way, it is an exe that does not have to be installed, unless you want ssl which needs a few libraries. As for my CF code, I call wget with a CFEXECUTE where my code was for the CFHTTP. Hope someone finds this information useful. Dave Adams, CFUG Ottawa WGET GNU Wget is a freely available network utility to retrieve files from the World Wide Web using HTTP and FTP, the two most widely used Internet protocols. It works non-interactively, thus enabling work in the background, after having logged off. The recursive retrieval of HTML pages, as well as FTP sites is supported -- you can use Wget to make mirrors of archives and home pages, or traverse the web like a WWW robot (Wget understands /robots.txt). Wget works exceedingly well on slow or unstable connections, keeping getting the document until it is fully retrieved. Re-getting files from where it left off works on servers (both HTTP and FTP) that support it. Matching of wildcards and recursive mirroring of directories are available when retrieving via FTP. Both HTTP and FTP retrievals can be time-stamped, thus Wget can see if the remote file has changed since last retrieval and automatically retrieve the new version if it has. By default, Wget supports proxy servers, which can lighten the network load, speed up retrieval and provide access behind firewalls. However, if you are behind a firewall that requires that you use a socks style gateway, you can get the socks library and compile wget with support for socks. Most of the features are configurable, either through command-line options, or via initialization file .wgetrc. Wget allows you to install a global startup file (/etc/wgetrc on RedHat) for site settings. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Flash and CF Integration
I'm doing my first Flash and CF integration app and have a list of questions. I have to dynamically display data in 14 text boxes as well as have up to 36 dynamic lines connecting the boxes based on query results. Im not sure if this is possible with flash. I have my template done in flash but everything is on 1 layer. Do I need to put things on different layers? Can anyone tell me if this is possible? There will be at least 15 queries that have to be run to populate this template with the correct data. Any suggestions? Help? If you would like to see the fla file, please email me. TIA ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Cfpop - ordering latest first
Hello Im writing a simple mail app, and I'm looking for a way to get cfpop to list the last message received first. Im sure theres a simple way to do this that im missing, but for the life of me I cant find it! TIA Ryan ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Re: When CFHTTP fails, use WGET
Craig Dudley wrote: I use a self written java cfx, took 2 hrs to write (I'm a java n00b) and is massively faster than cfhttp, granted it's a little more simple but it works well. Using a w32 utility with cfexecute is likely to be even slower than cfhttp, I wouldn't go there to be honest. If your'e already doing it, I'd think again. agreed for simple stuff, but wget is much, much more than a simple http tool, it's a spider, it can process the files, do ftp and it's XP, it runs on linux etc... for example YAST ( the setup config install tool from suse ) uses wget for all network stuff.. z ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Writing a file with CFFILE
You mean enabled -- or doesn't disable js... This is true -- but it's the only way I know of to preserve the original format of the text, including html, and allow it to be updated after the fact. HTMLEditFormat() or any other kind of string manipulation going into the form field will change the content in some way after the first edit. So there really is no perfect solution -- either you lose the original format, or you rely on javascript which could potentially be disabled. Unless the client has JS disabled. Then this method won't work at all. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:07 PM To: CF-Talk Subject: RE: Writing a file with CFFILE Not necessarily. Assuming you want to be able to enter text areas and the like (or any html actually) in your textarea, using htmledit format will allow you to enter it once -- but never update it after the fact because when you save it the 2nd time, it's no longer html code. The email I just sent off a moment ago explains a method (afaik the only method) of preserving the content in its original format, so it's still viable as html even after it's been saved several times. Nevermind... I'm an idiot over thinking the basics... HTMLEditFormat()..! hehe, Steve -Original Message- From: Steve Reich [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:26 PM To: CF-Talk Subject: RE: Writing a file with CFFILE I'm guessing you're using MX ... Probably using setEncoding() whether you specify ISO latin or UTF-8 on the form scope on the action page will resolve the issue... I'd likely place it in the application.cfm and apply it to both form and url. Thanks! That fixed that problem. I have another one now If I call a file like this... cffile action=READ file=#page# variable=output . then display it like this textarea name=contentscfoutput#output#/cfoutput/textarea . I run into a problem if the variable output has a textarea tag contained within it. It sees the closing textarea tag in the output variable as the closing tag for the textarea used to display the variable. All code after the closing textarea is executed in the browser. Example: output = textarea name=fooThis is some text/textareabrThen some other stuff textarea name=contents'cfoutput#output#/cfoutput/textarea .equals textarea name=contents'/textareabrThen some other stuff/textarea I get a textarea with this: textarea name=fooThis is some text Then some other stuff. Kind of a bitch to explain. Help! TIA, Steve ~~~ ~~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid =4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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 s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: Locking Session Vars (CF5)
It is certainly not required anymore (under MX). You should only need to lock them for race conditions. === Raymond Camden, ColdFusion Jedi Master for Hire Email: [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Tilbrook, Peter [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:09 PM To: CF-Talk Subject: RE: Locking Session Vars (CF5) Absolutely, even under CFMX it is a good idea to keep locking. -Original Message- From: Antony Sideropoulos [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 26 November 2002 1:08 PM To: CF-Talk Subject: Locking Session Vars (CF5) Hi everyone ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: Cfpop - ordering latest first
Use the message number. cfset list=#reverse(messagenumber)# cfouput cfloop list=#Lisr# index=LoopMessagenumber Output info where LoopMessagenumber IS CFPOPQryMessagenumber /cfloop /cfoutput Rick -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 5:50 AM To: CF-Talk Subject: Cfpop - ordering latest first Hello Im writing a simple mail app, and I'm looking for a way to get cfpop to list the last message received first. Im sure theres a simple way to do this that im missing, but for the life of me I cant find it! TIA Ryan ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
clientmanagement cause Page Expired in MX
Have found that enabling clientmanagement in the application tag (in Application.cfm) in MX causes html forms to behave differently than if clientmanagment attribute is No or omitted. (Only a problem on remote, shared server; not locally.) If fill in part of a form, submit, then go back all form data is lost. (If try to go forward from there, says page has expired.) If remove the clientmanagement, form works as usualy expected. Am seeing this only on hosting company's remote, shared server (Professional MX). On my local Single IP development server, all works as expected regardless of clientmanagement. As far as I can tell, settings in the shared remote and my local are the same. As control, did same set up in CF5 and clientmangement made no difference: form behavior as usually expected. Below are two links to same form. Only difference is that first has clientmangement enabled, second one doesn't. Just submitting with a first and last name will illustrate the problem: 1. http://www.wingserv.com/testform.cfm : clientmanagement enabled, does not work as expected. 2. http://www.wingserv.com/church/testform.cfm : no clientmanagement, works as expected I realize that assuming that browsers will always *hold* form data is not always true; but, have many existing such form pages want to move to MX and want to be able to also use clientmanagement. Would appreciate any help on this as have my first site in MX almost ready to go, save for this strange behavior on remote server. Thanks E. Keith Dodd Wings of Eagles Services www.wingserv.com - [This E-mail scanned for viruses by declude AntiVirus Software] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: clientmanagement cause Page Expired in MX
Keith, Where are your client variables being stored? Registry or database? -mk -Original Message- From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 8:49 AM To: CF-Talk Subject: clientmanagement cause Page Expired in MX Have found that enabling clientmanagement in the application tag (in Application.cfm) in MX causes html forms to behave differently than if clientmanagment attribute is No or omitted. (Only a problem on remote, shared server; not locally.) If fill in part of a form, submit, then go back all form data is lost. (If try to go forward from there, says page has expired.) If remove the clientmanagement, form works as usualy expected. Am seeing this only on hosting company's remote, shared server (Professional MX). On my local Single IP development server, all works as expected regardless of clientmanagement. As far as I can tell, settings in the shared remote and my local are the same. As control, did same set up in CF5 and clientmangement made no difference: form behavior as usually expected. Below are two links to same form. Only difference is that first has clientmangement enabled, second one doesn't. Just submitting with a first and last name will illustrate the problem: 1. http://www.wingserv.com/testform.cfm : clientmanagement enabled, does not work as expected. 2. http://www.wingserv.com/church/testform.cfm : no clientmanagement, works as expected I realize that assuming that browsers will always *hold* form data is not always true; but, have many existing such form pages want to move to MX and want to be able to also use clientmanagement. Would appreciate any help on this as have my first site in MX almost ready to go, save for this strange behavior on remote server. Thanks E. Keith Dodd Wings of Eagles Services www.wingserv.com - [This E-mail scanned for viruses by declude AntiVirus Software] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Form Field validation tag -- need help (EBW)
I would probably make the default for max longer than 1 -- 20 or 50 maybe... 20 is the default length for html form fields. 50 is the default size of MS SQL Server varchar columns. I would probably also use instead of [not provided] as the default for fieldname and equalfieldname -- if len(trim(var)) is 0 then you know it wasn't provided. Doesn't look like this should be tough to convert to a UDF and I think it would likely make it faster and easier to use... cfscript function validateFormField(fName,fType,fValue) { var required = false; var fMin = 1; var fMax = 50; var eqVal = ; var eqField = ; var errormessage = ; // allow optional arguments if (arraylen(arguments) gte 4) { required = arguments[4]; } if (arraylen(arguments) gte 5) { fMin = arguments[5]; } if (arraylen(arguments) gte 6) { fMax = arguments[6]; } if (arraylen(arguments) gte 7) { eqVal = arguments[7]; } if (arraylen(arguments) gte 8) { eqField = arguments[8]; } // validate for the given field type switch (fType) { case string: { // check length of string for minimum and maximum if (len(attributes.fieldValue) lt attributes.min) { errorMessage = #attributes.fieldName# is less than the minimum #attributes.min# characters.; } else if (len(attributes.fieldValue) gt attributes.max) { errorMessage = #attributes.fieldName# is more than the maximum #attributes.max# characters.; } } break; } } return errormessage; } /cfscript cfset variables.error = validateFormField(xxx,xxx,xxx) You need a break; statement at the end of each case clause otherwise it will continue processing with the next case in the list. In any event -- that should get you going. :) s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 For some reason, code after the HTML Horizontal Line Break was omitted. Here it is again: CFPARAM name=attributes.fieldName type=string default=[not provided] CFPARAM name=attributes.fieldType type=string default=string CFPARAM name=attributes.fieldValue type=string default= CFPARAM name=attributes.min type=numeric default=1 CFPARAM name=attributes.max type=numeric default=1 CFPARAM name=attributes.required type=boolean default=No CFPARAM name=attributes.equalValue type=string default= CFPARAM name=attributes.equalFieldName type=string default=[not provided] CFPARAM name=attributes.ReturnVariable type=variableName default=errorMessage CFSET errorMessage = CFIF (attributes.required eq Yes) and (len(attributes.fieldValue) eq 0) CFSET errorMessage = #attributes.fieldName# is required. CFELSEIF (attributes.required eq No) and (len(attributes.fieldValue) eq 0) !--- Trap to make sure we don't do a false error --- CFELSE CFSWITCH expression=#attributes.fieldType# CFCASE value=string CFIF len(attributes.fieldValue) lt attributes.min CFSET errorMessage = #attributes.fieldName# is less than the minimum #attributes.min# characters. CFELSEIF len(attributes.fieldValue) gt attributes.max CFSET errorMessage = #attributes.fieldName# is more than the maximum #attributes.max# characters. /CFIF /CFCASE CFCASE value=match CFIF attributes.fieldValue neq attributes.equalValue CFSET errorMessage = #attributes.fieldName# does not match #attributes.equalFieldName#. /CFIF /CFCASE CFCASE value=integer CFIF NOT isNumeric(attributes.fieldValue) CFSET errorMessage = #attributes.fieldName# is not a number. CFELSEIF Val(attributes.fieldValue) lt Val(attributes.min) CFSET errorMessage = #attributes.fieldName# is less than minimum #attributes.min#. CFELSEIF Val(attributes.fieldValue) gt Val(attributes.max) CFSET errorMessage = #attributes.fieldName# is more than maximum #attributes.max#. CFELSEIF Val(attributes.fieldValue) neq Int(Val(attributes.fieldValue)) CFSET errorMessage = #attributes.fieldName# is not an integer. /CFIF /CFCASE CFCASE value=numeric CFIF NOT
RE: Writing a file with CFFILE
I'd agree, there's probably no perfect solution. I just wanted to point out (what, surely, everyone already knows) that relying on JavaScript can be dangerous. Personally, for double-quotes, I've always had great success by replacing all double-quotes with quot; and then reversing the replacement on the backend. I don't know that I've had to do the same for HTML content, but I would imagine that simply replacing angle brackets (or maybe even just the left angle bracket) with the appropriate entities would be sufficient. Am I overlooking something? -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 9:36 AM To: CF-Talk Subject: RE: Writing a file with CFFILE You mean enabled -- or doesn't disable js... This is true -- but it's the only way I know of to preserve the original format of the text, including html, and allow it to be updated after the fact. HTMLEditFormat() or any other kind of string manipulation going into the form field will change the content in some way after the first edit. So there really is no perfect solution -- either you lose the original format, or you rely on javascript which could potentially be disabled. Unless the client has JS disabled. Then this method won't work at all. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:07 PM To: CF-Talk Subject: RE: Writing a file with CFFILE Not necessarily. Assuming you want to be able to enter text areas and the like (or any html actually) in your textarea, using htmledit format will allow you to enter it once -- but never update it after the fact because when you save it the 2nd time, it's no longer html code. The email I just sent off a moment ago explains a method (afaik the only method) of preserving the content in its original format, so it's still viable as html even after it's been saved several times. Nevermind... I'm an idiot over thinking the basics... HTMLEditFormat()..! hehe, Steve -Original Message- From: Steve Reich [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:26 PM To: CF-Talk Subject: RE: Writing a file with CFFILE I'm guessing you're using MX ... Probably using setEncoding() whether you specify ISO latin or UTF-8 on the form scope on the action page will resolve the issue... I'd likely place it in the application.cfm and apply it to both form and url. Thanks! That fixed that problem. I have another one now If I call a file like this... cffile action=READ file=#page# variable=output . then display it like this textarea name=contentscfoutput#output#/cfoutput/textarea . I run into a problem if the variable output has a textarea tag contained within it. It sees the closing textarea tag in the output variable as the closing tag for the textarea used to display the variable. All code after the closing textarea is executed in the browser. Example: output = textarea name=fooThis is some text/textareabrThen some other stuff textarea name=contents'cfoutput#output#/cfoutput/textarea .equals textarea name=contents'/textareabrThen some other stuff/textarea I get a textarea with this: textarea name=fooThis is some text Then some other stuff. Kind of a bitch to explain. Help! TIA, Steve ~~~ ~~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid =4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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 s. isaac dealey
Re: Can a form pass a structured variable to target template? (EBW)
If my form has 15 fields in it, rather than passing all 15 fields to the target template, could I... - create a struct variable (e.g. UserProfile), - name each form field as a variable under the struct (e.g., UserProfile.FirstName, UserProfile.LastName) - still be able to use the struct variable (UserProfile) in the target template?? I've tried this, but it doesn't seem to work. Any assistance would be great! A form can only pass string values to the action page -- so the only way to pass a complex variable such as a structure to the next page via a form field is to serialize it into some form of xml packet ( which is a string ) place the packet in the form field and then deserialize it on the action page. Prior to MX this was done with the cfwddx tag. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: clientmanagement cause Page Expired in MX
this would be cool to know. however, I remember reading somewherethat once stuff is posted from a form to a page, if you try to go back to that page, that was derived based on a form posting, that those values will no longer be there. is this true? ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 9:49 AM To: CF-Talk Subject: clientmanagement cause Page Expired in MX Have found that enabling clientmanagement in the application tag (in Application.cfm) in MX causes html forms to behave differently than if clientmanagment attribute is No or omitted. (Only a problem on remote, shared server; not locally.) If fill in part of a form, submit, then go back all form data is lost. (If try to go forward from there, says page has expired.) If remove the clientmanagement, form works as usualy expected. Am seeing this only on hosting company's remote, shared server (Professional MX). On my local Single IP development server, all works as expected regardless of clientmanagement. As far as I can tell, settings in the shared remote and my local are the same. As control, did same set up in CF5 and clientmangement made no difference: form behavior as usually expected. Below are two links to same form. Only difference is that first has clientmangement enabled, second one doesn't. Just submitting with a first and last name will illustrate the problem: 1. http://www.wingserv.com/testform.cfm : clientmanagement enabled, does not work as expected. 2. http://www.wingserv.com/church/testform.cfm : no clientmanagement, works as expected I realize that assuming that browsers will always *hold* form data is not always true; but, have many existing such form pages want to move to MX and want to be able to also use clientmanagement. Would appreciate any help on this as have my first site in MX almost ready to go, save for this strange behavior on remote server. Thanks E. Keith Dodd Wings of Eagles Services www.wingserv.com - [This E-mail scanned for viruses by declude AntiVirus Software] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: clientmanagement cause Page Expired in MX
database. for me. ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 9:57 AM To: CF-Talk Subject: RE: clientmanagement cause Page Expired in MX Keith, Where are your client variables being stored? Registry or database? -mk -Original Message- From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 8:49 AM To: CF-Talk Subject: clientmanagement cause Page Expired in MX Have found that enabling clientmanagement in the application tag (in Application.cfm) in MX causes html forms to behave differently than if clientmanagment attribute is No or omitted. (Only a problem on remote, shared server; not locally.) If fill in part of a form, submit, then go back all form data is lost. (If try to go forward from there, says page has expired.) If remove the clientmanagement, form works as usualy expected. Am seeing this only on hosting company's remote, shared server (Professional MX). On my local Single IP development server, all works as expected regardless of clientmanagement. As far as I can tell, settings in the shared remote and my local are the same. As control, did same set up in CF5 and clientmangement made no difference: form behavior as usually expected. Below are two links to same form. Only difference is that first has clientmangement enabled, second one doesn't. Just submitting with a first and last name will illustrate the problem: 1. http://www.wingserv.com/testform.cfm : clientmanagement enabled, does not work as expected. 2. http://www.wingserv.com/church/testform.cfm : no clientmanagement, works as expected I realize that assuming that browsers will always *hold* form data is not always true; but, have many existing such form pages want to move to MX and want to be able to also use clientmanagement. Would appreciate any help on this as have my first site in MX almost ready to go, save for this strange behavior on remote server. Thanks E. Keith Dodd Wings of Eagles Services www.wingserv.com - [This E-mail scanned for viruses by declude AntiVirus Software] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Cfpop - ordering latest first
In CF5, I use QofQ to handle this: CFPOP ACTION=GETHEADERONLY NAME=TempGetEmail ... CFQUERY NAME=GetEmail DBTYPE=query SELECT * FROMTempGetEmail ORDER BYMessageNumber /CFQUERY With this, you can sort by any CFPOP field. Chris Lofback Sr. Web Developer TRX Integration 28051 US 19 N., Ste. C Clearwater, FL 33761 www.trxi.com -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 6:50 AM To: CF-Talk Subject: Cfpop - ordering latest first Hello Im writing a simple mail app, and I'm looking for a way to get cfpop to list the last message received first. Im sure theres a simple way to do this that im missing, but for the life of me I cant find it! TIA Ryan ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Cfpop - ordering latest first
-Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 5:50 AM To: CF-Talk Subject: Cfpop - ordering latest first Hello Im writing a simple mail app, and I'm looking for a way to get cfpop to list the last message received first. Im sure theres a simple way to do this that im missing, but for the life of me I cant find it! Something like this ought to work: cfif cfpop.recordcount cfloop index=x from=#cfpop.recordcount# to=1 div#cfpop.subject[x]#/div /cfloop /cfif hth s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
clientmanagement cause Page Expired in MX
Both local and remote set to cookies. Host did try other settings, but none seemed to make a difference. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: Java in CF (CFMX)
Joe Your example, does, in fact work. Of course, I needed to modify the Java code to specify a different database -- none of the MS databases appear to work on Mac OS X (or and non-win platform) :) This is enough to get me started -- I will add the flexibility to the interface so it will work with any JDBC driver, and any MetaData request. Thanks I have never written a wrapper for a Java program it helps to start with a working example, and concise instructions. You, likely, saved me several hours of frustration. I think that implementing and deploying this example is a good illustration of the value of inline Java. Someone new to Java, like myself, could take your example and drop it into a simpleCF template, between cfjava,,,/ tags. Then they could add the CFML portion in the same template. More likely, you would have provided a complete, standalone CF Template with the Java code, inline. Then they could save and test the template without concern for: 1) Separating your file into its Java and CFML component parts. 2) Where to put the Java source 3) How to compile the Java class 4) Which Java compiler options to use and their proper settings -- things such as: Usage: javac options source files where possible options include: -gGenerate all debugging info -g:none Generate no debugging info -g:{lines,vars,source}Generate only some debugging info -OOptimize; may hinder debugging or enlarge class file -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath path Specify where to find user class files -sourcepath pathSpecify where to find input source files -bootclasspath path Override location of bootstrap class files -extdirs dirs Override location of installed extensions -d directorySpecify where to place generated class files -encoding encoding Specify character encoding used by source files -target release Generate class files for specific VM version 5) Figuring out the command line interface or some Java IDE, just to be able to compile the Java program. 6) Where to put the Java class 7) Where to get a Java compiler if one isn't installed on their platform (Mac OS X comes, standard, with a JDK, but many platforms do not). Sure, these are things that the new Java person will need to learn eventually. But, is it necessary to overload the new Java user with all this minutiae, just to try a simple Java example -- I think not! Is there value to the Java developer (new or experienced) to inline code -- Yes, I've noted some advantages to the lay person. But, Joe, who is experienced with Java, could have benefitted from inline Java too. I suspect he would have saved time preparing/testing his example and the instructions how to deploy it : 1) He, simply, could have provided a single CF template with the Java inline; rather than a Java program and a separate CF template. 2) He could have avoided typing the instructions to compile and deploy the Java program 3) The flow of the example, likely, would be better, better understood, and easier to explain and document within the code (both CF and Java Comments) 4) He'd have a single file, a complete example, with no special instructions -- Just Save it and Run it as you would any other CF template. Is there significant [enough] value, that MM should consider implementing inline Java -- I think so -- what it boils down to is this: inline Java is an improved interface to many Java programs -- much the way that cfquery (and the associated cfoutput, cfloop, etc.) tags are an improvement to many SQL databases. Here are some advantages to MM. 1) The CFMX product could have another productivity advantage for developers, and resellers... hmm... I wonder if IBM could use this feature 2) Macromedia could more easily, and more effectively include many Java examples in the code they distribute, 3) Inline Java could facilitate writing, testing and documenting wrappers for many Java programs (whether deployed inline or not). 4) It could be easier to reconcile Java constructs of strong typing, nulls, etc, with the absence these constructs in CFML. In fact. inline Java, could provide a very nice means to help pass data between CFML and Java -- something like cfjavaparam where you could specify typing, nulls, etc. in a way meaningful to both CFML and Java. 5) If
Can a form pass a structured variable to target template? (EBW)
Was trying to use the WDDX method to pass a long form set. Would only pass a random 10 fields. Found by searching on this forum that this is a known MX bug. Workaround is to Duplicate the form first, then serialize with WDDX. Worked fine sending the total form as structure via wddx IF did the duplicate step Keith Dodd ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re: Flash and CF Integration
Yes, this can be done in Flash. We're working on a very similar application where it maps items to a grid and then draws connectors between related items. Regarding layers, the first thing to remember is that they are only used for z-order and organization. AFAIK, they don't actually exist in the final SWF (only in the FLA). That said, it is crucial to app maintainability that all items be on a separate later, or at the very least all unrelated items (so a box and it's outline can be on a layer, but other boxes should be on a different layer). However, for dynamic layout like this, it's far easier to add items to the timeline programmatically with attachMovie--when dealing with this many boxes, you should find it improves maintainability. BTW, since these questions are not really related to CF, this thread would probably be best served on a Flash forum. http://webforums.macromedia.com/flash or http://chattyfig.figleaf.com/ HTH, Sam At 06:16 AM 11/26/2002, you wrote: I'm doing my first Flash and CF integration app and have a list of questions. I have to dynamically display data in 14 text boxes as well as have up to 36 dynamic lines connecting the boxes based on query results. Im not sure if this is possible with flash. I have my template done in flash but everything is on 1 layer. Do I need to put things on different layers? Can anyone tell me if this is possible? There will be at least 15 queries that have to be run to populate this template with the correct data. Any suggestions? Help? If you would like to see the fla file, please email me. TIA ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
RE: Flash and CF Integration
Also, please feel free to check out www.devmx.com for more info on Flash/CF integration. Regards, Dennis -Original Message- From: Samuel R. Neff [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 9:48 AM To: CF-Talk Subject: Re: Flash and CF Integration Yes, this can be done in Flash. We're working on a very similar application where it maps items to a grid and then draws connectors between related items. Regarding layers, the first thing to remember is that they are only used for z-order and organization. AFAIK, they don't actually exist in the final SWF (only in the FLA). That said, it is crucial to app maintainability that all items be on a separate later, or at the very least all unrelated items (so a box and it's outline can be on a layer, but other boxes should be on a different layer). However, for dynamic layout like this, it's far easier to add items to the timeline programmatically with attachMovie--when dealing with this many boxes, you should find it improves maintainability. BTW, since these questions are not really related to CF, this thread would probably be best served on a Flash forum. http://webforums.macromedia.com/flash or http://chattyfig.figleaf.com/ HTH, Sam At 06:16 AM 11/26/2002, you wrote: I'm doing my first Flash and CF integration app and have a list of questions. I have to dynamically display data in 14 text boxes as well as have up to 36 dynamic lines connecting the boxes based on query results. Im not sure if this is possible with flash. I have my template done in flash but everything is on 1 layer. Do I need to put things on different layers? Can anyone tell me if this is possible? There will be at least 15 queries that have to be run to populate this template with the correct data. Any suggestions? Help? If you would like to see the fla file, please email me. TIA ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Writing a file with CFFILE
Used properly, HTMLEditFormat() does not change the content. If you type Hello Goodbye, into a form field, once submitted, it becomes: Hello Goodbye So, this is what you insert into the database. Now, when you *display* the contents of that form field, *if* you *don't* want the browser to parse it, then use HTMLEditFormat(). For instance, let's say we let the user edit that text again in a form field. Using HTMLEditFormat() within the value attribute of a form field, you will get: quot;Hello amp; Goodbyequot; *But* when the form is submitted, you get: Hello Goodbye Using HTMLEditFormat() *is* the perfect, easy solution! -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 7:36 AM To: CF-Talk Subject: RE: Writing a file with CFFILE You mean enabled -- or doesn't disable js... This is true -- but it's the only way I know of to preserve the original format of the text, including html, and allow it to be updated after the fact. HTMLEditFormat() or any other kind of string manipulation going into the form field will change the content in some way after the first edit. So there really is no perfect solution -- either you lose the original format, or you rely on javascript which could potentially be disabled. Unless the client has JS disabled. Then this method won't work at all. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:07 PM To: CF-Talk Subject: RE: Writing a file with CFFILE Not necessarily. Assuming you want to be able to enter text areas and the like (or any html actually) in your textarea, using htmledit format will allow you to enter it once -- but never update it after the fact because when you save it the 2nd time, it's no longer html code. The email I just sent off a moment ago explains a method (afaik the only method) of preserving the content in its original format, so it's still viable as html even after it's been saved several times. Nevermind... I'm an idiot over thinking the basics... HTMLEditFormat()..! hehe, Steve -Original Message- From: Steve Reich [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:26 PM To: CF-Talk Subject: RE: Writing a file with CFFILE I'm guessing you're using MX ... Probably using setEncoding() whether you specify ISO latin or UTF-8 on the form scope on the action page will resolve the issue... I'd likely place it in the application.cfm and apply it to both form and url. Thanks! That fixed that problem. I have another one now If I call a file like this... cffile action=READ file=#page# variable=output . then display it like this textarea name=contentscfoutput#output#/cfoutput/textarea . I run into a problem if the variable output has a textarea tag contained within it. It sees the closing textarea tag in the output variable as the closing tag for the textarea used to display the variable. All code after the closing textarea is executed in the browser. Example: output = textarea name=fooThis is some text/textareabrThen some other stuff textarea name=contents'cfoutput#output#/cfoutput/textarea .equals textarea name=contents'/textareabrThen some other stuff/textarea I get a textarea with this: textarea name=fooThis is some text Then some other stuff. Kind of a bitch to explain. Help! TIA, Steve ~~~ ~~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid =4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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 s. isaac dealey954-776-0046 new epoch
Re: Macromedia-Talk list
I for one have too many lists to check. I do not read the CF Community list as it is because the ratio of noise is so high. Reading the CF Macromedia list would be very unlikely. I know that you and Michael do a really good job here and have a well organized system of lists and what is allowed on each, but I really want issues with MM to be here on CF-Talk becaues I would be a lot more likely to see them and be able to help out. Just my $.02 _ Matt Brown Community Manager Macromedia (415) 706-6543 [EMAIL PROTECTED] For daily Dreamweaver news and info: http://shorterlink.com/?KB8LAL ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Membership system?
Hi, does anyone know of a free CF application to register members and let them fill in info about themselves? Info needs to be photo, email, etc. Ideally there would be a search facility to find members as well. Basically it's a contact database I suppose. I have had a look through the developers exchange but only found commercial stuff, and as this is something I'm doing as a favour for a club there is zero budget, I'd do it myself but I'm snowed under with work at the moment and they want it fast. Thanks in advance! ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Re: Can a form pass a structured variable to target template? (EBW)
Look into using wddx and the cfwddx tag. In short you would create a structure, use the cfwddx to convert it to wddx, use a hidden variable to pass the wddx packet to the receiving page and then use cfwddx to convert the packet back to a structure. Its exactly what wddx and cfwddx is designed for. HTH, Sam - Original Message - From: Erik Britt-Webb [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 2:52 AM Subject: Can a form pass a structured variable to target template? (EBW) If my form has 15 fields in it, rather than passing all 15 fields to the target template, could I... - create a struct variable (e.g. UserProfile), - name each form field as a variable under the struct (e.g., UserProfile.FirstName, UserProfile.LastName) - still be able to use the struct variable (UserProfile) in the target template?? I've tried this, but it doesn't seem to work. Any assistance would be great! Thanks, Erik ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: Can a form pass a structured variable to target template? (EBW)
Look into using wddx and the cfwddx tag. In short you would create a structure, use the cfwddx to convert it to wddx, use a hidden variable to pass the wddx packet to the receiving page and then use cfwddx to convert the packet back to a structure. Its exactly what wddx and cfwddx is designed for. I don't know if I'd say passing complex data in form fields is exactly what it was intended for. Wddx has a number of uses -- I only wish someone would revive the project and bring it up to speed with other xml languages. I remember seeing someone at a CFUG meeting demonstrate how they had used cfhttp and wddx to retrieve queries from a remote ColdFusion server. Normally you would just connect to the sql server from the local CF Server, however, they had firewall issues or somesuch which prevented this from being a viable solution. Granted the cfhttp and wddx packet were slower, but it was also a low-volume application, so it seemed to work fairly well... s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
E-Commerce, and Variations
Hello all, Wanted to pick your brains on some DB related stuff. Currently working on an E-Commerce site and deal with product variations (size / color - which relates to price) and was curious to know if anyone has any suggestions on table structure to best handle this, or know of any good sites with reference. Logically what takes place is a certain size + color combination constitutes the configuration of the product they are purchasing, as well as determines the price. Just trying to get the relationship to make sense. Thanks all, -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. http://www.4guys.com We create websites that make you a hero. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Can a form pass a structured variable to target template? (EB W)
Why dont you take those reigns :-) -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 16:16 To: CF-Talk Subject: Re: Can a form pass a structured variable to target template? (EBW) Look into using wddx and the cfwddx tag. In short you would create a structure, use the cfwddx to convert it to wddx, use a hidden variable to pass the wddx packet to the receiving page and then use cfwddx to convert the packet back to a structure. Its exactly what wddx and cfwddx is designed for. I don't know if I'd say passing complex data in form fields is exactly what it was intended for. Wddx has a number of uses -- I only wish someone would revive the project and bring it up to speed with other xml languages. I remember seeing someone at a CFUG meeting demonstrate how they had used cfhttp and wddx to retrieve queries from a remote ColdFusion server. Normally you would just connect to the sql server from the local CF Server, however, they had firewall issues or somesuch which prevented this from being a viable solution. Granted the cfhttp and wddx packet were slower, but it was also a low-volume application, so it seemed to work fairly well... s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
RE: Can a form pass a structured variable to target template? (EB W)
There is an article on using CFWDDX for serializing and deserializing complex data types for use with client variables. Although this isn't exactly what the original author of this thread is looking to do, the source code examples, etc. will likely be very helpful. It's in 2002 Volume 4, Issue 4, page 32, by Tsara Borsting ([EMAIL PROTECTED]). If you don't have the magazine you can probably access it online. -Grant Szabo -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 16:16 To: CF-Talk Subject: Re: Can a form pass a structured variable to target template? (EBW) Look into using wddx and the cfwddx tag. In short you would create a structure, use the cfwddx to convert it to wddx, use a hidden variable to pass the wddx packet to the receiving page and then use cfwddx to convert the packet back to a structure. Its exactly what wddx and cfwddx is designed for. I don't know if I'd say passing complex data in form fields is exactly what it was intended for. Wddx has a number of uses -- I only wish someone would revive the project and bring it up to speed with other xml languages. I remember seeing someone at a CFUG meeting demonstrate how they had used cfhttp and wddx to retrieve queries from a remote ColdFusion server. Normally you would just connect to the sql server from the local CF Server, however, they had firewall issues or somesuch which prevented this from being a viable solution. Granted the cfhttp and wddx packet were slower, but it was also a low-volume application, so it seemed to work fairly well... s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: E-Commerce, and Variations
Actually, I just went through the exact same scenario. Basically you'll need to create an item table, a attribute_group table, an attribute table, and an item_attribute_lookup table. Store your basic attribute types in the attribute_group table... size, color, weight. Then in the attribute table you'll have a fk to the attribute_group table and store the value of the attribute here (pink, blue, green). Then the item_attribute_lookup stores your attribute id (fk from attribute table) and the ItemID (fk from item table) as well as any other information you need for each individual item. You can store price, inventory or anything else here. I'd also recommend putting an Active_Ind field on the item_attribute_lookup table as well. Hope this helps, Jason -Original Message- From: Chris Alvarado [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:24 AM To: CF-Talk Subject: E-Commerce, and Variations Hello all, Wanted to pick your brains on some DB related stuff. Currently working on an E-Commerce site and deal with product variations (size / color - which relates to price) and was curious to know if anyone has any suggestions on table structure to best handle this, or know of any good sites with reference. Logically what takes place is a certain size + color combination constitutes the configuration of the product they are purchasing, as well as determines the price. Just trying to get the relationship to make sense. Thanks all, -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. http://www.4guys.com We create websites that make you a hero. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
Re: E-Commerce, and Variations
Here is the configuration that siteDirector uses The below system allows you to re-use option groups on multiple products. Product Table === productID, title, sku ect.. 1prod xxx, Option Table optionID, optionName 1Color 2Size OptionItemTable === itemId, optionID, itemName, itemPrice 11Red0.00 21Blue2.00 31Green 3.00 42Small 1.00 52Medium 2.00 ProductOptions (This table combines the options and products) === productID, optionID 11 1 2 Hope this helps! Paul Giesenhagen QuillDesign - Original Message - From: Chris Alvarado [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 10:24 AM Subject: E-Commerce, and Variations Hello all, Wanted to pick your brains on some DB related stuff. Currently working on an E-Commerce site and deal with product variations (size / color - which relates to price) and was curious to know if anyone has any suggestions on table structure to best handle this, or know of any good sites with reference. Logically what takes place is a certain size + color combination constitutes the configuration of the product they are purchasing, as well as determines the price. Just trying to get the relationship to make sense. Thanks all, -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. http://www.4guys.com We create websites that make you a hero. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Can a form pass a structured variable to target template? (EB W)
Forgot to say, that's in CFDJ -- ColdFusion Developers Journal. Quoting [EMAIL PROTECTED]: There is an article on using CFWDDX for serializing and deserializing complex data types for use with client variables. Although this isn't exactly what the original author of this thread is looking to do, the source code examples, etc. will likely be very helpful. It's in 2002 Volume 4, Issue 4, page 32, by Tsara Borsting ([EMAIL PROTECTED]). If you don't have the magazine you can probably access it online. -Grant Szabo -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 16:16 To: CF-Talk Subject: Re: Can a form pass a structured variable to target template? (EBW) Look into using wddx and the cfwddx tag. In short you would create a structure, use the cfwddx to convert it to wddx, use a hidden variable to pass the wddx packet to the receiving page and then use cfwddx to convert the packet back to a structure. Its exactly what wddx and cfwddx is designed for. I don't know if I'd say passing complex data in form fields is exactly what it was intended for. Wddx has a number of uses -- I only wish someone would revive the project and bring it up to speed with other xml languages. I remember seeing someone at a CFUG meeting demonstrate how they had used cfhttp and wddx to retrieve queries from a remote ColdFusion server. Normally you would just connect to the sql server from the local CF Server, however, they had firewall issues or somesuch which prevented this from being a viable solution. Granted the cfhttp and wddx packet were slower, but it was also a low-volume application, so it seemed to work fairly well... s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Can a form pass a structured variable to target template? (EB W)
Unless I am really mistaken, you didn't mention what magazine. Presumably it is the ColdFusion Developer's Journal? At 10:40 AM 11/26/2002 -0600, you wrote: There is an article on using CFWDDX for serializing and deserializing complex data types for use with client variables. Although this isn't exactly what the original author of this thread is looking to do, the source code examples, etc. will likely be very helpful. It's in 2002 Volume 4, Issue 4, page 32, by Tsara Borsting ([EMAIL PROTECTED]). If you don't have the magazine you can probably access it online. -Grant Szabo -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 16:16 To: CF-Talk Subject: Re: Can a form pass a structured variable to target template? (EBW) Look into using wddx and the cfwddx tag. In short you would create a structure, use the cfwddx to convert it to wddx, use a hidden variable to pass the wddx packet to the receiving page and then use cfwddx to convert the packet back to a structure. Its exactly what wddx and cfwddx is designed for. I don't know if I'd say passing complex data in form fields is exactly what it was intended for. Wddx has a number of uses -- I only wish someone would revive the project and bring it up to speed with other xml languages. I remember seeing someone at a CFUG meeting demonstrate how they had used cfhttp and wddx to retrieve queries from a remote ColdFusion server. Normally you would just connect to the sql server from the local CF Server, however, they had firewall issues or somesuch which prevented this from being a viable solution. Granted the cfhttp and wddx packet were slower, but it was also a low-volume application, so it seemed to work fairly well... s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
(ot) java help
I'm working on learning Java ... have come to my first issue that I can't solve myself. Any java programmers out there want to answer questions from me? I tried finding a java discussion list for beginners and the only one I found seems to be too inactive to be much help. H. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: (ot) java help
I'll give it a go :O) -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 17:07 To: CF-Talk Subject: (ot) java help I'm working on learning Java ... have come to my first issue that I can't solve myself. Any java programmers out there want to answer questions from me? I tried finding a java discussion list for beginners and the only one I found seems to be too inactive to be much help. H. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: (ot) java help
I'll help when I can. Matthew Small IT Supervisor Showstopper National Dance Competitions 3660 Old Kings Hwy Murrells Inlet, SC 29576 843-357-1847 http://www.showstopperonline.com -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:12 PM To: CF-Talk Subject: RE: (ot) java help I'll give it a go :O) -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 17:07 To: CF-Talk Subject: (ot) java help I'm working on learning Java ... have come to my first issue that I can't solve myself. Any java programmers out there want to answer questions from me? I tried finding a java discussion list for beginners and the only one I found seems to be too inactive to be much help. H. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: Writing a file with CFFILE
Yes...it is. I am using just as you described and it is perfect! Thanks, Steve -Original Message- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:51 AM To: CF-Talk Subject: RE: Writing a file with CFFILE Used properly, HTMLEditFormat() does not change the content. If you type Hello Goodbye, into a form field, once submitted, it becomes: Hello Goodbye So, this is what you insert into the database. Now, when you *display* the contents of that form field, *if* you *don't* want the browser to parse it, then use HTMLEditFormat(). For instance, let's say we let the user edit that text again in a form field. Using HTMLEditFormat() within the value attribute of a form field, you will get: quot;Hello amp; Goodbyequot; *But* when the form is submitted, you get: Hello Goodbye Using HTMLEditFormat() *is* the perfect, easy solution! -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 7:36 AM To: CF-Talk Subject: RE: Writing a file with CFFILE You mean enabled -- or doesn't disable js... This is true -- but it's the only way I know of to preserve the original format of the text, including html, and allow it to be updated after the fact. HTMLEditFormat() or any other kind of string manipulation going into the form field will change the content in some way after the first edit. So there really is no perfect solution -- either you lose the original format, or you rely on javascript which could potentially be disabled. Unless the client has JS disabled. Then this method won't work at all. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:07 PM To: CF-Talk Subject: RE: Writing a file with CFFILE Not necessarily. Assuming you want to be able to enter text areas and the like (or any html actually) in your textarea, using htmledit format will allow you to enter it once -- but never update it after the fact because when you save it the 2nd time, it's no longer html code. The email I just sent off a moment ago explains a method (afaik the only method) of preserving the content in its original format, so it's still viable as html even after it's been saved several times. Nevermind... I'm an idiot over thinking the basics... HTMLEditFormat()..! hehe, Steve -Original Message- From: Steve Reich [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:26 PM To: CF-Talk Subject: RE: Writing a file with CFFILE I'm guessing you're using MX ... Probably using setEncoding() whether you specify ISO latin or UTF-8 on the form scope on the action page will resolve the issue... I'd likely place it in the application.cfm and apply it to both form and url. Thanks! That fixed that problem. I have another one now If I call a file like this... cffile action=READ file=#page# variable=output . then display it like this textarea name=contentscfoutput#output#/cfoutput/textarea . I run into a problem if the variable output has a textarea tag contained within it. It sees the closing textarea tag in the output variable as the closing tag for the textarea used to display the variable. All code after the closing textarea is executed in the browser. Example: output = textarea name=fooThis is some text/textareabrThen some other stuff textarea name=contents'cfoutput#output#/cfoutput/textarea .equals textarea name=contents'/textareabrThen some other stuff/textarea I get a textarea with this: textarea name=fooThis is some text Then some other stuff. Kind of a bitch to explain. Help! TIA, Steve ~~~ ~~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid =4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~~ ~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index. cfm?method=subscribeforumid=4 FAQ:
OT: Freeware mail servers
Howdy. I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. Thanks, Timothy Heald Assistant Webmaster Overseas Security Advisory Council U.S. Department of State ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: (ot) java help
There are a good few of us learning java on here, just ask away. With the advent of CFMX, java questions are hardly OT. Craig. -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 17:07 To: CF-Talk Subject: (ot) java help I'm working on learning Java ... have come to my first issue that I can't solve myself. Any java programmers out there want to answer questions from me? I tried finding a java discussion list for beginners and the only one I found seems to be too inactive to be much help. H. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re: Freeware mail servers
ArgoSoft Mail Serverfree...fast installsuper simple GUI...no command line nonsense...up and running in 5 minutes ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:22 AM Subject: OT: Freeware mail servers Howdy. I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. Thanks, Timothy Heald Assistant Webmaster Overseas Security Advisory Council U.S. Department of State ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re: Freeware mail servers
I use Mercury Mail server (by the developer of Pegasus Email client), and Cerebus FTP server. Both are free and run on Win2K. Mercury has a good reputation. I like Cerebus b/c it allows setting directory access permissions based on user rights, but I can't say one way or another how hacker proof it is. --- Regards, Bob Haroche O n P o i n t S o l u t i o n s www.OnPointSolutions.com ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: (ot) java help
I read a java book once. :) Rob http://treebeard.sourceforge.net http://ruinworld.sourceforge.net Scientia Est Potentia -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 9:07 AM To: CF-Talk Subject: (ot) java help I'm working on learning Java ... have come to my first issue that I can't solve myself. Any java programmers out there want to answer questions from me? I tried finding a java discussion list for beginners and the only one I found seems to be too inactive to be much help. H. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RegEx Question
I'm not sure why I can not get this to work. What am I doing wrong? I want to replace !--s1--*!--e1-- TIA, Duane cfset myStr1 = blah !--s1--x1 y2!--e1-- blah cfset myStr2 = abc cfset newStr = ReReplaceNoCase(myStr1, !--s1--[*]!--e1--, !--s1--#myStr2#!--e1--) ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Re: Freeware mail servers
Tim I have not found a freeware mail server for the Windows platform, but I have both a Windows server and a Linux server, and on the Linux box, both of the very popular Sendmail and Postfix are open source (free) and both are very easily configurable for anti-spam and anti-virus scanning. There are even several very good open source anti-virus programs for the Linux box as well. On a Windows Box, I run Imail 7.0 which is getting more expensive with each upgrade, but is a lot easier to administer than, say Exchange. I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open source, the purchase gives me a year of free updates, and that is really convenient. The Sendmail and PostFix mail servers (as well as apache and a couple of database products) are installed by default. I use Webmin for remote administration. For a windows FTP server I use SERV-U = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:22 AM Subject: OT: Freeware mail servers | Howdy. | | I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. | | Thanks, | | Timothy Heald | Assistant Webmaster | Overseas Security Advisory Council | U.S. Department of State | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Freeware mail servers
Anyone use Argosoft's email server? 88$ - nice features. It seems reasonable to me - and it comes with web mail (if you want). -mk -Original Message- From: samcfug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:45 AM To: CF-Talk Subject: Re: Freeware mail servers Tim I have not found a freeware mail server for the Windows platform, but I have both a Windows server and a Linux server, and on the Linux box, both of the very popular Sendmail and Postfix are open source (free) and both are very easily configurable for anti-spam and anti-virus scanning. There are even several very good open source anti-virus programs for the Linux box as well. On a Windows Box, I run Imail 7.0 which is getting more expensive with each upgrade, but is a lot easier to administer than, say Exchange. I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open source, the purchase gives me a year of free updates, and that is really convenient. The Sendmail and PostFix mail servers (as well as apache and a couple of database products) are installed by default. I use Webmin for remote administration. For a windows FTP server I use SERV-U = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:22 AM Subject: OT: Freeware mail servers | Howdy. | | I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. | | Thanks, | | Timothy Heald | Assistant Webmaster | Overseas Security Advisory Council | U.S. Department of State | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Freeware mail servers
Thanks for all the advice people. I will look into them when I get home tonight. I really want to run a Linux box eventually, but until I can run my licenses for CF and SQL Server on them I will have to stick with M$ products :) Thanks Tim -Original Message- From: samcfug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:45 PM To: CF-Talk Subject: Re: Freeware mail servers Tim I have not found a freeware mail server for the Windows platform, but I have both a Windows server and a Linux server, and on the Linux box, both of the very popular Sendmail and Postfix are open source (free) and both are very easily configurable for anti-spam and anti-virus scanning. There are even several very good open source anti-virus programs for the Linux box as well. On a Windows Box, I run Imail 7.0 which is getting more expensive with each upgrade, but is a lot easier to administer than, say Exchange. I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open source, the purchase gives me a year of free updates, and that is really convenient. The Sendmail and PostFix mail servers (as well as apache and a couple of database products) are installed by default. I use Webmin for remote administration. For a windows FTP server I use SERV-U = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:22 AM Subject: OT: Freeware mail servers | Howdy. | | I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. | | Thanks, | | Timothy Heald | Assistant Webmaster | Overseas Security Advisory Council | U.S. Department of State | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: RegEx Question
I'll explain why this doesn't work. !--s1--[*]!--e1-- This replaces !--s1-- followed by anything followed by !--e1--. The problem is that Regexs are greedy so this replaces !--s1-- followed by anything _including_ !--e1-- What you want is to replace !--s1-- followed by anything UNTIL !--e1--. So you need to do something like !--s1--[^(!--e1--)] - (pseudocode...) Justin -Original Message- From: Duane Boudreau [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 17:37 To: CF-Talk Subject: RegEx Question I'm not sure why I can not get this to work. What am I doing wrong? I want to replace !--s1--*!--e1-- TIA, Duane cfset myStr1 = blah !--s1--x1 y2!--e1-- blah cfset myStr2 = abc cfset newStr = ReReplaceNoCase(myStr1, !--s1--[*]!--e1--, !--s1--#myStr2#!--e1--) ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: Freeware mail servers
Serv-U is an awesome FTP server product. Its the best $40 I've ever spent. -Original Message- From: samcfug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:45 PM To: CF-Talk Subject: Re: Freeware mail servers Tim I have not found a freeware mail server for the Windows platform, but I have both a Windows server and a Linux server, and on the Linux box, both of the very popular Sendmail and Postfix are open source (free) and both are very easily configurable for anti-spam and anti-virus scanning. There are even several very good open source anti-virus programs for the Linux box as well. On a Windows Box, I run Imail 7.0 which is getting more expensive with each upgrade, but is a lot easier to administer than, say Exchange. I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open source, the purchase gives me a year of free updates, and that is really convenient. The Sendmail and PostFix mail servers (as well as apache and a couple of database products) are installed by default. I use Webmin for remote administration. For a windows FTP server I use SERV-U = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:22 AM Subject: OT: Freeware mail servers | Howdy. | | I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. | | Thanks, | | Timothy Heald | Assistant Webmaster | Overseas Security Advisory Council | U.S. Department of State | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
CFDIRECTORY FILTER MX
I need a little help with the CFDIRECTORY tag... This used to work fine in cold fusion 5. But in MX it returns to many files. CFDIRECTORY DIRECTORY=d:\inetpub\wwwroot\tempdir\ NAME=myDirectory FILTER=*0?.html SORT=datelastmodified, name ASC This returns the same results as *0*.html ... But What I need it only one character between the '0' and the '.html'. EX: myreport01.html -- I want this file listed myreport01_data.html -- But not this one.. myreport02.html -- I want this file listed myreport02_data.html -- not this one.. -- Sam ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
Re: Freeware mail servers
yup..I use ArgoSoft...but mine was free not $88 Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mark A. Kruger - CFG [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:49 AM Subject: RE: Freeware mail servers Anyone use Argosoft's email server? 88$ - nice features. It seems reasonable to me - and it comes with web mail (if you want). -mk -Original Message- From: samcfug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:45 AM To: CF-Talk Subject: Re: Freeware mail servers Tim I have not found a freeware mail server for the Windows platform, but I have both a Windows server and a Linux server, and on the Linux box, both of the very popular Sendmail and Postfix are open source (free) and both are very easily configurable for anti-spam and anti-virus scanning. There are even several very good open source anti-virus programs for the Linux box as well. On a Windows Box, I run Imail 7.0 which is getting more expensive with each upgrade, but is a lot easier to administer than, say Exchange. I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open source, the purchase gives me a year of free updates, and that is really convenient. The Sendmail and PostFix mail servers (as well as apache and a couple of database products) are installed by default. I use Webmin for remote administration. For a windows FTP server I use SERV-U = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:22 AM Subject: OT: Freeware mail servers | Howdy. | | I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. | | Thanks, | | Timothy Heald | Assistant Webmaster | Overseas Security Advisory Council | U.S. Department of State | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: Freeware mail servers
I host a very large web site on my RedHat box, and it does an ODBC connection to SQL2000 on the Windows machine. Works like a charm, and very stable. It also runs CF 5.0 just fine. = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:48 AM Subject: RE: Freeware mail servers | Thanks for all the advice people. I will look into them when I get home tonight. | | I really want to run a Linux box eventually, but until I can run my licenses for CF and SQL Server on them I will have to stick with M$ products :) | | Thanks | Tim | | -Original Message- | From: samcfug [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, November 26, 2002 12:45 PM | To: CF-Talk | Subject: Re: Freeware mail servers | | | Tim | I have not found a freeware mail server for the Windows platform, but I have | both a Windows server and a Linux server, and on the Linux box, both of the very | popular Sendmail and Postfix are open source (free) and both are very easily | configurable for anti-spam and anti-virus scanning. There are even several very | good open source anti-virus programs for the Linux box as well. | | On a Windows Box, I run Imail 7.0 which is getting more expensive with each | upgrade, but is a lot easier to administer than, say Exchange. | | I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open | source, the purchase gives me a year of free updates, and that is really | convenient. The Sendmail and PostFix mail servers (as well as apache and a | couple of database products) are installed by default. | I use Webmin for remote administration. | | For a windows FTP server I use SERV-U | | | = | Douglas White | group Manager | mailto:[EMAIL PROTECTED] | http://www.samcfug.org | = | - Original Message - | From: Timothy Heald [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Tuesday, November 26, 2002 11:22 AM | Subject: OT: Freeware mail servers | | | | Howdy. | | | | I am running a server at my house (adsl, speak easy, sweet) I have all the | server software I want except for a mail server. I am looking for something, | free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a | whole bunch of command line junk, yeah I am lazy, I know). Also a decent | freeware FTP server would be nice, I am using IIS FTP and it is junk. | | | | Thanks, | | | | Timothy Heald | | Assistant Webmaster | | Overseas Security Advisory Council | | U.S. Department of State | | | | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Freeware mail servers
Yeah, But I would need another box :) -Original Message- From: samcfug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:58 PM To: CF-Talk Subject: Re: Freeware mail servers I host a very large web site on my RedHat box, and it does an ODBC connection to SQL2000 on the Windows machine. Works like a charm, and very stable. It also runs CF 5.0 just fine. = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:48 AM Subject: RE: Freeware mail servers | Thanks for all the advice people. I will look into them when I get home tonight. | | I really want to run a Linux box eventually, but until I can run my licenses for CF and SQL Server on them I will have to stick with M$ products :) | | Thanks | Tim | | -Original Message- | From: samcfug [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, November 26, 2002 12:45 PM | To: CF-Talk | Subject: Re: Freeware mail servers | | | Tim | I have not found a freeware mail server for the Windows platform, but I have | both a Windows server and a Linux server, and on the Linux box, both of the very | popular Sendmail and Postfix are open source (free) and both are very easily | configurable for anti-spam and anti-virus scanning. There are even several very | good open source anti-virus programs for the Linux box as well. | | On a Windows Box, I run Imail 7.0 which is getting more expensive with each | upgrade, but is a lot easier to administer than, say Exchange. | | I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open | source, the purchase gives me a year of free updates, and that is really | convenient. The Sendmail and PostFix mail servers (as well as apache and a | couple of database products) are installed by default. | I use Webmin for remote administration. | | For a windows FTP server I use SERV-U | | | = | Douglas White | group Manager | mailto:[EMAIL PROTECTED] | http://www.samcfug.org | = | - Original Message - | From: Timothy Heald [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Tuesday, November 26, 2002 11:22 AM | Subject: OT: Freeware mail servers | | | | Howdy. | | | | I am running a server at my house (adsl, speak easy, sweet) I have all the | server software I want except for a mail server. I am looking for something, | free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a | whole bunch of command line junk, yeah I am lazy, I know). Also a decent | freeware FTP server would be nice, I am using IIS FTP and it is junk. | | | | Thanks, | | | | Timothy Heald | | Assistant Webmaster | | Overseas Security Advisory Council | | U.S. Department of State | | | | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Freeware mail servers
Bryan, Reading the docs it indicates that to support multiple domains (meaning the same username on more than one) I need the pro version. Still seems reasonable though. -mk -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:52 AM To: CF-Talk Subject: Re: Freeware mail servers yup..I use ArgoSoft...but mine was free not $88 Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mark A. Kruger - CFG [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:49 AM Subject: RE: Freeware mail servers Anyone use Argosoft's email server? 88$ - nice features. It seems reasonable to me - and it comes with web mail (if you want). -mk -Original Message- From: samcfug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:45 AM To: CF-Talk Subject: Re: Freeware mail servers Tim I have not found a freeware mail server for the Windows platform, but I have both a Windows server and a Linux server, and on the Linux box, both of the very popular Sendmail and Postfix are open source (free) and both are very easily configurable for anti-spam and anti-virus scanning. There are even several very good open source anti-virus programs for the Linux box as well. On a Windows Box, I run Imail 7.0 which is getting more expensive with each upgrade, but is a lot easier to administer than, say Exchange. I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open source, the purchase gives me a year of free updates, and that is really convenient. The Sendmail and PostFix mail servers (as well as apache and a couple of database products) are installed by default. I use Webmin for remote administration. For a windows FTP server I use SERV-U = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:22 AM Subject: OT: Freeware mail servers | Howdy. | | I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. | | Thanks, | | Timothy Heald | Assistant Webmaster | Overseas Security Advisory Council | U.S. Department of State | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
Processing .htm files as .cfm
Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Writing a file with CFFILE
umm... no ... Try this input type=text name=name value=#htmleditformat(myvar)# Then type 'Jim the Man davis' into that form field, drop it into a persistent variable or a database, retrieve it from that location and populate the form with it (as above), submit the form and save it to the same place. It _does_ change the content. You wind up with 'Jim quot;the Manquot; Davis' as your content. I've seen people sometimes use ReplaceNoCase() to convert quot; and other html entities into double-quotes on the action page, but then no-one can enter an html entity in the form field, because those get converted. It's a lose-lose situation. Same story with textareas. textarea name=myhtmlcfoutput#mytextarea#/cfoutput/textarea Do the same thing you did with the text field here, only instead of double-quotes, this time enter 'textarea name=somethingelse/textarea' into the field. After you've edited it once, you no longer have html content you now have lt;textarea name=quot;somethingelsequot;gt;lt;/textareagt; ... I don't make this stuff up. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Yes...it is. I am using just as you described and it is perfect! Thanks, Steve -Original Message- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:51 AM To: CF-Talk Subject: RE: Writing a file with CFFILE Used properly, HTMLEditFormat() does not change the content. If you type Hello Goodbye, into a form field, once submitted, it becomes: Hello Goodbye So, this is what you insert into the database. Now, when you *display* the contents of that form field, *if* you *don't* want the browser to parse it, then use HTMLEditFormat(). For instance, let's say we let the user edit that text again in a form field. Using HTMLEditFormat() within the value attribute of a form field, you will get: quot;Hello amp; Goodbyequot; *But* when the form is submitted, you get: Hello Goodbye Using HTMLEditFormat() *is* the perfect, easy solution! -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 7:36 AM To: CF-Talk Subject: RE: Writing a file with CFFILE You mean enabled -- or doesn't disable js... This is true -- but it's the only way I know of to preserve the original format of the text, including html, and allow it to be updated after the fact. HTMLEditFormat() or any other kind of string manipulation going into the form field will change the content in some way after the first edit. So there really is no perfect solution -- either you lose the original format, or you rely on javascript which could potentially be disabled. Unless the client has JS disabled. Then this method won't work at all. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:07 PM To: CF-Talk Subject: RE: Writing a file with CFFILE Not necessarily. Assuming you want to be able to enter text areas and the like (or any html actually) in your textarea, using htmledit format will allow you to enter it once -- but never update it after the fact because when you save it the 2nd time, it's no longer html code. The email I just sent off a moment ago explains a method (afaik the only method) of preserving the content in its original format, so it's still viable as html even after it's been saved several times. Nevermind... I'm an idiot over thinking the basics... HTMLEditFormat()..! hehe, Steve -Original Message- From: Steve Reich [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:26 PM To: CF-Talk Subject: RE: Writing a file with CFFILE I'm guessing you're using MX ... Probably using setEncoding() whether you specify ISO latin or UTF-8 on the form scope on the action page will resolve the issue... I'd likely place it in the application.cfm and apply it to both form and url. Thanks! That fixed that problem. I have another one now If I call a file like this... cffile action=READ file=#page# variable=output . then display it like this textarea name=contentscfoutput#output#/cfoutput/textarea . I run into a problem if the variable output has a textarea tag contained within it. It sees the closing textarea tag in the output variable as the closing tag for the textarea used to display the variable. All code after the closing textarea is executed in the browser. Example: output = textarea name=fooThis is some
Re: Freeware mail servers
A..that makes sense. I was using it for 1 client (i.e. 1 domain) so he could have mail while in development ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mark A. Kruger - CFG [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 10:01 AM Subject: RE: Freeware mail servers Bryan, Reading the docs it indicates that to support multiple domains (meaning the same username on more than one) I need the pro version. Still seems reasonable though. -mk -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:52 AM To: CF-Talk Subject: Re: Freeware mail servers yup..I use ArgoSoft...but mine was free not $88 Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mark A. Kruger - CFG [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 9:49 AM Subject: RE: Freeware mail servers Anyone use Argosoft's email server? 88$ - nice features. It seems reasonable to me - and it comes with web mail (if you want). -mk -Original Message- From: samcfug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:45 AM To: CF-Talk Subject: Re: Freeware mail servers Tim I have not found a freeware mail server for the Windows platform, but I have both a Windows server and a Linux server, and on the Linux box, both of the very popular Sendmail and Postfix are open source (free) and both are very easily configurable for anti-spam and anti-virus scanning. There are even several very good open source anti-virus programs for the Linux box as well. On a Windows Box, I run Imail 7.0 which is getting more expensive with each upgrade, but is a lot easier to administer than, say Exchange. I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open source, the purchase gives me a year of free updates, and that is really convenient. The Sendmail and PostFix mail servers (as well as apache and a couple of database products) are installed by default. I use Webmin for remote administration. For a windows FTP server I use SERV-U = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:22 AM Subject: OT: Freeware mail servers | Howdy. | | I am running a server at my house (adsl, speak easy, sweet) I have all the server software I want except for a mail server. I am looking for something, free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a whole bunch of command line junk, yeah I am lazy, I know). Also a decent freeware FTP server would be nice, I am using IIS FTP and it is junk. | | Thanks, | | Timothy Heald | Assistant Webmaster | Overseas Security Advisory Council | U.S. Department of State | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Writing a file with CFFILE
textarea name=myhtmlcfoutput#mytextarea#/cfoutput/textarea Oops... I left out the htmleditformat() textarea name=myhtmlcfoutput#htmleditformat(mytextarea)#/cfoutput/textarea Isaac ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
isDefined() finesse
cfif isDefined(Form.SerNum#i#) at first I thought it would be isDefined(evaluate(form.serNum#i#)) BUT what you had worked fine when i put it in CF 5. for a test I did this... form name=foo action=test.cfm method=post input type=hidden name=serNum1 value=foo input type=submit value=go /form cfset i =1 cfif isDefined(form.serNum#i#) foo! /cfif and after submitting the form, I received foo! as my output. -jc ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Processing .htm files as .cfm
Hi Paul: This is actually a setting in your web server software. Assuming you use IIS, you will go into your web site's Properties Home Directory Configuration, and on the Mappings tab you'll notice all the various extensions your web server processes and the path to the application or library that processes it. Scroll down to .cfm or .cfml, and copy the settings you find there to the .html or .htm (one or the other, or both) extensions. This way you tell IIS to point .htm/.html to ColdFusion for processing. HTH, --Dave ### David Notik Digital202, LLC Imagination gone digital. Web: www.digital202.com E-mail: [EMAIL PROTECTED] Office: (206) 575-1717 Mobile: (206) 351-3948 ### -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:05 AM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Server Problems When Code is Not Locked (was RE: Application vari ables)
Here is a case study in the use of locks around session and application variables. Read on, at the end I have a few questions to the great minds and gurus of this list (especially Raymond Camden). The project I am working on right now is the rewrite of an application which never should have gone into production in the first place. The application was written three years ago and errors abound (common messages shown below): - Error Diagnostic Information unknown error condition unknown error while executing a tag - Or: - Request cancelled or ignored by serverServer busy or unable to fulfill request. The server is unable to fulfill your request due to extremely high traffic or an unexpected internal error. - We see at least 50 of these in the application log daily, much more around election time when traffic skyrockets. Every once in a while I also see a PCode error, but I don't have the syntax in front of me. The app runs on NT 4 with CF4.5 and makes extensive use of application and session variables. By extensive, I mean it has large structures contained in the application scope and calls data from them 10 - 80 times per page. I looked at the CPU usage for Cold Fusion to determine the total amount of data in the application scope, and saw it go up from about 3k to 89000k just when the application loads. So there is a lot of data, but that should not be a big issue - the app is running on a pretty powerful server. The challenge, it would seem, is to have the code access the data properly. The code possesses no locks anywhere (!). What I am doing is exclusively locking all of the application and session variables when they are set, and putting readonly locks around these variables whenever they are read. My code looks like this: cflock scope=session type=readOnly timeout=10 cfif NOT isdefined(application.regional_development_orgs) cfset needs_init = 1 /cfif /cflock cfif needs_init eq 1 cflock name=data_detailed_smobe_data throwontimeout=Yes timeout=10 type=EXCLUSIVE cfset temp = structNew() cfloop from=1 to=#listlen(application.state_names_list)# index=dex cfset temp2 = structInsert(temp, listgetat(application.state_names_list, dex), ) /cfloop ... do more stuff ... cfset application.regional_development_orgs = structCopy(temp) cfset needs_init = 0 /cflock /cfif I am taking the entire session scope and setting it to a request variable at the top of every page, and calling these request variables when needed (doing it this way...): cflock scope=session type=readonly timeout=20 cfset request.session = structCopy(session) /cflock cfoutput#request.session.state_name#/cfoutput .. Calling variables from the request scope instead of session I am doing something similar with application variables by putting specific structures in the request scope on pages where they are used, a la: cflock scope=SESSION type=READONLY timeout=20 cfset request.senate_demographic_data = structCopy(application.senate_demographic_data[request.session.state]) /cflock cfoutput#request.senate_demographic_data[request.session.state_name][min_ bus]#/cfoutput .. Calling variables from the request scope instead of application My question is, does it sound like I am addressing the core problem or am I just enhancing the code? Could the real problem be with the amount of data in the application scope, or is there something else I am not thinking of? Does anyone have any advice on how to pinpoint the exact cause of the problems I am running into (or have any experience with applications using this much data in shared memory)? Am I writing these locks as efficiently as possible? Should I be thinking about working with my sysadmin to fine-tune the server, and, if so, what kinds of things should I be looking for? I am about halfway done with locking down the code, and haven't run into the same problems with the rewritten code. The server has frozen several times and required me to restart Cold Fusion server, but this could be attributed to the old code. While I am confident I am going to end up with a superior product in the end, I don't want to end up with egg on my face when the new version goes live because I got fixated on locks ... Any ideas would be appreciated. Thanks, M ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
RE: Processing .htm files as .cfm
You have to change the IIS settings. Under the Home Directory tab: Click on Configuration. Then find the cfm extension and copy the Executable Path. Then change the htm path to read the same. Fred -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
Re: RegEx Question
I'm not sure why I can not get this to work. What am I doing wrong? I want to replace !--s1--*!--e1-- TIA, Duane cfset myStr1 = blah !--s1--x1 y2!--e1-- blah cfset myStr2 = abc cfset newStr = ReReplaceNoCase(myStr1, !--s1--[*]!--e1--, !--s1--#myStr2#!--e1--) Hey Duane, You might want to check out [EMAIL PROTECTED] To answer your question, * means zero or more, so you have to place it after what you want zero or more of... so something like this: cfset newStr = REReplaceNoCase(myStr1,^(.*!--s1--).*(!--e1--.*)$,\1#myStr2#\2) Ought to get you what you want. translated, this expression means start at the beginning of the string (^), find zero or more of anything (.*) followed by !--s1--, followed by anything (.*) followed by !--e1-- followed by anything (.*) to the end of the string ($). Then replace what was found with the first part of the string (\1) -- this is called a backreference and it mirrors what is in the first pair of parenthesis in the expression, followed by my new string, followed by the last part of the string. hth s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: RegEx Question
-Original Message- From: Duane Boudreau [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 12:37 PM To: CF-Talk Subject: RegEx Question I'm not sure why I can not get this to work. What am I doing wrong? I want to replace !--s1--*!--e1-- TIA, Duane cfset myStr1 = blah !--s1--x1 y2!--e1-- blah cfset myStr2 = abc cfset newStr = ReReplaceNoCase(myStr1, !--s1--[*]!--e1--, !--s1--#myStr2#!--e1--) I may be rusty, but here goes... I'm not sure if the string [*] actually means anything - the Asterisk is not a wildcard in RegExs, it's an instance marker (in this case meaning zero or more occurances). The dot is the wildcard for any chracter so this .* might be better. This would make the above RegEx: !--s1--.*!--e1-- Also Regexs in CF are greedy - in short this means that the above would result in the following this conversation (basically): 1) Starting at the beginning of the string, find !--s1-- 2) Okay, found it. Next I have to find all characters. 3) Next, since I just had to find all characters, starting at the END of the string (and moving backwards), find !--e1--. In short if your string was this: blah !--s1--x1 y2!--e1-- blah blah !--s1--x1 y2!--e1-- blah That regex would return this: !--s1--x1 y2!--e1-- blah blah !--s1--x1 y2!--e1-- It would find the first !--s1-- and the LAST !--e1--. There are at least two ways out of this. 1) If the end will ALWAYS be !--e1-- you can add that as a refuse or not clause to your expression as in: !--s1--[.^(!--e1--)]* What (I think) that says is find anything (the dot) that's NOT (the carat) the following subexpression. I think that should work in every version of CF that offer RegExs. 2) Only if you're using CFMX (you didn't say) then you can instruct CF to use minimal-matching (also known as non-greedy matching) by modifying the instance character with a question mark. So, the example from above would be: !--s1--.*?!--e1-- Or possibly !--s1--[.]*?!--e1-- I'm not 100% sure. Again - this can only used in CFMX (and it's so very freaking cool) so your CF version makes a big difference. I hope this helps, Jim Davis ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Server Problems When Code is Not Locked (was RE: Application vari ables)
You are trying to fix one problem at a time, and that's all you can do to pinpoint the problem unless there are firm indicators that the problem lies elsewhere. My opinion is that you're on the right track - but don't be surprised if there are other problems as well. You still have to fix these locking problems even if they aren't the main problem. Matthew Small IT Supervisor Showstopper National Dance Competitions 3660 Old Kings Hwy Murrells Inlet, SC 29576 843-357-1847 http://www.showstopperonline.com -Original Message- From: Haggerty, Mike [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:08 PM To: CF-Talk Subject: Server Problems When Code is Not Locked (was RE: Application vari ables) Here is a case study in the use of locks around session and application variables. Read on, at the end I have a few questions to the great minds and gurus of this list (especially Raymond Camden). The project I am working on right now is the rewrite of an application which never should have gone into production in the first place. The application was written three years ago and errors abound (common messages shown below): - Error Diagnostic Information unknown error condition unknown error while executing a tag - Or: - Request cancelled or ignored by serverServer busy or unable to fulfill request. The server is unable to fulfill your request due to extremely high traffic or an unexpected internal error. - We see at least 50 of these in the application log daily, much more around election time when traffic skyrockets. Every once in a while I also see a PCode error, but I don't have the syntax in front of me. The app runs on NT 4 with CF4.5 and makes extensive use of application and session variables. By extensive, I mean it has large structures contained in the application scope and calls data from them 10 - 80 times per page. I looked at the CPU usage for Cold Fusion to determine the total amount of data in the application scope, and saw it go up from about 3k to 89000k just when the application loads. So there is a lot of data, but that should not be a big issue - the app is running on a pretty powerful server. The challenge, it would seem, is to have the code access the data properly. The code possesses no locks anywhere (!). What I am doing is exclusively locking all of the application and session variables when they are set, and putting readonly locks around these variables whenever they are read. My code looks like this: cflock scope=session type=readOnly timeout=10 cfif NOT isdefined(application.regional_development_orgs) cfset needs_init = 1 /cfif /cflock cfif needs_init eq 1 cflock name=data_detailed_smobe_data throwontimeout=Yes timeout=10 type=EXCLUSIVE cfset temp = structNew() cfloop from=1 to=#listlen(application.state_names_list)# index=dex cfset temp2 = structInsert(temp, listgetat(application.state_names_list, dex), ) /cfloop ... do more stuff ... cfset application.regional_development_orgs = structCopy(temp) cfset needs_init = 0 /cflock /cfif I am taking the entire session scope and setting it to a request variable at the top of every page, and calling these request variables when needed (doing it this way...): cflock scope=session type=readonly timeout=20 cfset request.session = structCopy(session) /cflock cfoutput#request.session.state_name#/cfoutput . Calling variables from the request scope instead of session I am doing something similar with application variables by putting specific structures in the request scope on pages where they are used, a la: cflock scope=SESSION type=READONLY timeout=20 cfset request.senate_demographic_data = structCopy(application.senate_demographic_data[request.session.state]) /cflock cfoutput#request.senate_demographic_data[request.session.state_name][ min_ bus]#/cfoutput . Calling variables from the request scope instead of application My question is, does it sound like I am addressing the core problem or am I just enhancing the code? Could the real problem be with the amount of data in the application scope, or is there something else I am not thinking of? Does anyone have any advice on how to pinpoint the exact cause of the problems I am running into (or have any experience with applications using this much data in shared memory)? Am I writing these locks as efficiently as possible? Should I be thinking about working with my sysadmin to fine-tune the server, and, if so, what kinds of things should I be looking for? I am about halfway done with locking down the code, and haven't run into the same problems with the rewritten code. The server has frozen several times and required me to restart Cold Fusion server, but this could be attributed to the old code. While I am confident I am going to end up with a superior product in the end, I don't want to end up with egg on my face when the new version goes live because I got fixated on locks ... Any ideas
RE: isDefined() finesse
Because the isdefined function doesn't care what the value of the variable you are passing you don't need to use the evaluate function. However if you wanted to output that value you would have to use something like: cfoutput#Evaluate(form.serNum#i#)#/cfoutput -Original Message- From: j cc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 9:12 AM To: CF-Talk Subject: isDefined() finesse cfif isDefined(Form.SerNum#i#) at first I thought it would be isDefined(evaluate(form.serNum#i#)) BUT what you had worked fine when i put it in CF 5. for a test I did this... form name=foo action=test.cfm method=post input type=hidden name=serNum1 value=foo input type=submit value=go /form cfset i =1 cfif isDefined(form.serNum#i#) foo! /cfif and after submitting the form, I received foo! as my output. -jc ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
PHP resource
PHP has probably the best online documentation around. Every question I've had, from coding to installation, has been covered by their docs. http://php.net as far as how different, i'd say it's closer to asp than cf, mainly b/c of the code and logic flows, but knowing cf it's very easy to pick up php, at least at a base level. -jc ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
RE: Writing a file with CFFILE
This is wrong. Are you, per chance, using htmlEditFormat() in the database query? -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:05 AM To: CF-Talk Subject: RE: Writing a file with CFFILE umm... no ... Try this input type=text name=name value=#htmleditformat(myvar)# Then type 'Jim the Man davis' into that form field, drop it into a persistent variable or a database, retrieve it from that location and populate the form with it (as above), submit the form and save it to the same place. It _does_ change the content. You wind up with 'Jim quot;the Manquot; Davis' as your content. I've seen people sometimes use ReplaceNoCase() to convert quot; and other html entities into double-quotes on the action page, but then no-one can enter an html entity in the form field, because those get converted. It's a lose-lose situation. Same story with textareas. textarea name=myhtmlcfoutput#mytextarea#/cfoutput/textarea Do the same thing you did with the text field here, only instead of double-quotes, this time enter 'textarea name=somethingelse/textarea' into the field. After you've edited it once, you no longer have html content you now have lt;textarea name=quot;somethingelsequot;gt;lt;/textareagt; ... I don't make this stuff up. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Yes...it is. I am using just as you described and it is perfect! Thanks, Steve -Original Message- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:51 AM To: CF-Talk Subject: RE: Writing a file with CFFILE Used properly, HTMLEditFormat() does not change the content. If you type Hello Goodbye, into a form field, once submitted, it becomes: Hello Goodbye So, this is what you insert into the database. Now, when you *display* the contents of that form field, *if* you *don't* want the browser to parse it, then use HTMLEditFormat(). For instance, let's say we let the user edit that text again in a form field. Using HTMLEditFormat() within the value attribute of a form field, you will get: quot;Hello amp; Goodbyequot; *But* when the form is submitted, you get: Hello Goodbye Using HTMLEditFormat() *is* the perfect, easy solution! -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 7:36 AM To: CF-Talk Subject: RE: Writing a file with CFFILE You mean enabled -- or doesn't disable js... This is true -- but it's the only way I know of to preserve the original format of the text, including html, and allow it to be updated after the fact. HTMLEditFormat() or any other kind of string manipulation going into the form field will change the content in some way after the first edit. So there really is no perfect solution -- either you lose the original format, or you rely on javascript which could potentially be disabled. Unless the client has JS disabled. Then this method won't work at all. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:07 PM To: CF-Talk Subject: RE: Writing a file with CFFILE Not necessarily. Assuming you want to be able to enter text areas and the like (or any html actually) in your textarea, using htmledit format will allow you to enter it once -- but never update it after the fact because when you save it the 2nd time, it's no longer html code. The email I just sent off a moment ago explains a method (afaik the only method) of preserving the content in its original format, so it's still viable as html even after it's been saved several times. Nevermind... I'm an idiot over thinking the basics... HTMLEditFormat()..! hehe, Steve -Original Message- From: Steve Reich [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:26 PM To: CF-Talk Subject: RE: Writing a file with CFFILE I'm guessing you're using MX ... Probably using setEncoding() whether you specify ISO latin or UTF-8 on the form scope on the action page will resolve the issue... I'd likely place it in the application.cfm and apply it to both form and url. Thanks! That fixed that problem. I have another one now If I call a file like this... cffile action=READ file=#page# variable=output . then display it like this textarea
RE: Writing a file with CFFILE
Actually yes. Run this code in a blank page and save all day. Check the results in studio. As was my original problem, you are over thinking this. This is exactly what HTMLEditFormat() was designed for. Hope this clear up the confusion !--- Snip --- cfif isDefined('form.fieldnames') cffile action=WRITE file=#PATH_TRANSLATED# output=#form.display# addnewline=Yes /cfif cffile action=READ file=#PATH_TRANSLATED# variable=output form name=frmDisplay action=cfoutput#SCRIPT_NAME#/cfoutput method=post textarea name=display style=width:500px;height:400pxcfoutput#HTMLEditFormat(output)#/cfoutpu t/textareabr input type=submit value=Update /form !--- Snip --- Steve -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: RE: Writing a file with CFFILE umm... no ... Try this input type=text name=name value=#htmleditformat(myvar)# Then type 'Jim the Man davis' into that form field, drop it into a persistent variable or a database, retrieve it from that location and populate the form with it (as above), submit the form and save it to the same place. It _does_ change the content. You wind up with 'Jim quot;the Manquot; Davis' as your content. I've seen people sometimes use ReplaceNoCase() to convert quot; and other html entities into double-quotes on the action page, but then no-one can enter an html entity in the form field, because those get converted. It's a lose-lose situation. Same story with textareas. textarea name=myhtmlcfoutput#mytextarea#/cfoutput/textarea Do the same thing you did with the text field here, only instead of double-quotes, this time enter 'textarea name=somethingelse/textarea' into the field. After you've edited it once, you no longer have html content you now have lt;textarea name=quot;somethingelsequot;gt;lt;/textareagt; ... I don't make this stuff up. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Yes...it is. I am using just as you described and it is perfect! Thanks, Steve -Original Message- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:51 AM To: CF-Talk Subject: RE: Writing a file with CFFILE Used properly, HTMLEditFormat() does not change the content. If you type Hello Goodbye, into a form field, once submitted, it becomes: Hello Goodbye So, this is what you insert into the database. Now, when you *display* the contents of that form field, *if* you *don't* want the browser to parse it, then use HTMLEditFormat(). For instance, let's say we let the user edit that text again in a form field. Using HTMLEditFormat() within the value attribute of a form field, you will get: quot;Hello amp; Goodbyequot; *But* when the form is submitted, you get: Hello Goodbye Using HTMLEditFormat() *is* the perfect, easy solution! -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 7:36 AM To: CF-Talk Subject: RE: Writing a file with CFFILE You mean enabled -- or doesn't disable js... This is true -- but it's the only way I know of to preserve the original format of the text, including html, and allow it to be updated after the fact. HTMLEditFormat() or any other kind of string manipulation going into the form field will change the content in some way after the first edit. So there really is no perfect solution -- either you lose the original format, or you rely on javascript which could potentially be disabled. Unless the client has JS disabled. Then this method won't work at all. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 11:07 PM To: CF-Talk Subject: RE: Writing a file with CFFILE Not necessarily. Assuming you want to be able to enter text areas and the like (or any html actually) in your textarea, using htmledit format will allow you to enter it once -- but never update it after the fact because when you save it the 2nd time, it's no longer html code. The email I just sent off a moment ago explains a method (afaik the only method) of preserving the content in its original format, so it's still viable as html even after it's been saved several times. Nevermind... I'm an idiot over thinking the basics... HTMLEditFormat()..! hehe, Steve -Original Message- From: Steve Reich [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:26 PM To: CF-Talk Subject: RE: Writing a file with CFFILE I'm guessing you're using MX ... Probably using setEncoding()
PRN and NUL.cfm Attacks?
Has anyone else seen any of these attacks coming across their servers? Someone has been scanning several of the sites on our server for: /nul.cfm and /prn.cfm Information on the PRN Vulnerability: http://packetstormsecurity.nl/9906-exploits/windows.prn.flaw.txt Information on the NUL Vulnerability: http://www.securiteam.com/windowsntfocus/5LP0C0K75M.html Any information appreciated, Joshua Miller ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: Server Problems When Code is Not Locked (was RE: Application vari ables)
One thing along those lines, look for calls to cfx_ tags. Often these were not written with good memory management practices and I always lock calls to those also. Kind Regards - Mike Brunt, CTO Webapper Blog http://www.webapper.net Web site http://www.webapper.com Downey CA Office 562.243.6255 AIM - webappermb Web Application Specialists -Original Message- From: Matthew Small [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:21 AM To: CF-Talk Subject: RE: Server Problems When Code is Not Locked (was RE: Application vari ables) You are trying to fix one problem at a time, and that's all you can do to pinpoint the problem unless there are firm indicators that the problem lies elsewhere. My opinion is that you're on the right track - but don't be surprised if there are other problems as well. You still have to fix these locking problems even if they aren't the main problem. Matthew Small IT Supervisor Showstopper National Dance Competitions 3660 Old Kings Hwy Murrells Inlet, SC 29576 843-357-1847 http://www.showstopperonline.com -Original Message- From: Haggerty, Mike [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:08 PM To: CF-Talk Subject: Server Problems When Code is Not Locked (was RE: Application vari ables) Here is a case study in the use of locks around session and application variables. Read on, at the end I have a few questions to the great minds and gurus of this list (especially Raymond Camden). The project I am working on right now is the rewrite of an application which never should have gone into production in the first place. The application was written three years ago and errors abound (common messages shown below): - Error Diagnostic Information unknown error condition unknown error while executing a tag - Or: - Request cancelled or ignored by serverServer busy or unable to fulfill request. The server is unable to fulfill your request due to extremely high traffic or an unexpected internal error. - We see at least 50 of these in the application log daily, much more around election time when traffic skyrockets. Every once in a while I also see a PCode error, but I don't have the syntax in front of me. The app runs on NT 4 with CF4.5 and makes extensive use of application and session variables. By extensive, I mean it has large structures contained in the application scope and calls data from them 10 - 80 times per page. I looked at the CPU usage for Cold Fusion to determine the total amount of data in the application scope, and saw it go up from about 3k to 89000k just when the application loads. So there is a lot of data, but that should not be a big issue - the app is running on a pretty powerful server. The challenge, it would seem, is to have the code access the data properly. The code possesses no locks anywhere (!). What I am doing is exclusively locking all of the application and session variables when they are set, and putting readonly locks around these variables whenever they are read. My code looks like this: cflock scope=session type=readOnly timeout=10 cfif NOT isdefined(application.regional_development_orgs) cfset needs_init = 1 /cfif /cflock cfif needs_init eq 1 cflock name=data_detailed_smobe_data throwontimeout=Yes timeout=10 type=EXCLUSIVE cfset temp = structNew() cfloop from=1 to=#listlen(application.state_names_list)# index=dex cfset temp2 = structInsert(temp, listgetat(application.state_names_list, dex), ) /cfloop ... do more stuff ... cfset application.regional_development_orgs = structCopy(temp) cfset needs_init = 0 /cflock /cfif I am taking the entire session scope and setting it to a request variable at the top of every page, and calling these request variables when needed (doing it this way...): cflock scope=session type=readonly timeout=20 cfset request.session = structCopy(session) /cflock cfoutput#request.session.state_name#/cfoutput Calling variables from the request scope instead of session I am doing something similar with application variables by putting specific structures in the request scope on pages where they are used, a la: cflock scope=SESSION type=READONLY timeout=20 cfset request.senate_demographic_data = structCopy(application.senate_demographic_data[request.session.state]) /cflock cfoutput#request.senate_demographic_data[request.session.state_name][ min_ bus]#/cfoutput Calling variables from the request scope instead of application My question is, does it sound like I am addressing the core problem or am I just enhancing the code? Could the real problem be with the amount of data in the application scope, or is there something else I am not thinking of? Does anyone have any advice on how to pinpoint the exact cause of the problems I am running into (or have any experience with applications using this much data in shared memory)? Am I writing these locks as efficiently as possible? Should I be thinking about
Re: Freeware mail servers
Of course - Dell is selling them for only $599. with free shipping - LOL Dude, you gotta get a Dell! = Douglas White group Manager mailto:[EMAIL PROTECTED] http://www.samcfug.org = - Original Message - From: Timothy Heald [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:59 AM Subject: RE: Freeware mail servers | Yeah, | | But I would need another box :) | | -Original Message- | From: samcfug [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, November 26, 2002 12:58 PM | To: CF-Talk | Subject: Re: Freeware mail servers | | | I host a very large web site on my RedHat box, and it does an ODBC connection to | SQL2000 on the Windows machine. Works like a charm, and very stable. It also | runs CF 5.0 just fine. | | = | Douglas White | group Manager | mailto:[EMAIL PROTECTED] | http://www.samcfug.org | = | - Original Message - | From: Timothy Heald [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Tuesday, November 26, 2002 11:48 AM | Subject: RE: Freeware mail servers | | | | Thanks for all the advice people. I will look into them when I get home | tonight. | | | | I really want to run a Linux box eventually, but until I can run my licenses | for CF and SQL Server on them I will have to stick with M$ products :) | | | | Thanks | | Tim | | | | -Original Message- | | From: samcfug [mailto:[EMAIL PROTECTED]] | | Sent: Tuesday, November 26, 2002 12:45 PM | | To: CF-Talk | | Subject: Re: Freeware mail servers | | | | | | Tim | | I have not found a freeware mail server for the Windows platform, but I have | | both a Windows server and a Linux server, and on the Linux box, both of the | very | | popular Sendmail and Postfix are open source (free) and both are very easily | | configurable for anti-spam and anti-virus scanning. There are even several | very | | good open source anti-virus programs for the Linux box as well. | | | | On a Windows Box, I run Imail 7.0 which is getting more expensive with each | | upgrade, but is a lot easier to administer than, say Exchange. | | | | I purchased RedHat 7.3 from Best Buy for $49.00. While the software is open | | source, the purchase gives me a year of free updates, and that is really | | convenient. The Sendmail and PostFix mail servers (as well as apache and a | | couple of database products) are installed by default. | | I use Webmin for remote administration. | | | | For a windows FTP server I use SERV-U | | | | | | = | | Douglas White | | group Manager | | mailto:[EMAIL PROTECTED] | | http://www.samcfug.org | | = | | - Original Message - | | From: Timothy Heald [EMAIL PROTECTED] | | To: CF-Talk [EMAIL PROTECTED] | | Sent: Tuesday, November 26, 2002 11:22 AM | | Subject: OT: Freeware mail servers | | | | | | | Howdy. | | | | | | I am running a server at my house (adsl, speak easy, sweet) I have all the | | server software I want except for a mail server. I am looking for something, | | free, runs on Windows 2000 AS, and has a GUI for admin (don't want to learn a | | whole bunch of command line junk, yeah I am lazy, I know). Also a decent | | freeware FTP server would be nice, I am using IIS FTP and it is junk. | | | | | | Thanks, | | | | | | Timothy Heald | | | Assistant Webmaster | | | Overseas Security Advisory Council | | | U.S. Department of State | | | | | | | | | ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Java in CF (CFMX)
Personally, I'd like to see CF Script expanded to deal with strongly typed code. It would be extremely cool to be able to run code from a different languages in a cfscript block (kinda' like MS's Scripting Host). I can see a couple of other benefits to having inline Java code: Stronger types for variables. (well, stronger types for /values/). Sometimes it's extremely useful to have strong types. For example, I worked on using native COM datasets in CF a few years back and we had a lot of problems converting the native COM dataset into a CF query. was a huge performance hit for a CF script to loop over each field, convert it, and stuff it in a CF query. If CF could (optionally) deal with different types I think it would have been a lot easier to do, and a cfscript block would be a great place for this. Also, it would be *great* to be able to pass functions around as values--that alone would certainly simplify my code in places. One of CF's great benefits is it's simplicity, but sometimes it's important to be able to get out of the simple tag-based techniques of CF and into more advanced techniques. When I'm developing, sometimes I want to be able to just dump some code on a page and thrash away. It gets in the way to have to develop separate components. After I'm done thrashing out some code, I want to make sure it's clean and maintainable, and put it into components, though. It's just nice to have the option. I know basically nothing about the actual behind-the-scenes architecture of CF, so take this with a grain of salt, but I don't see why CF couldn't just automatically compile a cfscript block as a separate class if you added a keyword to it, like: cfscript language=java. There is already a lot of code generation going on when CF creates the class files from a CF page. Well, just my $0.02... Jeff Polaski The cow is of the bovine ilk; One end is moo, the other, milk. -- Ogden Nash -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 23, 2002 9:30 PM To: CF-Talk Subject: Re: Java in CF (CFMX) I am really late to this thread -- been doin' other interesting stuff. There are one (or two, or forty) reasons that have not been mentioned, that make inline Java code a benefit. 1) Where needed in an app, you can get strong typing and nulls -- say you want to communicate with a JDBC driver and retrieve Table/Column attributes from a db -- most JDBC drivers provide this info, but you can't get at it directly form CMFX. 2) Where CFMX can act as a gentle introduction to Java -- certainly this hybrid code would not be the best, but it would allow Java neophytes, like myself, to learn Java gracefully, without having to learn all the rules first. -- There is something about the fact that we can learn our native language, better, by the age of 5, than a person with 4 years of college courses on that language -- simple introduction, constant use, familiarity-- a lot of us Learn by Doing! 3) This would put /keep CF at the head of the pack -- one more significant reason to choose CF over the competition -- EasyJava -- choose the language/implementation that makes the most sense for an application and/or a tier. Dick P.S. while I am asking for things, I'd like to see a cfo.../cfo tag -- does the same thing (and does not deprecate the cfoutput tag-- just a lot easier to type (and pretty self-documenting, and makes a lot more sense than that %= crap!) On Friday, November 22, 2002, at 08:56 AM, Rob Rohan wrote: I understand your decision but I have a couple more things to add, then I'll shut up. 1) To me CFSCRIPT is to Cold Fusion 5 what CFJAVA would've been to CFMX. 2) I also don't think people would just use a cfjava block to just use it. There would have to be a need. (I.E. a custom java tag that doesn't need to be installed) 3) I would like to play with inner classes / threads on a page and casting to thing (like a CF list to a hashtable - don't even know if that would work, but you get the idea). 4) There could be performance gains beyond code execution. For example, when you make a cfm page into a class it adds a bunch of \r\t which is necessary in almost all cases (but certain blocks could be controlled) Thanks for listening Phil and all you wacky MM guys Rob Certified Organic When you put things in quotes, people think someone actually said it. http://treebeard.sourceforge.net http://ruinworld.sourceforge.net Scientia Est Potentia -Original Message- From: Phil Costa [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 6:09 AM To: CF-Talk Subject: RE: Java in CF (CFMX) The decision to disallow inline java code was definitely not a cut and dry one. One reason was definitely to enforce a cleaner separation of syntax; the other, which I hadn't mentioned, was to remove some additional
RE: Writing a file with CFFILE
umm... no ... htmleditformat() converts potentially harmful characters ( , etc ) into html entities. An html entity is used to place characters in the display of an html page which aren't supposed to be allowed ( although browsers often if not usually allow them anyway ) in an html document without being part of an html tag. htmleditformat(0 is a one-way conversion. You can of course, unhtmleditformat() a variable manually, however, doing so prevents you from placing proper html entities in the field since they would likely all be converted back into the etc which aren't supposed to appear in properly formatted html documents. cfsavecontent variable=myvar textarea name=helloworld/textarea /cfsavecontetn cfoutput divmyvar = #myvar#/div divhtmleditformat(myvar) = #htmleditformat(myvar)#/div /cfoutput since these 2 lines are not the same, and the contents of a textarea field are passed literally ( they're not translated by the form submission ), the content of myvar becomes what you see on line 2 after it's been converted the first time with htmleditformat(). Unless this is a very new feature of CFMX that I've not heard about which automatically reverts the string after a form submission. Although I would doubt it considering that this would prevent people being able to enter html entities into form fields and get html entities on the action page. Off the top of my head, I'm not sure what's up with your example -- I haven't tested it on my machine. If it is working, one of two things are happening -- there's more code involved than in your example ( an application.cfm maybe ) _or_ there's a bug somewhere, because it's not supposed to work that way. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Actually yes. Run this code in a blank page and save all day. Check the results in studio. As was my original problem, you are over thinking this. This is exactly what HTMLEditFormat() was designed for. Hope this clear up the confusion !--- Snip --- cfif isDefined('form.fieldnames') cffile action=WRITE file=#PATH_TRANSLATED# output=#form.display# addnewline=Yes /cfif cffile action=READ file=#PATH_TRANSLATED# variable=output form name=frmDisplay action=cfoutput#SCRIPT_NAME#/cfoutput method=post textarea name=display style=width:500px;height:400pxcfoutput#HTMLEditFormat(output)#/cfout pu t/textareabr input type=submit value=Update /form !--- Snip --- Steve -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: RE: Writing a file with CFFILE umm... no ... Try this input type=text name=name value=#htmleditformat(myvar)# Then type 'Jim the Man davis' into that form field, drop it into a persistent variable or a database, retrieve it from that location and populate the form with it (as above), submit the form and save it to the same place. It _does_ change the content. You wind up with 'Jim quot;the Manquot; Davis' as your content. I've seen people sometimes use ReplaceNoCase() to convert quot; and other html entities into double-quotes on the action page, but then no-one can enter an html entity in the form field, because those get converted. It's a lose-lose situation. Same story with textareas. textarea name=myhtmlcfoutput#mytextarea#/cfoutput/textarea Do the same thing you did with the text field here, only instead of double-quotes, this time enter 'textarea name=somethingelse/textarea' into the field. After you've edited it once, you no longer have html content you now have lt;textarea name=quot;somethingelsequot;gt;lt;/textareagt; ... I don't make this stuff up. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Yes...it is. I am using just as you described and it is perfect! Thanks, Steve -Original Message- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:51 AM To: CF-Talk Subject: RE: Writing a file with CFFILE Used properly, HTMLEditFormat() does not change the content. If you type Hello Goodbye, into a form field, once submitted, it becomes: Hello Goodbye So, this is what you insert into the database. Now, when you *display* the contents of that form field, *if* you *don't* want the browser to parse it, then use HTMLEditFormat(). For instance, let's say we let the user edit that text again in a form field. Using HTMLEditFormat() within the value attribute of a form field, you will get: quot;Hello amp; Goodbyequot; *But* when the form is
RE: Processing .htm files as .cfm
is this cf5 or cfmx? ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: chris regan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:16 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm You have to change the IIS settings. Under the Home Directory tab: Click on Configuration. Then find the cfm extension and copy the Executable Path. Then change the htm path to read the same. Fred -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Server Problems When Code is Not Locked (was RE: Application vari ables)
In my experience, PCode errors were usually the result of not using cflocks where needed. IMHO, you are on the right track moving schtuff to the request scope. From an earlier posting by Mike Brunt, and what I do in my apps, I'd suggest using In Application.cfm cflock scope=SESSION timeout=30 type=READONLY cfset structappend(request,Duplicate(session)) /cflock In OnRequestEnd.cfm cflock scope=SESSION type=EXCLUSIVE timeout=30 cfset structAppend(session,Duplicate(request)) /cflock The onrequestend bit adds any NEW vars you introduced in the request scope to be added to the session scope. This way you need only use CFLOCK twice in your whole application. Be careful of CFABORT use with this though. As for these errors - Request cancelled or ignored by serverServer busy or unable to fulfill request. The server is unable to fulfill your request due to extremely high traffic or an unexpected internal error. - Check your page 'weight'. Are you running heavy SQL? CFX tags? You may need to tweak your SQL to run better and also play with the number of simultaneous request limit in the CFADMIN tool. What you set this at depends on what your app does. I have it set to 10 threads per CPU as my app is very DB intense. Others set this to 3-4 per CPU. Also look at your request timeout limit. HTH Doug -Original Message- From: Haggerty, Mike [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:08 PM To: CF-Talk Subject: Server Problems When Code is Not Locked (was RE: Application vari ables) Here is a case study in the use of locks around session and application variables. Read on, at the end I have a few questions to the great minds and gurus of this list (especially Raymond Camden). The project I am working on right now is the rewrite of an application which never should have gone into production in the first place. The application was written three years ago and errors abound (common messages shown below): - Error Diagnostic Information unknown error condition unknown error while executing a tag - Or: - Request cancelled or ignored by serverServer busy or unable to fulfill request. The server is unable to fulfill your request due to extremely high traffic or an unexpected internal error. - We see at least 50 of these in the application log daily, much more around election time when traffic skyrockets. Every once in a while I also see a PCode error, but I don't have the syntax in front of me. The app runs on NT 4 with CF4.5 and makes extensive use of application and session variables. By extensive, I mean it has large structures contained in the application scope and calls data from them 10 - 80 times per page. I looked at the CPU usage for Cold Fusion to determine the total amount of data in the application scope, and saw it go up from about 3k to 89000k just when the application loads. So there is a lot of data, but that should not be a big issue - the app is running on a pretty powerful server. The challenge, it would seem, is to have the code access the data properly. The code possesses no locks anywhere (!). What I am doing is exclusively locking all of the application and session variables when they are set, and putting readonly locks around these variables whenever they are read. My code looks like this: cflock scope=session type=readOnly timeout=10 cfif NOT isdefined(application.regional_development_orgs) cfset needs_init = 1 /cfif /cflock cfif needs_init eq 1 cflock name=data_detailed_smobe_data throwontimeout=Yes timeout=10 type=EXCLUSIVE cfset temp = structNew() cfloop from=1 to=#listlen(application.state_names_list)# index=dex cfset temp2 = structInsert(temp, listgetat(application.state_names_list, dex), ) /cfloop ... do more stuff ... cfset application.regional_development_orgs = structCopy(temp) cfset needs_init = 0 /cflock /cfif I am taking the entire session scope and setting it to a request variable at the top of every page, and calling these request variables when needed (doing it this way...): cflock scope=session type=readonly timeout=20 cfset request.session = structCopy(session) /cflock cfoutput#request.session.state_name#/cfoutput .. Calling variables from the request scope instead of session I am doing something similar with application variables by putting specific structures in the request scope on pages where they are used, a la: cflock scope=SESSION type=READONLY timeout=20 cfset request.senate_demographic_data = structCopy(application.senate_demographic_data[request.session.state]) /cflock cfoutput#request.senate_demographic_data[request.session.stat e_name][min_ bus]#/cfoutput .. Calling variables from the request scope instead of application My question is, does it sound like I am addressing the core problem or am I just enhancing the code? Could the real problem be with the amount of data in
RE: Java in CF (CFMX)
I think someone at MM should look up BSF. Rob http://treebeard.sourceforge.net http://ruinworld.sourceforge.net Scientia Est Potentia -Original Message- From: Jeffrey Polaski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:50 AM To: CF-Talk Subject: RE: Java in CF (CFMX) Personally, I'd like to see CF Script expanded to deal with strongly typed code. It would be extremely cool to be able to run code from a different languages in a cfscript block (kinda' like MS's Scripting Host). I can see a couple of other benefits to having inline Java code: Stronger types for variables. (well, stronger types for /values/). Sometimes it's extremely useful to have strong types. For example, I worked on using native COM datasets in CF a few years back and we had a lot of problems converting the native COM dataset into a CF query. was a huge performance hit for a CF script to loop over each field, convert it, and stuff it in a CF query. If CF could (optionally) deal with different types I think it would have been a lot easier to do, and a cfscript block would be a great place for this. Also, it would be *great* to be able to pass functions around as values--that alone would certainly simplify my code in places. One of CF's great benefits is it's simplicity, but sometimes it's important to be able to get out of the simple tag-based techniques of CF and into more advanced techniques. When I'm developing, sometimes I want to be able to just dump some code on a page and thrash away. It gets in the way to have to develop separate components. After I'm done thrashing out some code, I want to make sure it's clean and maintainable, and put it into components, though. It's just nice to have the option. I know basically nothing about the actual behind-the-scenes architecture of CF, so take this with a grain of salt, but I don't see why CF couldn't just automatically compile a cfscript block as a separate class if you added a keyword to it, like: cfscript language=java. There is already a lot of code generation going on when CF creates the class files from a CF page. Well, just my $0.02... Jeff Polaski The cow is of the bovine ilk; One end is moo, the other, milk. -- Ogden Nash -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 23, 2002 9:30 PM To: CF-Talk Subject: Re: Java in CF (CFMX) I am really late to this thread -- been doin' other interesting stuff. There are one (or two, or forty) reasons that have not been mentioned, that make inline Java code a benefit. 1) Where needed in an app, you can get strong typing and nulls -- say you want to communicate with a JDBC driver and retrieve Table/Column attributes from a db -- most JDBC drivers provide this info, but you can't get at it directly form CMFX. 2) Where CFMX can act as a gentle introduction to Java -- certainly this hybrid code would not be the best, but it would allow Java neophytes, like myself, to learn Java gracefully, without having to learn all the rules first. -- There is something about the fact that we can learn our native language, better, by the age of 5, than a person with 4 years of college courses on that language -- simple introduction, constant use, familiarity-- a lot of us Learn by Doing! 3) This would put /keep CF at the head of the pack -- one more significant reason to choose CF over the competition -- EasyJava -- choose the language/implementation that makes the most sense for an application and/or a tier. Dick P.S. while I am asking for things, I'd like to see a cfo.../cfo tag -- does the same thing (and does not deprecate the cfoutput tag-- just a lot easier to type (and pretty self-documenting, and makes a lot more sense than that %= crap!) On Friday, November 22, 2002, at 08:56 AM, Rob Rohan wrote: I understand your decision but I have a couple more things to add, then I'll shut up. 1) To me CFSCRIPT is to Cold Fusion 5 what CFJAVA would've been to CFMX. 2) I also don't think people would just use a cfjava block to just use it. There would have to be a need. (I.E. a custom java tag that doesn't need to be installed) 3) I would like to play with inner classes / threads on a page and casting to thing (like a CF list to a hashtable - don't even know if that would work, but you get the idea). 4) There could be performance gains beyond code execution. For example, when you make a cfm page into a class it adds a bunch of \r\t which is necessary in almost all cases (but certain blocks could be controlled) Thanks for listening Phil and all you wacky MM guys Rob Certified Organic When you put things in quotes, people think someone actually said it. http://treebeard.sourceforge.net http://ruinworld.sourceforge.net Scientia Est Potentia -Original Message- From: Phil Costa [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 6:09 AM To: CF-Talk Subject: RE: Java
RE: Freeware mail servers
have you looked into JAMES? http://jakarta.apache.org/james/ it's an open source java mail server. It is configured via XML files, but you can do some powerful stuff with it like store mail in a JDBC datasource, or write custom mail filters in java. _ Pete Freitag CTO, CFDEV.COM http://www.cfdev.com/ ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Processing .htm files as .cfm
That's actually a great question. I've never tested it with CFMX, which is radically different in how it processes everything (uses JRun, etc...). I just now tried it, and IE just endlessly tries to open the file, which leads me to believe that JRun.dll doesn't want to parse it. Oh well. --D -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:58 AM To: CF-Talk Subject: RE: Processing .htm files as .cfm is this cf5 or cfmx? .tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: chris regan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:16 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm You have to change the IIS settings. Under the Home Directory tab: Click on Configuration. Then find the cfm extension and copy the Executable Path. Then change the htm path to read the same. Fred -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: Writing a file with CFFILE
No, it doesn't. Jeez, I use this function every time I have a form element - including textarea - and it ALWAYS works properly. Otherwise, how in God's name are you ever going to be able to edit: Hello There? You HAVE to escape the quotes in the value attribute of an input field - or else the tag breaks. Try it out. It WORKS. -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:53 AM To: CF-Talk Subject: RE: Writing a file with CFFILE umm... no ... htmleditformat() converts potentially harmful characters ( , etc ) into html entities. An html entity is used to place characters in the display of an html page which aren't supposed to be allowed ( although browsers often if not usually allow them anyway ) in an html document without being part of an html tag. htmleditformat(0 is a one-way conversion. You can of course, unhtmleditformat() a variable manually, however, doing so prevents you from placing proper html entities in the field since they would likely all be converted back into the etc which aren't supposed to appear in properly formatted html documents. cfsavecontent variable=myvar textarea name=helloworld/textarea /cfsavecontetn cfoutput divmyvar = #myvar#/div divhtmleditformat(myvar) = #htmleditformat(myvar)#/div /cfoutput since these 2 lines are not the same, and the contents of a textarea field are passed literally ( they're not translated by the form submission ), the content of myvar becomes what you see on line 2 after it's been converted the first time with htmleditformat(). Unless this is a very new feature of CFMX that I've not heard about which automatically reverts the string after a form submission. Although I would doubt it considering that this would prevent people being able to enter html entities into form fields and get html entities on the action page. Off the top of my head, I'm not sure what's up with your example -- I haven't tested it on my machine. If it is working, one of two things are happening -- there's more code involved than in your example ( an application.cfm maybe ) _or_ there's a bug somewhere, because it's not supposed to work that way. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Actually yes. Run this code in a blank page and save all day. Check the results in studio. As was my original problem, you are over thinking this. This is exactly what HTMLEditFormat() was designed for. Hope this clear up the confusion !--- Snip --- cfif isDefined('form.fieldnames') cffile action=WRITE file=#PATH_TRANSLATED# output=#form.display# addnewline=Yes /cfif cffile action=READ file=#PATH_TRANSLATED# variable=output form name=frmDisplay action=cfoutput#SCRIPT_NAME#/cfoutput method=post textarea name=display style=width:500px;height:400pxcfoutput#HTMLEditFormat(output)#/cfout pu t/textareabr input type=submit value=Update /form !--- Snip --- Steve -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: RE: Writing a file with CFFILE umm... no ... Try this input type=text name=name value=#htmleditformat(myvar)# Then type 'Jim the Man davis' into that form field, drop it into a persistent variable or a database, retrieve it from that location and populate the form with it (as above), submit the form and save it to the same place. It _does_ change the content. You wind up with 'Jim quot;the Manquot; Davis' as your content. I've seen people sometimes use ReplaceNoCase() to convert quot; and other html entities into double-quotes on the action page, but then no-one can enter an html entity in the form field, because those get converted. It's a lose-lose situation. Same story with textareas. textarea name=myhtmlcfoutput#mytextarea#/cfoutput/textarea Do the same thing you did with the text field here, only instead of double-quotes, this time enter 'textarea name=somethingelse/textarea' into the field. After you've edited it once, you no longer have html content you now have lt;textarea name=quot;somethingelsequot;gt;lt;/textareagt; ... I don't make this stuff up. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Yes...it is. I am using just as you described and it is perfect! Thanks, Steve -Original Message- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:51 AM To:
RE: Writing a file with CFFILE
Run the code... then tell me it still won't work that way. Is it possible you're wrong? Steve -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:53 PM To: CF-Talk Subject: RE: Writing a file with CFFILE umm... no ... htmleditformat() converts potentially harmful characters ( , etc ) into html entities. An html entity is used to place characters in the display of an html page which aren't supposed to be allowed ( although browsers often if not usually allow them anyway ) in an html document without being part of an html tag. htmleditformat(0 is a one-way conversion. You can of course, unhtmleditformat() a variable manually, however, doing so prevents you from placing proper html entities in the field since they would likely all be converted back into the etc which aren't supposed to appear in properly formatted html documents. cfsavecontent variable=myvar textarea name=helloworld/textarea /cfsavecontetn cfoutput divmyvar = #myvar#/div divhtmleditformat(myvar) = #htmleditformat(myvar)#/div /cfoutput since these 2 lines are not the same, and the contents of a textarea field are passed literally ( they're not translated by the form submission ), the content of myvar becomes what you see on line 2 after it's been converted the first time with htmleditformat(). Unless this is a very new feature of CFMX that I've not heard about which automatically reverts the string after a form submission. Although I would doubt it considering that this would prevent people being able to enter html entities into form fields and get html entities on the action page. Off the top of my head, I'm not sure what's up with your example -- I haven't tested it on my machine. If it is working, one of two things are happening -- there's more code involved than in your example ( an application.cfm maybe ) _or_ there's a bug somewhere, because it's not supposed to work that way. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Actually yes. Run this code in a blank page and save all day. Check the results in studio. As was my original problem, you are over thinking this. This is exactly what HTMLEditFormat() was designed for. Hope this clear up the confusion !--- Snip --- cfif isDefined('form.fieldnames') cffile action=WRITE file=#PATH_TRANSLATED# output=#form.display# addnewline=Yes /cfif cffile action=READ file=#PATH_TRANSLATED# variable=output form name=frmDisplay action=cfoutput#SCRIPT_NAME#/cfoutput method=post textarea name=display style=width:500px;height:400pxcfoutput#HTMLEditFormat(output)#/cfout pu t/textareabr input type=submit value=Update /form !--- Snip --- Steve -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: RE: Writing a file with CFFILE umm... no ... Try this input type=text name=name value=#htmleditformat(myvar)# Then type 'Jim the Man davis' into that form field, drop it into a persistent variable or a database, retrieve it from that location and populate the form with it (as above), submit the form and save it to the same place. It _does_ change the content. You wind up with 'Jim quot;the Manquot; Davis' as your content. I've seen people sometimes use ReplaceNoCase() to convert quot; and other html entities into double-quotes on the action page, but then no-one can enter an html entity in the form field, because those get converted. It's a lose-lose situation. Same story with textareas. textarea name=myhtmlcfoutput#mytextarea#/cfoutput/textarea Do the same thing you did with the text field here, only instead of double-quotes, this time enter 'textarea name=somethingelse/textarea' into the field. After you've edited it once, you no longer have html content you now have lt;textarea name=quot;somethingelsequot;gt;lt;/textareagt; ... I don't make this stuff up. s. isaac dealey954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Yes...it is. I am using just as you described and it is perfect! Thanks, Steve -Original Message- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:51 AM To: CF-Talk Subject: RE: Writing a file with CFFILE Used properly, HTMLEditFormat() does not change the content. If you type Hello Goodbye, into a form field, once submitted, it becomes: Hello Goodbye So, this is what you insert into the database. Now, when you *display* the contents of that form field, *if* you *don't* want the browser to
RE: Processing .htm files as .cfm
I'm using cf5 and IIS -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:58 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm is this cf5 or cfmx? .tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: chris regan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:16 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm You have to change the IIS settings. Under the Home Directory tab: Click on Configuration. Then find the cfm extension and copy the Executable Path. Then change the htm path to read the same. Fred -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
What is this???
Hello, I have debugging turned off in the cf admin, but I keep getting this at the top of a page from time to time. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Page-Completion-Status: Normal Set-Cookie: CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; Any have any ideas? TIA Shawn Regan pacifictechnologysolutions 15530-B Rockfield Blvd. Suite 4 Irvine, CA 92618 949.830.1623 w w w . p t s 1 . c o m ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: Processing .htm files as .cfm
Take a look at this technote and change .dbm to .htm: http://www.macromedia.com/v1/Handlers/index.cfm?ID=23258Method=Full Regards, Christine Lawson Macromedia -Original Message- From: David Notik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:19 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm That's actually a great question. I've never tested it with CFMX, which is radically different in how it processes everything (uses JRun, etc...). I just now tried it, and IE just endlessly tries to open the file, which leads me to believe that JRun.dll doesn't want to parse it. Oh well. --D -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:58 AM To: CF-Talk Subject: RE: Processing .htm files as .cfm is this cf5 or cfmx? tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: chris regan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:16 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm You have to change the IIS settings. Under the Home Directory tab: Click on Configuration. Then find the cfm extension and copy the Executable Path. Then change the htm path to read the same. Fred -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
RE: Processing .htm files as .cfm
no it works fine with cfmx, heck I have some .tony files that are parsed by it, .anything can be parsed by either, its just that the setup for both is different. email me off list, if you want instructions for cfmx...i had much problems with this, and have got it down to a science ;) ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: David Notik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:19 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm That's actually a great question. I've never tested it with CFMX, which is radically different in how it processes everything (uses JRun, etc...). I just now tried it, and IE just endlessly tries to open the file, which leads me to believe that JRun.dll doesn't want to parse it. Oh well. --D -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:58 AM To: CF-Talk Subject: RE: Processing .htm files as .cfm is this cf5 or cfmx? tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: chris regan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:16 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm You have to change the IIS settings. Under the Home Directory tab: Click on Configuration. Then find the cfm extension and copy the Executable Path. Then change the htm path to read the same. Fred -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: Processing .htm files as .cfm
are you having problems as well? ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: CKR [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:22 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm I'm using cf5 and IIS -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:58 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm is this cf5 or cfmx? tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: chris regan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:16 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm You have to change the IIS settings. Under the Home Directory tab: Click on Configuration. Then find the cfm extension and copy the Executable Path. Then change the htm path to read the same. Fred -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: What is this???
are you using cfform tags on the pages? and are you running cf5? I bet you are ;) ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:23 PM To: CF-Talk Subject: What is this??? Hello, I have debugging turned off in the cf admin, but I keep getting this at the top of a page from time to time. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Page-Completion-Status: Normal Set-Cookie: CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; Any have any ideas? TIA Shawn Regan pacifictechnologysolutions 15530-B Rockfield Blvd. Suite 4 Irvine, CA 92618 949.830.1623 w w w . p t s 1 . c o m ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
CFMX email help
I am unable to send email accept to accounts on my email erver::: I am getting the following error: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] Anybody know what is going on here??? Kris Pilles Website Manager Western Suffolk BOCES 507 Deer Park Rd., Building C Phone: 631-549-4900 x 267 E-mail: [EMAIL PROTECTED] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: What is this???
Have you turned on http compression in the IIS settings? If I remember correctly there are many problems with the built-in-http-compression (including just some header as output). Peter I have debugging turned off in the cf admin, but I keep getting this at the top of a page from time to time. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Page-Completion-Status: Normal Set- Cookie: CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Processing .htm files as .cfm
that's really cool christine, thanks for the page I didn't know it was there, and sooo many of us have tried to explain the easiest way to do it!!! thanks again! ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: Christine Lawson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:27 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm Take a look at this technote and change .dbm to .htm: http://www.macromedia.com/v1/Handlers/index.cfm?ID=23258Method=Full Regards, Christine Lawson Macromedia -Original Message- From: David Notik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:19 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm That's actually a great question. I've never tested it with CFMX, which is radically different in how it processes everything (uses JRun, etc...). I just now tried it, and IE just endlessly tries to open the file, which leads me to believe that JRun.dll doesn't want to parse it. Oh well. --D -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:58 AM To: CF-Talk Subject: RE: Processing .htm files as .cfm is this cf5 or cfmx? tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: chris regan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:16 PM To: CF-Talk Subject: RE: Processing .htm files as .cfm You have to change the IIS settings. Under the Home Directory tab: Click on Configuration. Then find the cfm extension and copy the Executable Path. Then change the htm path to read the same. Fred -Original Message- From: Paul Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:05 PM To: CF-Talk Subject: Processing .htm files as .cfm Which file do i need to change to process .htm files as .cfm? Thanks ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Large Corporations that use ColdFusion
FYI... Add NEC/Mitsubishi... http://www.necmitsubishi.com/products/index.cfm Cheers, Ben -Original Message- From: Mike Brunt [mailto:[EMAIL PROTECTED]] Sent: November 19, 2002 8:07 AM To: CF-Talk Subject: RE: Large Corporations that use ColdFusion Some clients I worked with on ColdFusion whilst at Allaire Macromedia and since (many of these are internal so it is not apparent). Alcatel ATT Wireless Baylor College of Medicine Carlson Companies (TGI Fridays - Wyndham Hotels etc) eBay Ernst and Young Gambro Healthcare IDG Publications HealthStream Hooked on Phonics Loudcloud (A big 3 automaker client) San Diego Gas and Electric Sempra Energy Sony Pictures Southern California Gas Hth Mike Brunt - CTO Webapper Services LLC Blog - http://www.webapper.net Downey CA Office 562.243.6255 AIM webappermb Web Application Specialists ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: Server Problems When Code is Not Locked (was RE: Application vari ables)
Doug; Thanks for the reply. Except for some custom modules I am not concerned with at this time, the main application really only uses heavy SQL on one page (the one where it places all the structures in the application scope). There it runs 26 queries, all of which take some time to run and return large amounts of data. The funny thing is, there has never been an error on this page. It always runs as expected, the errors come on other pages. Right now, the average time for a page to generate in the system is just under 60 ms (but I think this is going up with the new data locking scheme). There are no CFX tags in this part of the application (there is an ArcIMS interface, part of a custom module I have put off dealing with until the main application is under control). I did just rewrite the application in Fusebox, though, which makes use of custom tags in the core files... Hopefully this is not the problem. The application is running on CF 4.5 on NT4. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:26 PM To: CF-Talk Subject: RE: Server Problems When Code is Not Locked (was RE: Application vari ables) In my experience, PCode errors were usually the result of not using cflocks where needed. IMHO, you are on the right track moving schtuff to the request scope. From an earlier posting by Mike Brunt, and what I do in my apps, I'd suggest using In Application.cfm cflock scope=SESSION timeout=30 type=READONLY cfset structappend(request,Duplicate(session)) /cflock In OnRequestEnd.cfm cflock scope=SESSION type=EXCLUSIVE timeout=30 cfset structAppend(session,Duplicate(request)) /cflock The onrequestend bit adds any NEW vars you introduced in the request scope to be added to the session scope. This way you need only use CFLOCK twice in your whole application. Be careful of CFABORT use with this though. As for these errors - Request cancelled or ignored by serverServer busy or unable to fulfill request. The server is unable to fulfill your request due to extremely high traffic or an unexpected internal error. - Check your page 'weight'. Are you running heavy SQL? CFX tags? You may need to tweak your SQL to run better and also play with the number of simultaneous request limit in the CFADMIN tool. What you set this at depends on what your app does. I have it set to 10 threads per CPU as my app is very DB intense. Others set this to 3-4 per CPU. Also look at your request timeout limit. HTH Doug ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
RE: PRN and NUL.cfm Attacks?
Seen a few, not an issue on my linux boxes. M -Original Message- From: Joshua Miller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:37 PM To: CF-Talk Subject: PRN and NUL.cfm Attacks? Has anyone else seen any of these attacks coming across their servers? Someone has been scanning several of the sites on our server for: /nul.cfm and /prn.cfm Information on the PRN Vulnerability: http://packetstormsecurity.nl/9906-exploits/windows.prn.flaw.txt Information on the NUL Vulnerability: http://www.securiteam.com/windowsntfocus/5LP0C0K75M.html Any information appreciated, Joshua Miller ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: CFMX email help
looks like a mail server relay issue rather than a cf issue. does the server have the authority to send messages to people outside of the network it is on? ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:35 PM To: CF-Talk Subject: CFMX email help I am unable to send email accept to accounts on my email erver::: I am getting the following error: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] Anybody know what is going on here??? Kris Pilles Website Manager Western Suffolk BOCES 507 Deer Park Rd., Building C Phone: 631-549-4900 x 267 E-mail: [EMAIL PROTECTED] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
RE: What is this???
That's the same output I get when I go to the developers exchange and try to log on. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: Peter Mayer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:43 PM To: CF-Talk Subject: Re: What is this??? Have you turned on http compression in the IIS settings? If I remember correctly there are many problems with the built-in-http-compression (including just some header as output). Peter I have debugging turned off in the cf admin, but I keep getting this at the top of a page from time to time. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Page-Completion-Status: Normal Set- Cookie: CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Re: CFMX email help
It means that your email server is not configured to allow relay mail from your ColdFusion server. Typically, you would add the IP address of the ColdFusion server to the allowed list of the mail server. HTH, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com - 631-737-4668 x101 inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm - Original Message - From: Kris Pilles [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 2:34 PM Subject: CFMX email help I am unable to send email accept to accounts on my email erver::: I am getting the following error: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] Anybody know what is going on here??? Kris Pilles Website Manager Western Suffolk BOCES 507 Deer Park Rd., Building C Phone: 631-549-4900 x 267 E-mail: [EMAIL PROTECTED] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
RE: What is this???
I only see that when I used to use cf5 and cfform tagsodd things...very odd things. and when I sent an email to the list, I got no good response either ;) ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: Robert Everland [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:37 PM To: CF-Talk Subject: RE: What is this??? That's the same output I get when I go to the developers exchange and try to log on. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: Peter Mayer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:43 PM To: CF-Talk Subject: Re: What is this??? Have you turned on http compression in the IIS settings? If I remember correctly there are many problems with the built-in-http-compression (including just some header as output). Peter I have debugging turned off in the cf admin, but I keep getting this at the top of a page from time to time. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Page-Completion-Status: Normal Set- Cookie: CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
RE: What is this???
and now, using cfmx no issue with cfform tags and those strange headers. ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:54 PM To: CF-Talk Subject: RE: What is this??? I only see that when I used to use cf5 and cfform tagsodd things...very odd things. and when I sent an email to the list, I got no good response either ;) .tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: Robert Everland [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:37 PM To: CF-Talk Subject: RE: What is this??? That's the same output I get when I go to the developers exchange and try to log on. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: Peter Mayer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:43 PM To: CF-Talk Subject: Re: What is this??? Have you turned on http compression in the IIS settings? If I remember correctly there are many problems with the built-in-http-compression (including just some header as output). Peter I have debugging turned off in the cf admin, but I keep getting this at the top of a page from time to time. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Page-Completion-Status: Normal Set- Cookie: CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: What is this???
Prolly has to do with HTTP/1.1 400 Bad Request ( The data is invalid. ) Via:1.1 SCW-ISA Connection: close Proxy-Connection: close Pragma: no-cache Cache-Control: no-cache Content-Type: text/html Content-Length: 3116 Thats MS proxy is it not. Wonder if MS messes with header information... nah why would they do that. :) Rob http://treebeard.sourceforge.net http://ruinworld.sourceforge.net Scientia Est Potentia -Original Message- From: Robert Everland [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:37 AM To: CF-Talk Subject: RE: What is this??? That's the same output I get when I go to the developers exchange and try to log on. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: Peter Mayer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:43 PM To: CF-Talk Subject: Re: What is this??? Have you turned on http compression in the IIS settings? If I remember correctly there are many problems with the built-in-http-compression (including just some header as output). Peter I have debugging turned off in the cf admin, but I keep getting this at the top of a page from time to time. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Page-Completion-Status: Normal Set- Cookie: CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: What is this???
Rather load balancer Rob http://treebeard.sourceforge.net http://ruinworld.sourceforge.net Scientia Est Potentia -Original Message- From: Robert Everland [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:37 AM To: CF-Talk Subject: RE: What is this??? That's the same output I get when I go to the developers exchange and try to log on. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com -Original Message- From: Peter Mayer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:43 PM To: CF-Talk Subject: Re: What is this??? Have you turned on http compression in the IIS settings? If I remember correctly there are many problems with the built-in-http-compression (including just some header as output). Peter I have debugging turned off in the cf admin, but I keep getting this at the top of a page from time to time. HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07 GMT Connection: close Content-type: text/html Page-Completion-Status: Normal Page-Completion-Status: Normal Page-Completion-Status: Normal Set- Cookie: CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
Office XP anf CF
Hello, I have not been able to use any of the examples on cfcomet on Word 2002. Has something change from Word2000 to 2002? Has anyone got working examples for Word2002? Thanks Helge Hetland ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com