Re: Connecting to CFC's in the same directory in CF9.
I have only one special mapping for a directory that has some externally provided cfc's called /cfc but to reference those ones, the code prefaces the calls with cfc. In the case I am describing above, I'm just doing the simple thing of looking for a cfc in the same directory as the invoking web page, so I don't believe that any mapping is needed. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335464 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Need Advice on Processing After a Page Has Been Rendered
I have a script that pulls data from several external sources and returns the top 500 results and takes about 3-5 seconds to render. To speed things up, I want to database the results for later use. How can I database the results while the user is viewing the page without the increasing the pages render time? In other words, how can I write the data to a database... but only after the page has been completely rendered? What would be the best way to do this? I'm currently using CF8. Thanks Che ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335465 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Need Advice on Processing After a Page Has Been Rendered
Ajax? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335466 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Need Advice on Processing After a Page Has Been Rendered
Save the query result to a session var or to a file as part of the page processing. Then have an ajax call to a secondary page that will do the insert or bulkinsert. Once the page has loaded (onLoad) have an ajax call to the secondary page. That's one way. I'm quite sure there's many others. On Mon, Jul 19, 2010 at 11:18 AM, Che Vilnonis ch...@asitv.com wrote: I have a script that pulls data from several external sources and returns the top 500 results and takes about 3-5 seconds to render. To speed things up, I want to database the results for later use. How can I database the results while the user is viewing the page without the increasing the pages render time? In other words, how can I write the data to a database... but only after the page has been completely rendered? What would be the best way to do this? I'm currently using CF8. Thanks Che ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335467 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Need Advice on Processing After a Page Has Been Rendered
Some ideas to explore: cfhttp with an immediate timeout cfthread CF Event Gateways Writing 500 rows to a database table should only take a few milliseconds, which would be unnoticeable relative to the amount of time you say the page takes to load. If the database is slow for some reason, perhaps create a light-weight database table optimized for fast inserts. Trying to spawn another thread for database inserts might not be worth it unless the database inserts are noticeably slow. To optimize calls to external systems, explore the cfthread tag, assuming you are using the Enterprise edition of CF. -Mike Chabot On Mon, Jul 19, 2010 at 11:18 AM, Che Vilnonis ch...@asitv.com wrote: I have a script that pulls data from several external sources and returns the top 500 results and takes about 3-5 seconds to render. To speed things up, I want to database the results for later use. How can I database the results while the user is viewing the page without the increasing the pages render time? In other words, how can I write the data to a database... but only after the page has been completely rendered? What would be the best way to do this? I'm currently using CF8. Thanks Che ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335468 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Virtual Directories and cfinclude
Recently, I've been trying to modularize all code needed for a particular function with a directory that exists outside the root directory of a website. I have some functionality that is common to many websites and need to reference the files on if a site uses said functionality. For instance, I have a real estate website that uses a subdivision function. Not all do, but this one does. I decided to move the subdivision folder outside the root of all the websites that might use it and put it under its own directory in the webroot. I can create a virtual directory in IIS easily enough to reference files within the subdivision folder. However, if I try to reference files within the main websites structure from within the subdivision folder under the webroot using cfinclude, I can't. At least not using relative links, as far as I can tell. I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the main website folder structure so that if that function (subdivisions, in this case) is not used, then none of the files and assets need be part of the website's directory structure and content. Make any sense? In the end, it amounts to wanting to have a way for referencing cfincludes, such as menu structure file, from within the folder structure of the external directory subdivisions as I can reference files from within subdivisions folder by using a virtual directory in IIS. Maybe I'm missing something very obvious. Any feedback would be appreciated. Thanks, Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335469 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
(ot) changing the default for loading actionscript files in cfeclipse/eclipse
Hi all, Sorry for the off topic, but when I'm working on a project in CFEclipse that has actionscript files, if I double click on the file it starts up Flash to open the file. I don't want that, I want the .as file to open in CFEclipse. I know I can right click the file and choose Open With - Text editor, but that slows me down. After all, the IDE is supposed to conform to me not me to it. J Any insight will be appreciated. Thanks, Steve ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335470 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) changing the default for loading actionscript files in cfeclipse/eclipse
On Mon, Jul 19, 2010 at 12:35 PM, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.com wrote: Sorry for the off topic, but when I'm working on a project in CFEclipse that has actionscript files, if I double click on the file it starts up Flash to open the file. I don't want that, I want the .as file to open in CFEclipse. I know I can right click the file and choose Open With - Text editor, but that slows me down. After all, the IDE is supposed to conform to me not me to it. J Not sure about CFEclipse because my CFBuilder is on a VM that is down but I would think you can change the file type association at the OS level so it opens it in CFEclips ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335471 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: (ot) changing the default for loading actionscript files in cfeclipse/eclipse
Ok... But why should I have to do that? The default OS Application for .cfm files is Dreamweaver, but when I open CFE and double click a .cfm file it opens in CFE. Besides, in some companies, changing defaults like that are locked down. Thanks for the idea though, I might do that as a last resort. (where is my admin's phone number) Steve -Original Message- From: Won Lee [mailto:won...@gmail.com] Sent: Monday, July 19, 2010 12:39 PM To: cf-talk Subject: Re: (ot) changing the default for loading actionscript files in cfeclipse/eclipse Not sure about CFEclipse because my CFBuilder is on a VM that is down but I would think you can change the file type association at the OS level so it opens it in CFEclips ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335472 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) changing the default for loading actionscript files in cfeclipse/eclipse
On Mon, Jul 19, 2010 at 12:42 PM, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.com wrote: Ok... But why should I have to do that? The default OS Application for .cfm files is Dreamweaver, but when I open CFE and double click a .cfm file it opens in CFE. Besides, in some companies, changing defaults like that are locked down. Thanks for the idea though, I might do that as a last resort. (where is my admin's phone number) I agree with you; I don't think one should be forced to change file association at the OS level. It was the only thing I could think of while my CFBuilder was down. W ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335473 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Need Advice on Processing After a Page Has Been Rendered
I've dealt with this issue time and time again. For instance, you want the results to be downloaded in an excel document but you don't want to compromise the time it takes to render just the HTML. I have an image that is hidden and a spinner saying 'loading excel results'. Then at page load an ajax call will request the process and when it is finished, will show the image that will allow the user to download the excel document. You can do exactly the same thing where you have a notification saying that the data is being inserted and then a success message after it is complete. Be careful not to set up any process that will cancel the request or the transaction may not complete. In other words, you need to ensure that the request can still process even if the page is closed or expect incomplete transactions. You might need to take a look at cftransaction or a sql transaction statement so you aren't getting partial inserts/updates. On Mon, Jul 19, 2010 at 8:59 AM, Mike Chabot mcha...@gmail.com wrote: Some ideas to explore: cfhttp with an immediate timeout cfthread CF Event Gateways Writing 500 rows to a database table should only take a few milliseconds, which would be unnoticeable relative to the amount of time you say the page takes to load. If the database is slow for some reason, perhaps create a light-weight database table optimized for fast inserts. Trying to spawn another thread for database inserts might not be worth it unless the database inserts are noticeably slow. To optimize calls to external systems, explore the cfthread tag, assuming you are using the Enterprise edition of CF. -Mike Chabot On Mon, Jul 19, 2010 at 11:18 AM, Che Vilnonis ch...@asitv.com wrote: I have a script that pulls data from several external sources and returns the top 500 results and takes about 3-5 seconds to render. To speed things up, I want to database the results for later use. How can I database the results while the user is viewing the page without the increasing the pages render time? In other words, how can I write the data to a database... but only after the page has been completely rendered? What would be the best way to do this? I'm currently using CF8. Thanks Che ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335474 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) changing the default for loading actionscript files in cfeclipse/eclipse
Eclipse has file associations: Prefs | General Editors File Associations :den -- In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move. Douglas Adams On Mon, Jul 19, 2010 at 10:45 AM, Won Lee wrote: On Mon, Jul 19, 2010 at 12:42 PM, DURETTE, STEVEN J (ATTASIAIT) wrote: Ok... But why should I have to do that? The default OS Application for .cfm files is Dreamweaver, but when I open CFE and double click a .cfm file it opens in CFE. Besides, in some companies, changing defaults like that are locked down. Thanks for the idea though, I might do that as a last resort. (where is my admin's phone number) I agree with you; I don't think one should be forced to change file association at the OS level. It was the only thing I could think of while my CFBuilder was down. W ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335475 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: (ot) changing the default for loading actionscript files in cfeclipse/eclipse
Thank you VERY much! -Original Message- From: denstar [mailto:valliants...@gmail.com] Sent: Monday, July 19, 2010 2:17 PM To: cf-talk Subject: Re: (ot) changing the default for loading actionscript files in cfeclipse/eclipse Eclipse has file associations: Prefs | General Editors File Associations :den -- In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move. Douglas Adams On Mon, Jul 19, 2010 at 10:45 AM, Won Lee wrote: On Mon, Jul 19, 2010 at 12:42 PM, DURETTE, STEVEN J (ATTASIAIT) wrote: Ok... But why should I have to do that? The default OS Application for .cfm files is Dreamweaver, but when I open CFE and double click a .cfm file it opens in CFE. Besides, in some companies, changing defaults like that are locked down. Thanks for the idea though, I might do that as a last resort. (where is my admin's phone number) I agree with you; I don't think one should be forced to change file association at the OS level. It was the only thing I could think of while my CFBuilder was down. W ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335476 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Virtual Directories and cfinclude
The virtual directory will take care of the .css and image files, but you'll need to add a mapping for the CFML to work, I think. :Den -- In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri. Douglas Adams On Mon, Jul 19, 2010 at 10:26 AM, Rick Faircloth wrote: Recently, I've been trying to modularize all code needed for a particular function with a directory that exists outside the root directory of a website. I have some functionality that is common to many websites and need to reference the files on if a site uses said functionality. For instance, I have a real estate website that uses a subdivision function. Not all do, but this one does. I decided to move the subdivision folder outside the root of all the websites that might use it and put it under its own directory in the webroot. I can create a virtual directory in IIS easily enough to reference files within the subdivision folder. However, if I try to reference files within the main websites structure from within the subdivision folder under the webroot using cfinclude, I can't. At least not using relative links, as far as I can tell. I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the main website folder structure so that if that function (subdivisions, in this case) is not used, then none of the files and assets need be part of the website's directory structure and content. Make any sense? In the end, it amounts to wanting to have a way for referencing cfincludes, such as menu structure file, from within the folder structure of the external directory subdivisions as I can reference files from within subdivisions folder by using a virtual directory in IIS. Maybe I'm missing something very obvious. Any feedback would be appreciated. Thanks, Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) changing the default for loading actionscript files in cfeclipse/eclipse
It's all in a day's work, good cf citizen. =) :Den -- It is no coincidence that in no known language does the phrase 'As pretty as an Airport' appear. Douglas Adams On Mon, Jul 19, 2010 at 12:19 PM, DURETTE, STEVEN J (ATTASIAIT) wrote: Thank you VERY much! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335478 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
How to protect a section of output from page break?
I'm trying to generate a PDF w/ CF9. It contains a series of tables (average 10 rows each) and when it's printed, I don't want a page-break to happen within any one table. The doc for cfdocument says it supports the CSS style 'page-break-within' which should let me protect the tables against this but I've had no luck making it work. Does anyone have any examples of this where it does work? I'm at the point where I might just try doing the math myself and get it 85% accurate but I'm hoping for something less kludgy. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335479 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to protect a section of output from page break?
FWIW: I can't speak specifically to CF9 but I've *never* been able to get this to work making PDF's in MX or CF8. On Mon, Jul 19, 2010 at 2:29 PM, Dave Burns cft...@burnsorama.com wrote: I'm trying to generate a PDF w/ CF9. It contains a series of tables (average 10 rows each) and when it's printed, I don't want a page-break to happen within any one table. The doc for cfdocument says it supports the CSS style 'page-break-within' which should let me protect the tables against this but I've had no luck making it work. Does anyone have any examples of this where it does work? I'm at the point where I might just try doing the math myself and get it 85% accurate but I'm hoping for something less kludgy. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335480 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Access Data Source Problem with ColdFusion 9 on 64 bit Windows 7
Hello Dave, Any solution for the following: Windows 7 ColdFuison 9 64 bit - How to connect to MS access 2003 DB? (I saw the solution for 32 bit CF on windows 7) NOTE: as per Paul Kukiel, --- Pretty sure access dosn't work in 64bit ColdFusion 8 or 9 -- Is this is still true or is there a solution? Appreciate your help Girumala ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335481 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: How to protect a section of output from page break?
I have to add, we spent a lot of time trying to get this to work for a client just recently. We got most everything to work as we wanted, but predictable page breaks, widows and orphans still not behave as we hoped. This is a problem area and the CSS support is very spotty. FWIW: I can't speak specifically to CF9 but I've *never* been able to get this to work making PDF's in MX or CF8. On Mon, Jul 19, 2010 at 2:29 PM, Dave Burns cft...@burnsorama.com wrote: Thanks. Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 5293 (20100719) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335482 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Access Data Source Problem with ColdFusion 9 on 64 bit Windows 7
I have a post on this... http://www.coldfusionmuse.com/index.cfm/2009/4/7/MS.Access.Proxy Note the comments - there is an acceptable 64bit commercial driver that does not cost an arm and a leg. -mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: girum...@yahoo.com girum...@yahoo.com [mailto:girum...@yahoo.com] Sent: Monday, July 19, 2010 1:50 PM To: cf-talk Subject: Re: Access Data Source Problem with ColdFusion 9 on 64 bit Windows 7 Hello Dave, Any solution for the following: Windows 7 ColdFuison 9 64 bit - How to connect to MS access 2003 DB? (I saw the solution for 32 bit CF on windows 7) NOTE: as per Paul Kukiel, --- Pretty sure access dosn't work in 64bit ColdFusion 8 or 9 -- Is this is still true or is there a solution? Appreciate your help Girumala ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335483 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to protect a section of output from page break?
The doc says that property is supported though which makes me wonder: a) do only certain values for it work and b) maybe it needs to be applied to a specific HTML element for it work? Or both? I've done some experimentation and so far I haven't hit the magic combo - assuming it can be made to work at all. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335484 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to protect a section of output from page break?
That's true. And the docs have said for years that it's supported. I've spent many many frustrating hours on this and I've not found a solution. If you manage to find one please be sure to post your solution. On Mon, Jul 19, 2010 at 3:03 PM, Dave Burns cft...@burnsorama.com wrote: The doc says that property is supported though which makes me wonder: a) do only certain values for it work and b) maybe it needs to be applied to a specific HTML element for it work? Or both? I've done some experimentation and so far I haven't hit the magic combo - assuming it can be made to work at all. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335485 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFTEXTAREA onClick
That is correct as far as I have been able to determine. If you examine the code (when you use rich text) you'll note a bunch of javascript is generated in the head of the document that grabs all control. I never did find a workaround and went to the CKEditor (which wouldn't help with what you want to do). Larry Stephens -Original Message- From: Bryan Stevenson [mailto:br...@electricedgesystems.com] Sent: Friday, July 16, 2010 4:49 PM To: cf-talk Subject: Re: CFTEXTAREA onClick So it appears that perhaps the onClick and other event attributes of CFTEXTAREA do not fire when richtext=yes. I have tested this (with onClick) and it appears to be the case. Anyways...does anyone know of a workaround? TIA Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335486 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Virtual Directories and cfinclude
Thanks for the insight, Den. Rick -Original Message- From: denstar [mailto:valliants...@gmail.com] Sent: Monday, July 19, 2010 2:20 PM To: cf-talk Subject: Re: Virtual Directories and cfinclude The virtual directory will take care of the .css and image files, but you'll need to add a mapping for the CFML to work, I think. :Den -- In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri. Douglas Adams On Mon, Jul 19, 2010 at 10:26 AM, Rick Faircloth wrote: Recently, I've been trying to modularize all code needed for a particular function with a directory that exists outside the root directory of a website. I have some functionality that is common to many websites and need to reference the files on if a site uses said functionality. For instance, I have a real estate website that uses a subdivision function. Not all do, but this one does. I decided to move the subdivision folder outside the root of all the websites that might use it and put it under its own directory in the webroot. I can create a virtual directory in IIS easily enough to reference files within the subdivision folder. However, if I try to reference files within the main websites structure from within the subdivision folder under the webroot using cfinclude, I can't. At least not using relative links, as far as I can tell. I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the main website folder structure so that if that function (subdivisions, in this case) is not used, then none of the files and assets need be part of the website's directory structure and content. Make any sense? In the end, it amounts to wanting to have a way for referencing cfincludes, such as menu structure file, from within the folder structure of the external directory subdivisions as I can reference files from within subdivisions folder by using a virtual directory in IIS. Maybe I'm missing something very obvious. Any feedback would be appreciated. Thanks, Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335487 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFTEXTAREA onClick
Thanks Larry! Once again LiveDocs lets us downso sad! As you mentioned with all the generated JS code.not only do the event attributes not work, but making a seperate control with it's own events still can't alter the CFTEXTAREA (which I assume is due to the JS that takes control). Oh wellit's still a handy tagjust unnecessarily crippled IMHO like other useful tags such as CFDOCUMENT. Cheers On Mon, 2010-07-19 at 19:24 +, Stephens, Larry V wrote: That is correct as far as I have been able to determine. If you examine the code (when you use rich text) you'll note a bunch of javascript is generated in the head of the document that grabs all control. I never did find a workaround and went to the CKEditor (which wouldn't help with what you want to do). Larry Stephens Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335488 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
coverting string to a numeric value
Hi All- is there a way I can convert a string to number in coldfusion. I could not see any related functions to do this? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335489 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
Could you get by just using textarea instead? On Mon, Jul 19, 2010 at 4:46 PM, Bryan Stevenson br...@electricedgesystems.com wrote: Thanks Larry! Once again LiveDocs lets us downso sad! As you mentioned with all the generated JS code.not only do the event attributes not work, but making a seperate control with it's own events still can't alter the CFTEXTAREA (which I assume is due to the JS that takes control). Oh wellit's still a handy tagjust unnecessarily crippled IMHO like other useful tags such as CFDOCUMENT. Cheers On Mon, 2010-07-19 at 19:24 +, Stephens, Larry V wrote: That is correct as far as I have been able to determine. If you examine the code (when you use rich text) you'll note a bunch of javascript is generated in the head of the document that grabs all control. I never did find a workaround and went to the CKEditor (which wouldn't help with what you want to do). Larry Stephens Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335490 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: coverting string to a numeric value
is there a way I can convert a string to number in coldfusion. I could not see any related functions to do this? ColdFusion is very loosely typed, so you don't need to convert a string to a number. Just use it a numeric operation and it gets treated as a number. Try it, it's fun! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335491 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
On Mon, 2010-07-19 at 16:52 -0400, Michael Grant wrote: Could you get by just using textarea instead? Well I'd still need a rich text editor, but yes I suppose I could. For now the built-in option makes the most sense. I was just hoping to EASILY add some basic JS code to expand the box when it gets focus (there are 20 prompts in this form...so leaving them all at an acceptable height makes for a long formbut used infrequently so it's good enough). This is not the hill I want to die on!! ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335492 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: coverting string to a numeric value
Depending on what you are doing you may want to test the value first to ensure it's a number. You can get hard errors in some cases for data type mismatch... like in queries. cfif IsNumeric(myvar is true DO YOUR THING /cfif Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, July 19, 2010 4:57 PM To: cf-talk Subject: Re: coverting string to a numeric value is there a way I can convert a string to number in coldfusion. I could not see any related functions to do this? ColdFusion is very loosely typed, so you don't need to convert a string to a number. Just use it a numeric operation and it gets treated as a number. Try it, it's fun! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335493 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: coverting string to a numeric value
WHOOPS ... SYNTAX ERROR cfif IsNumeric(myvar) is true Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Monday, July 19, 2010 5:04 PM To: cf-talk Subject: RE: coverting string to a numeric value Depending on what you are doing you may want to test the value first to ensure it's a number. You can get hard errors in some cases for data type mismatch... like in queries. cfif IsNumeric(myvar is true DO YOUR THING /cfif Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, July 19, 2010 4:57 PM To: cf-talk Subject: Re: coverting string to a numeric value is there a way I can convert a string to number in coldfusion. I could not see any related functions to do this? ColdFusion is very loosely typed, so you don't need to convert a string to a number. Just use it a numeric operation and it gets treated as a number. Try it, it's fun! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335494 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
Ah I see. I understand then. I do find it odd that the onClick code you add doesn't get appended in CF. Any chance you can add a click or focus listener to the textarea after the page is rendered? On Mon, Jul 19, 2010 at 4:59 PM, Bryan Stevenson br...@electricedgesystems.com wrote: On Mon, 2010-07-19 at 16:52 -0400, Michael Grant wrote: Could you get by just using textarea instead? Well I'd still need a rich text editor, but yes I suppose I could. For now the built-in option makes the most sense. I was just hoping to EASILY add some basic JS code to expand the box when it gets focus (there are 20 prompts in this form...so leaving them all at an acceptable height makes for a long formbut used infrequently so it's good enough). This is not the hill I want to die on!! ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335495 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: coverting string to a numeric value
Or the short way cfif isNumeric(myvar)/cfif On Mon, Jul 19, 2010 at 5:05 PM, Robert Harrison rob...@austin-williams.com wrote: WHOOPS ... SYNTAX ERROR cfif IsNumeric(myvar) is true Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Monday, July 19, 2010 5:04 PM To: cf-talk Subject: RE: coverting string to a numeric value Depending on what you are doing you may want to test the value first to ensure it's a number. You can get hard errors in some cases for data type mismatch... like in queries. cfif IsNumeric(myvar is true DO YOUR THING /cfif Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, July 19, 2010 4:57 PM To: cf-talk Subject: Re: coverting string to a numeric value is there a way I can convert a string to number in coldfusion. I could not see any related functions to do this? ColdFusion is very loosely typed, so you don't need to convert a string to a number. Just use it a numeric operation and it gets treated as a number. Try it, it's fun! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335496 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
On Mon, 2010-07-19 at 17:09 -0400, Michael Grant wrote: Ah I see. I understand then. I do find it odd that the onClick code you add doesn't get appended in CF. Any chance you can add a click or focus listener to the textarea after the page is rendered? If I used a standard textarea I'm sure I canbut the CFTEXTAREA gets locked out once renderedno events from its own event attributes AND no access from other controls that try and alter the height of the box via JS. Really this is dead simple except the thing is locked downgr. I do need the rich text capabilities, but I'd be concerned that even using CKEditor or TinyMCE (not built-in to CF) that I'd experience the same issues. This nice-to-have just isn't worth the push in my case ;-) That saidif anyone has a solution...I'm all ears! Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335497 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
TinyMCE has event handlers you can setup to fire onfocus, etc. I was pretty sure the stand-alone fck editor did, as well, but I can't find the docs on it. On Mon, Jul 19, 2010 at 4:24 PM, Bryan Stevenson br...@electricedgesystems.com wrote: On Mon, 2010-07-19 at 17:09 -0400, Michael Grant wrote: Ah I see. I understand then. I do find it odd that the onClick code you add doesn't get appended in CF. Any chance you can add a click or focus listener to the textarea after the page is rendered? If I used a standard textarea I'm sure I canbut the CFTEXTAREA gets locked out once renderedno events from its own event attributes AND no access from other controls that try and alter the height of the box via JS. Really this is dead simple except the thing is locked downgr. I do need the rich text capabilities, but I'd be concerned that even using CKEditor or TinyMCE (not built-in to CF) that I'd experience the same issues. This nice-to-have just isn't worth the push in my case ;-) That saidif anyone has a solution...I'm all ears! Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335498 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Salesforce CFC?
Has anyone found a way to use Salesforce.cfc ( http://salesforcecfc.riaforge.org/) with a more recent Salesforce web services API? (17+) I have gotten through the bulk of a Salesforce integration with the CFC mostly as-is, but now I'm running into a roadblock because I want to access/update a Salesforce field that isn't recognized in API version 11.1. I greatly appreciate any insights on updating this CFC. Thanks, Billy Cox ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335499 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
On Mon, Jul 19, 2010 at 3:24 PM, Bryan Stevenson wrote: ... That saidif anyone has a solution...I'm all ears! Use the hooks! I don't remember what they are offhand, but for the amount of times this comes up, you'd think it would be documented somewhere or that some random person would shout use the force-er-hooks!. Also, there are *tons* of nifty JS debugging utilities-- I use dojo and it has very nice object dumping-- use them to see what methods and whatnot are available on the thing you're trying to work with. I'm seriously wondering if I'm just tripping out or what-- does no one remember how to do this? Don't make me search the archives. ;) :Den -- You live and learn. At any rate, you live. Douglas Adams ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335500 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
On Mon, 2010-07-19 at 15:41 -0600, denstar wrote: On Mon, Jul 19, 2010 at 3:24 PM, Bryan Stevenson wrote: ... That saidif anyone has a solution...I'm all ears! Use the hooks! I don't remember what they are offhand, but for the amount of times this comes up, you'd think it would be documented somewhere or that some random person would shout use the force-er-hooks!. Also, there are *tons* of nifty JS debugging utilities-- I use dojo and it has very nice object dumping-- use them to see what methods and whatnot are available on the thing you're trying to work with. I'm seriously wondering if I'm just tripping out or what-- does no one remember how to do this? Don't make me search the archives. ;) :Den So what has the hooks? CFTEXTAREA and the JS produced by Adobe OR is it something specific to FCKEditor? I'm with you Den.this has to be documented somewhere, but I'm just not having any luck!! Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335501 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
I think this will get you the underlying object: ColdFusion.RichText.getEditorObject('your_textarea_id'); (I assume the equiv of: FCKeditorAPI.GetInstance('InstanceName') ;) Then, check this out: http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/JavaScript_API And I remember doing something like this, long ago: *** function FCKeditor_OnComplete( editorInstance ) { editorInstance.Events.AttachEvent( 'OnSelectionChange', DoSomething ) ; } var counter = 0 ; function DoSomething( editorInstance ) { // This is a sample function that shows in the title bar the number of times // the OnSelectionChange event is called. window.document.title = editorInstance.Name + ' : ' + ( ++counter ) ; } *** That OnComplete being a special FCK function. The new CKEditor is way niftier. Looking at the old API brings back memories. =) -- The last time anybody made a list of the top hundred character attributes of New Yorkers, common sense snuck in at number 79. Douglas Adams, Mostly Harmless ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335502 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
Thanks Denthat gives me something to chase down.much appreciated!! On Mon, 2010-07-19 at 16:04 -0600, denstar wrote: I think this will get you the underlying object: ColdFusion.RichText.getEditorObject('your_textarea_id'); (I assume the equiv of: FCKeditorAPI.GetInstance('InstanceName') ;) Then, check this out: http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/JavaScript_API And I remember doing something like this, long ago: *** function FCKeditor_OnComplete( editorInstance ) { editorInstance.Events.AttachEvent( 'OnSelectionChange', DoSomething ) ; } var counter = 0 ; function DoSomething( editorInstance ) { // This is a sample function that shows in the title bar the number of times // the OnSelectionChange event is called. window.document.title = editorInstance.Name + ' : ' + ( ++counter ) ; } *** That OnComplete being a special FCK function. The new CKEditor is way niftier. Looking at the old API brings back memories. =) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335503 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
Den, You totally rock. This solves a world of problems for me. MM On Mon, Jul 19, 2010 at 3:04 PM, denstar valliants...@gmail.com wrote: I think this will get you the underlying object: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335504 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Facebook Connect and coldfusion
I finally got this roughly working using some different code: http://facebookgraph.riaforge.org/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335505 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFTEXTAREA onClick
On Mon, Jul 19, 2010 at 5:17 PM, Maureen wrote: Den, You totally rock. This solves a world of problems for me. MM WOOHOO! Here's a complete, working example: cfsavecontent variable=hook script function doIt() { alert( Say cheese! ) ; } function FCKeditor_OnComplete( editorInstance ) { editorInstance.Events.AttachEvent( 'OnSelectionChange', doIt ) ; } /script /cfsavecontent cfhtmlhead text=#hook# / html body cfform cftextarea name=fun id=fun onclick=javascript:alert('wee') richtext=truetry me/cftextarea /cfform /body/htm ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335506 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
deaddocs (was Re: CFTEXTAREA onClick)
Now this is lame: I went to livedocs to add the richtext binding magic for cf8, and they've cut off comments for this version of the product. That right there violates all that I thought was cool with livedocs. Guess anything below 9 is really deaddocs. Hey, I like that. I'm going to create a live cfml documentation site like cfquickdocs but call it cfdeaddocs. Pretty catchy, neh? :cfdeadden -- The last time anybody made a list of the top hundred character attributes of New Yorkers, common sense snuck in at number 79. Douglas Adams, Mostly Harmless ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335507 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: (ot) Mail servers
I've used Mdaemon for a longgg time, since the days of dial up connections! Really great piece of software. Low server overhead and processess high mail volumes with no trouble at all and amazingly fast - by far the fastest I have ever used. It also handles attachments well, if you are integrating it with CF. It has a built in DSN for database connectivity which is great for managing large mail lists. Smartermail is good, but I would not personally recommend it for high mail volumes. I have also had problems getting mail attachments into cfpop with Smartermail. They both offer a web interface as well as pop,imap and smtp. For anti-spam I prefer Mdaemon, especially as Smartermail does not (with the version I have) stop bounces and this can even get your server blacklisted if the volumes are high. Smartmail has a SOAP based API which is great for integration, I built a customer portal so they can manage theor own email accounts, etc I like MS Exchange, but the downside is the server overhead, espscially if you don't even want a lot of the features. iMail I found to be buggy as hell, and I'm being kind. Cheap, tacky and doesn't live up to the sales pitch. Hope this helps, Jenny -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: 07 July 2010 20:37 To: cf-talk Subject: Re: (ot) Mail servers I've been using MDaemon for years and found that it works great. Other mail servers I've used and didn't much care for include Coolfusion IMS Lite and Gordano NTMail (way long time ago). Been using MDaemon for 8 years now here at Duke as a small departmental mail server (now it serves exclusively as a mailing list server and hosts the POP3 part of our ticketing system which I built in CF). I've also had one or two cases over the years where I needed to call Alt-N for MDaemon support, and found them to be very helpful as well. Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335508 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Facebook Connect and coldfusion
Awesome! Thank you for posting this! Rick Sanders Webenergy www.webenergy.ca -Original Message- From: Jeff Gladnick [mailto:jeff.gladn...@gmail.com] Sent: Monday, July 19, 2010 8:16 PM To: cf-talk Subject: Re: Facebook Connect and coldfusion I finally got this roughly working using some different code: http://facebookgraph.riaforge.org/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335509 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm