Re: Apache and CF7
Surely you mean Java 1.4, and that's the highest supported JDK for CF7. Are you choosing to use an unsupported JDK? On Feb 9, 2008 1:39 PM, Phillip M. Vector [EMAIL PROTECTED] wrote: Unfortunally, that only works with Javascript 1.4 or below. Otherwise, I get a MBean error. Adrian Moreno wrote: You need to apply this Hot fix to use CF7 with Apache 2.2 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=8001e97 Once you apply the hot fix, you don't have to run the changes by command-line, you can use the Web Server Configuration Tool that's in your CF 7 program group off the Start Menu. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298610 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache and CF7
As Adrian says, you are using Apache 2.2, but you are trying to load the web connecter for Apache 2.0. The reason for the MBean error is most likely down to the fact you have Java 5 (or upwards installed). You need to use the 1.4 JDK to run the web server connector on CF7 http://kb.adobe.com/selfservice/viewContent.do?externalId=fa9e26a2sliceId=1 Andy On 09/02/2008, Phillip M. Vector [EMAIL PROTECTED] wrote: Unfortunally, that only works with Javascript 1.4 or below. Otherwise, I get a MBean error. Adrian Moreno wrote: You need to apply this Hot fix to use CF7 with Apache 2.2 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=8001e97 Once you apply the hot fix, you don't have to run the changes by command-line, you can use the Web Server Configuration Tool that's in your CF 7 program group off the Start Menu. HTH, Adrian After trying to redo my CF 7 set up with apache (because I also want to start learning PHP to increase my marketability, I have this error. == The Apache service named reported the following error: httpd.exe: Syntax error on line 485 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/CFusionMX7/runtime/lib/wsconfig/1/mod_jrun20.so into server: The specified procedure could not be found. == I added this to the httpd.conf at the end and yes, I verified the file is there. == # JRun Settings LoadModule jrun_module c:/CFusionMX7/runtime/lib/wsconfig/1/mod_jrun20.so IfModule mod_jrun.c JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig IgnoreSuffixmap false JRunConfig Serverstore c:/CFusionMX7/runtime/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51000 #JRunConfig Errorurl optionally redirect to this URL on errors JRunConfig jrun-handler .jsp .jws .cfm .cfml .cfc .cfswf .cfr /IfModule == When I try to go to the page, I get a download box to download the cfm file. Most likely because I couldn't get this active to reconize the cfm file to process via the jrun server. So my apache won't even start up now and I'm going bald.. Any ideas on what could be causing the trouble and how to fix it? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298611 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache and CF7
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of Apache are you trying to use with CF7. I have 3 CF7 Servers running with Apache 2.0 and Apache 2.2 without any issues along with countless VMWare Images with the developers version under Apache. If running Apache 2.2 you will need the new version of the wsconfig.jar file that is floating around the internet. On the Java issue, I generally uninstall the JVM, install the 1.4 version to make sure everything is working correctly, then upgrade the JVM to the latest version once the wsconfig tool has done its job. Phillip M. Vector wrote: | I found that is probably the issue. I downloaded the new file and now, I | can't load it under the current version of Java (need 1.4). *sighs* | | I think I'm going to go back to how it was and just use the built in | webserver and give up on apache ever running CF7. | | Dave Watts wrote: | After trying to redo my CF 7 set up with apache (because I | also want to start learning PHP to increase my marketability, | I have this error. | == | The Apache service named reported the following error: | httpd.exe: Syntax error on line 485 of C:/Program | Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: | Cannot load | C:/CFusionMX7/runtime/lib/wsconfig/1/mod_jrun20.so into | server: The specified procedure could not be found. | == | | ... | | So my apache won't even start up now and I'm going bald.. Any | ideas on what could be causing the trouble and how to fix it? | Well, first, you don't need to hook CF up to Apache, you can just leave them | separate. | | That said, do you have all of the CF 7 hotfixes installed? I'm guessing that | you're using a relatively new version of Apache, and the wsconfig.jar that | came with CF 7 may be out of date. | | Dave Watts, CTO, Fig Leaf Software | http://www.figleaf.com/ | | Fig Leaf Training: Adobe/Google/Paperthin Certified Partners | http://training.figleaf.com/ | | WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! | http://www.webmaniacsconference.com/ | | | | ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298612 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Dreamweaver CS3 Mac issues with opening files/changing code
Hey gang - I've googled around a fair bit, poked in the prefs, but no love yet. Hence, this post. I recently picked up a new Mac tower (sweet!) and I've got Dreamweaver CS3 loaded up. All works fine except for one annoying issue - with certain files, Dreamweaver is changing my code when opening the file, and changing it so that it is invalid. For example, I have a little bit of code that displays the contents of a query. I have it set to drop ten items in each column, then close the cell and start a fresh one. Works fine. table border=0 cellspacing=0 cellpadding=2 tr td align=left valign=top cfloop query=queryName #variable#br / cfset curMod = currentrow MOD 10 cfif curMod EQ 0/tdtd align=left valign=top/cfif /cfloop /td /tr /table Looking at the script in TextEdit, outside DW, the code is intact. But when I open it in DW: table border=0 cellspacing=0 cellpadding=2 tr td align=left valign=top cfloop query=queryName #variable#br / cfset curMod = currentrow MOD 10 cfif curMod EQ 0/tdtd align=left valign=top (close /cfif is gone!) /cfloop /cfif/td (oh here it is...) /tr /table It's subtle, but what DW is doing is taking the /cfif off the end of the line starting with cfif curMod EQ 0 and sticking it after the /cfloop tag - hence making the code break if I push the file up to my server. DW also color-codes the opening cfif tag as black, where it's coding normal CF code in red (defaults). However, if I edit the black coded cfif tag at all - even add a space - it recognizes it and colors it red, as expected. I've been poking around the app settings, trying to find an option to turn off to keep this from happening, but no luck yet. I seem to recall having a similar issue with DW on the PC, some unknown time period in the past, but it's been long enough that I simply don't recall what I did at that point to solve the issue. Halp! :( ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298613 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Dreamweaver CS3 Mac issues with opening files/changing code
For what's worth, I wasn't able to reproduce the issue on DW CS 3 on Win XP (different settings?). But I am not surprised by what you are seeing, DW still suffers from elusive bugs that can cause corrupted code. You can report your problem here: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform Massimo Foti, web-programmer for hire Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298614 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Beyond Captcha
Tom Chiverton said the following on 2/8/2008 3:41 AM: Frankly, I think we users / developers spend way too much time trying to one-up the lowlife spammers. Instead, we should quit wasting time, re-channel our energies, grab some baseball bats, and start hunting the bastards down and beat the livin' crap out of 'em! I was thinking that castrating a few might set an example for the others to decide if they really want to take the continuing risk, as well as throw a little chlorine in the gene pool by sterilizing them. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298618 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Huh? EMBED and OBJECT Tags Get Modified During CFFILE WRITE?
I use two simple templates in a rudimentary online file editing system that lets me edit any page of a site when I am logged in. The functionality works by using CFFILE to read a file and display its contents in a TEXTAREA field from where I can then use CFFILE to WRITE it back to disk as an ASCII .cfm file after modifiying the code and/or content. It has worked well for years and enables me to make minor mods from any web browser, so I don't need to be sitting at my own machine with FTP program loaded and configured. There is a backup automatically made of every file edited and a log created which indicates who edited each one, so I know nobody has gotten into my online editing system by hacking my account and logging in. Somehow, recently something has changed dramatically for one page I recently tried to edit which has a lot of YouTube videos embedded in it. The CFFILE operation doesn't save the code properly but converts every EMBED and OBJECT tag (no CF tags that I know of) into InvalidTag! I know it is not my own code doing this because I have inspected it carefully and it is not very complicated to begin with so I could not miss such a thing that might be doing it. I can upload good code containing EMBED and OBJECT tags via FTP and the code will not be altered in that case so I know the code changes do not happen when CF processes the code or by the webserver or other post-processing somehow, it has to be happening during the CFFILE WRITE operation only when I am editing through my online interface. So I can use FTP to make things work okay without changing any of my code but I want my online editing to work too because it is so convenient to have sometimes. The webserver is running Windows 2003 Server and CF is version 7,0,0,91690 (MX 7) Enterprise version, the webserver is IIS 6.0. Anybody have any idea what setting somewhere (no doubt for security) is changing all my EMBED and OBJECT tags to InvalidTag when CFFILE WRITE occurs? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298617 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Printing mailing labels
What do you guys use to print mailing labels with CF? I saw a cf_avery tag, but it looked kinda old. Thanks, Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298616 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
SPRY and Coldfusion.window.create
When placing SPRY inside a cfwindow it works fine. However when using Coldfusion.window.create to create the window from the index page it throws me an error processing javascript in markup error. For some reason it cant pass the script from the original page to the created window. I have tried putting script src=CFIDE/scripts/ajax/spry/widgets/textfieldvalidation/SpryValidationTextField.js language=javascript type=text/javascript/script in the index page but still with no luck! any suggestions to try and overcome this would be greatly appreciated. thanks ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298615 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Printing mailing labels
I would think the best way is to do a CFreport to PDF and print that way. http://www.adobe.com/devnet/coldfusion/articles/averylabels.html J.J. On 2/9/08, Will Tomlinson [EMAIL PROTECTED] wrote: What do you guys use to print mailing labels with CF? I saw a cf_avery tag, but it looked kinda old. Thanks, Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298619 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: passing URL variables to a cfwindow
any luck on this steve? I noticed the same problem but have not had time to delve any deeper. Jose On Feb 9, 2008 12:54 AM, Steve Good [EMAIL PROTECTED] wrote: Is it possible to pass variables through the URL scope to a cfwindow? If so, how? Thanks! :) -- ~Steve ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298620 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Admin API
Does the Admin API exist in CF8 or has it be replaced by something else? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298621 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ColdFusion: Some People Just Don't Know Any Better
Isaac you are insanely smart and you know it... quit rubbing it in. ;) Heh... it's funny, I actually have a mild complex that makes me worry that others perceive me as being egotistical. The other article prior to this one, the Devil Went Down to Silicon Valley, I've edited once or twice after posting the url, just because I realized that for example I hadn't also mentioned that I'm equally as guilty of not working the time into my schedule to experiment with other people's projects, like it took me a while before I got around to examining Reactor for the first time. The article wasn't intended as a dig on anyone, it was intended to be mostly more of a commentary about companies needing to rethink the relationship between work and deadlines to allow their programmers the time to experiment on the clock, which I think would help everyone build better skills and ultimately result in better service for our clients. But I get all self-conscious about putting it out there, thinking people are likely to misread me as bragging. :P I'll readily admit to being advanced -- but I certainly didn't get here overnight. I'm coming up on my 10yr anniversary with ColdFusion and I've had almost no life outside of work for a number of years, which has a lot to do with some personal challenges I'm still working through. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298624 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Printing mailing labels
What do you guys use to print mailing labels with CF? I saw a cf_avery tag, but it looked kinda old. My guess would be that just uses cfdocument to generate a PDF with known dimensions for the labels on an Avery sheet. I'd been planning to do this myself for one of my own projects and just hadn't got around to it yet. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298623 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: passing URL variables to a cfwindow
No luck yet, but the other person working on the code may have found a solution. I have not yet seen the code yet though. ~Steve On Feb 9, 2008, at 8:56 AM, Jose Diaz [EMAIL PROTECTED] wrote: any luck on this steve? I noticed the same problem but have not had time to delve any deeper. Jose On Feb 9, 2008 12:54 AM, Steve Good [EMAIL PROTECTED] wrote: Is it possible to pass variables through the URL scope to a cfwindow? If so, how? Thanks! :) -- ~Steve ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298622 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Admin API
It exists. I use it on my Illudium Code Generator which works the same on both 7 and 8. -- Brian Rinaldi blog - http://www.remotesynthesis.com/blog ColdFusion Open Source List- http://www.remotesynthesis.com/cfopensourcelist Boston CFUG - http://www.bostoncfug.org Adobe Community Expert - http://www.adobe.com/communities/experts/members/brian_rinaldi.html On Sat, Feb 9, 2008 at 1:06 PM, Jim McAtee [EMAIL PROTECTED] wrote: Does the Admin API exist in CF8 or has it be replaced by something else? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298627 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
Yeah. It's really a pain. So now, I have apache up and running for my PHP and other language testing and learning and the dedicated CF server up for my other testing and such with CF apps I make. It's a pain, but at least it works. s. isaac dealey wrote: I found that is probably the issue. I downloaded the new file and now, I can't load it under the current version of Java (need 1.4). *sighs* Wow, that's way more version dependency hell than I remember going through for Apache 2.2 ... I'd installed 2.2 early and then had to download a new connector and manually install it, but it hadn't lead to yet another version dependancy block. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298626 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
I found that is probably the issue. I downloaded the new file and now, I can't load it under the current version of Java (need 1.4). *sighs* Wow, that's way more version dependency hell than I remember going through for Apache 2.2 ... I'd installed 2.2 early and then had to download a new connector and manually install it, but it hadn't lead to yet another version dependancy block. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298625 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Apache and CF7
Phil, I seriously don't know what you're talking about. Apache and CF 7 very simple to install. Download apache 2.x and it works out of the box. Go with Apache 2.2.x and you need the wsconfig update. I think you're complaining that you can't run wsconfig? Perhaps you should try the java that comes with CF instead of whatever java you have on your system. Worst comes to worst, just open the wsconfig.jar with winrar or something and extract the proper mod_jrun22.so file and put it somewhere. Then put the configuration into apache manually. Mine looks something like this: LoadModule jrun_module C:/JRun4/lib/wsconfig/1/mod_jrun22.so IfModule mod_jrun22.c JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore C:/JRun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 #JRunConfig Errorurl optionally redirect to this URL on errors #JRunConfig ProxyRetryInterval 600 #JRunConfig ConnectTimeout 15 #JRunConfig RecvTimeout 300 #JRunConfig SendTimeout 15 AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf /IfModule You might need to tweak the port in the bootstrap line to match the one in your jrun.xml Finally, since another thing that wsconfig does for you is activate the JrunProxyService, find your jrun.xml for this cf instance, and find the following line: service class=jrun.servlet.jrpp.JRunProxyService name=ProxyService Underneath you will see something like this: attribute name=deactivatedtrue/attribute attribute name=port51020/attribute Make sure deactivated is false and that the port matches the one in the apache config. Restart CF, restart Apache and presto. Hope this helps, Russ -Original Message- From: Phillip M. Vector [mailto:[EMAIL PROTECTED] Sent: Saturday, February 09, 2008 3:11 PM To: CF-Talk Subject: Re: Apache and CF7 Yeah. It's really a pain. So now, I have apache up and running for my PHP and other language testing and learning and the dedicated CF server up for my other testing and such with CF apps I make. It's a pain, but at least it works. s. isaac dealey wrote: I found that is probably the issue. I downloaded the new file and now, I can't load it under the current version of Java (need 1.4). *sighs* Wow, that's way more version dependency hell than I remember going through for Apache 2.2 ... I'd installed 2.2 early and then had to download a new connector and manually install it, but it hadn't lead to yet another version dependancy block. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298628 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
I manually extracted the connectors and tried refering to them. Same issue. Can't load them. I'm also not using JRun. and as for using a more advanced version of javascript to run CF, I'd rather use the most up to data java then not. Requiring an uninstall to make something work isn't a good idea IMHO. But.. I have something that works now. Not the best, but at least I'm back and functional. Russ wrote: Phil, I seriously don't know what you're talking about. Apache and CF 7 very simple to install. Download apache 2.x and it works out of the box. Go with Apache 2.2.x and you need the wsconfig update. I think you're complaining that you can't run wsconfig? Perhaps you should try the java that comes with CF instead of whatever java you have on your system. Worst comes to worst, just open the wsconfig.jar with winrar or something and extract the proper mod_jrun22.so file and put it somewhere. Then put the configuration into apache manually. Mine looks something like this: LoadModule jrun_module C:/JRun4/lib/wsconfig/1/mod_jrun22.so IfModule mod_jrun22.c JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore C:/JRun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 #JRunConfig Errorurl optionally redirect to this URL on errors #JRunConfig ProxyRetryInterval 600 #JRunConfig ConnectTimeout 15 #JRunConfig RecvTimeout 300 #JRunConfig SendTimeout 15 AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf /IfModule You might need to tweak the port in the bootstrap line to match the one in your jrun.xml Finally, since another thing that wsconfig does for you is activate the JrunProxyService, find your jrun.xml for this cf instance, and find the following line: service class=jrun.servlet.jrpp.JRunProxyService name=ProxyService Underneath you will see something like this: attribute name=deactivatedtrue/attribute attribute name=port51020/attribute Make sure deactivated is false and that the port matches the one in the apache config. Restart CF, restart Apache and presto. Hope this helps, Russ -Original Message- From: Phillip M. Vector [mailto:[EMAIL PROTECTED] Sent: Saturday, February 09, 2008 3:11 PM To: CF-Talk Subject: Re: Apache and CF7 Yeah. It's really a pain. So now, I have apache up and running for my PHP and other language testing and learning and the dedicated CF server up for my other testing and such with CF apps I make. It's a pain, but at least it works. s. isaac dealey wrote: I found that is probably the issue. I downloaded the new file and now, I can't load it under the current version of Java (need 1.4). *sighs* Wow, that's way more version dependency hell than I remember going through for Apache 2.2 ... I'd installed 2.2 early and then had to download a new connector and manually install it, but it hadn't lead to yet another version dependancy block. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298630 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
sha-512 hash function
Hi i know this is not a cf question but seeing as you guys are the experts i just wanted your feedback. i need a javascript function that converts a string into a hashed string using the sha-512 algorithm, if anyone know of one? thanks very much richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298629 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Admin API
Is there any documentation of the API anywhere? I can't find anything in the CF8 livedocs. All I could find were a couple of examples in the CF7 docs: http://livedocs.adobe.com/coldfusion/7/htmldocs/1734.htm - Original Message - From: Brian Rinaldi [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, February 09, 2008 1:11 PM Subject: Re: Admin API It exists. I use it on my Illudium Code Generator which works the same on both 7 and 8. -- Brian Rinaldi blog - http://www.remotesynthesis.com/blog ColdFusion Open Source List- http://www.remotesynthesis.com/cfopensourcelist Boston CFUG - http://www.bostoncfug.org Adobe Community Expert - http://www.adobe.com/communities/experts/members/brian_rinaldi.html On Sat, Feb 9, 2008 at 1:06 PM, Jim McAtee [EMAIL PROTECTED] wrote: Does the Admin API exist in CF8 or has it be replaced by something else? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298631 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Admin API
http://livedocs.adobe.com/coldfusion/8/htmldocs/basiconfig_37.html The rest of the docs are described there: To view the methods, method arguments, and documentation for the Administrator API CFCs, use the CFC Explorer. For example, to view datasource.cfc when running in the server configuration, open a browser to http://localhost:8500/CFIDE/adminapi/datasource.cfc.; On Feb 10, 2008 6:52 AM, Jim McAtee [EMAIL PROTECTED] wrote: Is there any documentation of the API anywhere? I can't find anything in the CF8 livedocs. All I could find were a couple of examples in the CF7 docs: http://livedocs.adobe.com/coldfusion/7/htmldocs/1734.htm - Original Message - From: Brian Rinaldi [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, February 09, 2008 1:11 PM Subject: Re: Admin API It exists. I use it on my Illudium Code Generator which works the same on both 7 and 8. -- Brian Rinaldi blog - http://www.remotesynthesis.com/blog ColdFusion Open Source List- http://www.remotesynthesis.com/cfopensourcelist Boston CFUG - http://www.bostoncfug.org Adobe Community Expert - http://www.adobe.com/communities/experts/members/brian_rinaldi.html On Sat, Feb 9, 2008 at 1:06 PM, Jim McAtee [EMAIL PROTECTED] wrote: Does the Admin API exist in CF8 or has it be replaced by something else? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298632 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache and CF7
Java, not Javascript. You understand you are running a config completely unsupported by Adobe right? This means that if you have a server issue, the first thing they will say is go back to Java 1.4. On Feb 10, 2008 6:09 AM, Phillip M. Vector [EMAIL PROTECTED] wrote: I manually extracted the connectors and tried refering to them. Same issue. Can't load them. I'm also not using JRun. and as for using a more advanced version of javascript to run CF, I'd rather use the most up to data java then not. Requiring an uninstall to make something work isn't a good idea IMHO. But.. I have something that works now. Not the best, but at least I'm back and functional. Russ wrote: Phil, I seriously don't know what you're talking about. Apache and CF 7 very simple to install. Download apache 2.x and it works out of the box. Go with Apache 2.2.x and you need the wsconfig update. I think you're complaining that you can't run wsconfig? Perhaps you should try the java that comes with CF instead of whatever java you have on your system. Worst comes to worst, just open the wsconfig.jar with winrar or something and extract the proper mod_jrun22.so file and put it somewhere. Then put the configuration into apache manually. Mine looks something like this: LoadModule jrun_module C:/JRun4/lib/wsconfig/1/mod_jrun22.so IfModule mod_jrun22.c JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore C:/JRun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 #JRunConfig Errorurl optionally redirect to this URL on errors #JRunConfig ProxyRetryInterval 600 #JRunConfig ConnectTimeout 15 #JRunConfig RecvTimeout 300 #JRunConfig SendTimeout 15 AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf /IfModule You might need to tweak the port in the bootstrap line to match the one in your jrun.xml Finally, since another thing that wsconfig does for you is activate the JrunProxyService, find your jrun.xml for this cf instance, and find the following line: service class=jrun.servlet.jrpp.JRunProxyService name=ProxyService Underneath you will see something like this: attribute name=deactivatedtrue/attribute attribute name=port51020/attribute Make sure deactivated is false and that the port matches the one in the apache config. Restart CF, restart Apache and presto. Hope this helps, Russ -Original Message- From: Phillip M. Vector [mailto:[EMAIL PROTECTED] Sent: Saturday, February 09, 2008 3:11 PM To: CF-Talk Subject: Re: Apache and CF7 Yeah. It's really a pain. So now, I have apache up and running for my PHP and other language testing and learning and the dedicated CF server up for my other testing and such with CF apps I make. It's a pain, but at least it works. s. isaac dealey wrote: I found that is probably the issue. I downloaded the new file and now, I can't load it under the current version of Java (need 1.4). *sighs* Wow, that's way more version dependency hell than I remember going through for Apache 2.2 ... I'd installed 2.2 early and then had to download a new connector and manually install it, but it hadn't lead to yet another version dependancy block. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298633 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
A suggestion of placing the # of msgs info to the left of a msg title
It would be much easier to read. Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298636 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
The did update CF to work with Java 1.5 and Java 6 - by bringing out CF8. CF7 is currently stuck at 1.4, bad form or not. On Feb 10, 2008 8:39 AM, Phillip M. Vector [EMAIL PROTECTED] wrote: Yes. I realize I meant Java and not Javascript. That's why I said Java. :) and the not supported is no longer an issue. But if it was, it would be a cop out by Adobe. I mean, if 1.4 comes out and they write up a program that works, but after it goes to 1.5 or 1.6, it doesn't, then they should update that program to work again. Espically when new products come out that are written for 1.5 and 1.6. Asking a developer to downgrade to have their app run is bad form IMHO. James Holmes wrote: Java, not Javascript. You understand you are running a config completely unsupported by Adobe right? This means that if you have a server issue, the first thing they will say is go back to Java 1.4. On Feb 10, 2008 6:09 AM, Phillip M. Vector [EMAIL PROTECTED] wrote: I manually extracted the connectors and tried refering to them. Same issue. Can't load them. I'm also not using JRun. and as for using a more advanced version of javascript to run CF, I'd rather use the most up to data java then not. Requiring an uninstall to make something work isn't a good idea IMHO. But.. I have something that works now. Not the best, but at least I'm back and functional. Russ wrote: Phil, I seriously don't know what you're talking about. Apache and CF 7 very simple to install. Download apache 2.x and it works out of the box. Go with Apache 2.2.x and you need the wsconfig update. I think you're complaining that you can't run wsconfig? Perhaps you should try the java that comes with CF instead of whatever java you have on your system. Worst comes to worst, just open the wsconfig.jar with winrar or something and extract the proper mod_jrun22.so file and put it somewhere. Then put the configuration into apache manually. Mine looks something like this: LoadModule jrun_module C:/JRun4/lib/wsconfig/1/mod_jrun22.so IfModule mod_jrun22.c JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore C:/JRun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 #JRunConfig Errorurl optionally redirect to this URL on errors #JRunConfig ProxyRetryInterval 600 #JRunConfig ConnectTimeout 15 #JRunConfig RecvTimeout 300 #JRunConfig SendTimeout 15 AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf /IfModule You might need to tweak the port in the bootstrap line to match the one in your jrun.xml Finally, since another thing that wsconfig does for you is activate the JrunProxyService, find your jrun.xml for this cf instance, and find the following line: service class=jrun.servlet.jrpp.JRunProxyService name=ProxyService Underneath you will see something like this: attribute name=deactivatedtrue/attribute attribute name=port51020/attribute Make sure deactivated is false and that the port matches the one in the apache config. Restart CF, restart Apache and presto. Hope this helps, Russ -Original Message- From: Phillip M. Vector [mailto:[EMAIL PROTECTED] Sent: Saturday, February 09, 2008 3:11 PM To: CF-Talk Subject: Re: Apache and CF7 Yeah. It's really a pain. So now, I have apache up and running for my PHP and other language testing and learning and the dedicated CF server up for my other testing and such with CF apps I make. It's a pain, but at least it works. s. isaac dealey wrote: I found that is probably the issue. I downloaded the new file and now, I can't load it under the current version of Java (need 1.4). *sighs* Wow, that's way more version dependency hell than I remember going through for Apache 2.2 ... I'd installed 2.2 early and then had to download a new connector and manually install it, but it hadn't lead to yet another version dependancy block. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298635 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
Yes. I realize I meant Java and not Javascript. That's why I said Java. :) and the not supported is no longer an issue. But if it was, it would be a cop out by Adobe. I mean, if 1.4 comes out and they write up a program that works, but after it goes to 1.5 or 1.6, it doesn't, then they should update that program to work again. Espically when new products come out that are written for 1.5 and 1.6. Asking a developer to downgrade to have their app run is bad form IMHO. James Holmes wrote: Java, not Javascript. You understand you are running a config completely unsupported by Adobe right? This means that if you have a server issue, the first thing they will say is go back to Java 1.4. On Feb 10, 2008 6:09 AM, Phillip M. Vector [EMAIL PROTECTED] wrote: I manually extracted the connectors and tried refering to them. Same issue. Can't load them. I'm also not using JRun. and as for using a more advanced version of javascript to run CF, I'd rather use the most up to data java then not. Requiring an uninstall to make something work isn't a good idea IMHO. But.. I have something that works now. Not the best, but at least I'm back and functional. Russ wrote: Phil, I seriously don't know what you're talking about. Apache and CF 7 very simple to install. Download apache 2.x and it works out of the box. Go with Apache 2.2.x and you need the wsconfig update. I think you're complaining that you can't run wsconfig? Perhaps you should try the java that comes with CF instead of whatever java you have on your system. Worst comes to worst, just open the wsconfig.jar with winrar or something and extract the proper mod_jrun22.so file and put it somewhere. Then put the configuration into apache manually. Mine looks something like this: LoadModule jrun_module C:/JRun4/lib/wsconfig/1/mod_jrun22.so IfModule mod_jrun22.c JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore C:/JRun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 #JRunConfig Errorurl optionally redirect to this URL on errors #JRunConfig ProxyRetryInterval 600 #JRunConfig ConnectTimeout 15 #JRunConfig RecvTimeout 300 #JRunConfig SendTimeout 15 AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf /IfModule You might need to tweak the port in the bootstrap line to match the one in your jrun.xml Finally, since another thing that wsconfig does for you is activate the JrunProxyService, find your jrun.xml for this cf instance, and find the following line: service class=jrun.servlet.jrpp.JRunProxyService name=ProxyService Underneath you will see something like this: attribute name=deactivatedtrue/attribute attribute name=port51020/attribute Make sure deactivated is false and that the port matches the one in the apache config. Restart CF, restart Apache and presto. Hope this helps, Russ -Original Message- From: Phillip M. Vector [mailto:[EMAIL PROTECTED] Sent: Saturday, February 09, 2008 3:11 PM To: CF-Talk Subject: Re: Apache and CF7 Yeah. It's really a pain. So now, I have apache up and running for my PHP and other language testing and learning and the dedicated CF server up for my other testing and such with CF apps I make. It's a pain, but at least it works. s. isaac dealey wrote: I found that is probably the issue. I downloaded the new file and now, I can't load it under the current version of Java (need 1.4). *sighs* Wow, that's way more version dependency hell than I remember going through for Apache 2.2 ... I'd installed 2.2 early and then had to download a new connector and manually install it, but it hadn't lead to yet another version dependancy block. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298634 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
sha-512 hash function
hi, i am able to use the hash function in cf to hash a string using sha-512 algorithm fine, but does anyone know of a similar function in javascript that will hash a string using sha-512 please preferably it would be good if i had a similar javascript function where you passed a string and the algorithm type and it passed back the hashed value thanks richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298637 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
*nods* Figured. But I'm stuck with CF7 at the moment. :) James Holmes wrote: The did update CF to work with Java 1.5 and Java 6 - by bringing out CF8. CF7 is currently stuck at 1.4, bad form or not. On Feb 10, 2008 8:39 AM, Phillip M. Vector [EMAIL PROTECTED] wrote: Yes. I realize I meant Java and not Javascript. That's why I said Java. :) and the not supported is no longer an issue. But if it was, it would be a cop out by Adobe. I mean, if 1.4 comes out and they write up a program that works, but after it goes to 1.5 or 1.6, it doesn't, then they should update that program to work again. Espically when new products come out that are written for 1.5 and 1.6. Asking a developer to downgrade to have their app run is bad form IMHO. James Holmes wrote: Java, not Javascript. You understand you are running a config completely unsupported by Adobe right? This means that if you have a server issue, the first thing they will say is go back to Java 1.4. On Feb 10, 2008 6:09 AM, Phillip M. Vector [EMAIL PROTECTED] wrote: I manually extracted the connectors and tried refering to them. Same issue. Can't load them. I'm also not using JRun. and as for using a more advanced version of javascript to run CF, I'd rather use the most up to data java then not. Requiring an uninstall to make something work isn't a good idea IMHO. But.. I have something that works now. Not the best, but at least I'm back and functional. Russ wrote: Phil, I seriously don't know what you're talking about. Apache and CF 7 very simple to install. Download apache 2.x and it works out of the box. Go with Apache 2.2.x and you need the wsconfig update. I think you're complaining that you can't run wsconfig? Perhaps you should try the java that comes with CF instead of whatever java you have on your system. Worst comes to worst, just open the wsconfig.jar with winrar or something and extract the proper mod_jrun22.so file and put it somewhere. Then put the configuration into apache manually. Mine looks something like this: LoadModule jrun_module C:/JRun4/lib/wsconfig/1/mod_jrun22.so IfModule mod_jrun22.c JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore C:/JRun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 #JRunConfig Errorurl optionally redirect to this URL on errors #JRunConfig ProxyRetryInterval 600 #JRunConfig ConnectTimeout 15 #JRunConfig RecvTimeout 300 #JRunConfig SendTimeout 15 AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf /IfModule You might need to tweak the port in the bootstrap line to match the one in your jrun.xml Finally, since another thing that wsconfig does for you is activate the JrunProxyService, find your jrun.xml for this cf instance, and find the following line: service class=jrun.servlet.jrpp.JRunProxyService name=ProxyService Underneath you will see something like this: attribute name=deactivatedtrue/attribute attribute name=port51020/attribute Make sure deactivated is false and that the port matches the one in the apache config. Restart CF, restart Apache and presto. Hope this helps, Russ -Original Message- From: Phillip M. Vector [mailto:[EMAIL PROTECTED] Sent: Saturday, February 09, 2008 3:11 PM To: CF-Talk Subject: Re: Apache and CF7 Yeah. It's really a pain. So now, I have apache up and running for my PHP and other language testing and learning and the dedicated CF server up for my other testing and such with CF apps I make. It's a pain, but at least it works. s. isaac dealey wrote: I found that is probably the issue. I downloaded the new file and now, I can't load it under the current version of Java (need 1.4). *sighs* Wow, that's way more version dependency hell than I remember going through for Apache 2.2 ... I'd installed 2.2 early and then had to download a new connector and manually install it, but it hadn't lead to yet another version dependancy block. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298638 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
FCKEditor Surrounding CFQUERY with p tags
Does anybody know how to prevent FCKEDITOR from surrounding CFQUERY code from a loaded cfm page with p tags. This apparently is exposing the code to the WYSIWYG edito and not treating it as source code. I need to be able to use FCKEditor with CFM pages that have CF code. Any suggestions? Thanks Phil ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298639 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Improving the way something works
Hi there I have a program which is reading a list of names from a table in the database. I am wanting a user to select specific names and then these names will be available in the rest of the application (i.e. a cut down list from over 100 to approx 20). Basically I have a select box where are user can click on a name in the left box and move it to the right box. This part all works. What I am hoping someone can tell me is the following. Is there anyway that when a person clicks on a name in the left that it is automatically highlighted in the right-hand side box. Thanks in advance Here is the code that I have. script language=JavaScript !-- hide function customSubmit(whereto) { //if edit change the action to include document.forms[0].action = content1.cfm + whereto document.forms[0].submit() } function moveOver() { var boxLength = document.choiceForm.choiceBox.length; var selectedItem = document.choiceForm.available.selectedIndex; var selectedText = document.choiceForm.available.options[selectedItem].text; var selectedValue = document.choiceForm.available.options[selectedItem].value; var i; var isNew = true; if (boxLength != 0) { for (i = 0; i boxLength; i++) { thisitem = document.choiceForm.choiceBox.options[i].text; if (thisitem == selectedText) { isNew = false; break; } } } if (isNew) { newoption = new Option(selectedText, selectedValue, false, false); document.choiceForm.choiceBox.options[boxLength] = newoption; } document.choiceForm.available.selectedIndex=-1; } function removeMe() { var boxLength = document.choiceForm.choiceBox.length; arrSelected = new Array(); var count = 0; for (i = 0; i boxLength; i++) { if (document.choiceForm.choiceBox.options[i].selected) { arrSelected[count] = document.choiceForm.choiceBox.options[i].value; } count++; } var x; for (i = 0; i boxLength; i++) { for (x = 0; x arrSelected.length; x++) { if (document.choiceForm.choiceBox.options[i].value == arrSelected[x]) { document.choiceForm.choiceBox.options[i] = null; } } boxLength = document.choiceForm.choiceBox.length; } } function saveMe() { var strValues = ; var boxLength = document.choiceForm.choiceBox.length; var count = 0; if (boxLength != 0) { for (i = 0; i boxLength; i++) { if (count == 0) { strValues = document.choiceForm.choiceBox.options[i].value; } else { strValues = strValues + , + document.choiceForm.choiceBox.options[i].value; } count++; } } document.choiceForm.peoplelist.value = strValues; //alert(Here are the values you've selected:\r\n + strValues); document.choiceForm.submit(); } function showSave() { document.getElementById('freddo').style.display = } //-- /script ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298640 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Tutorial Recommendation
Hello all, I'm in search of a tutorial that shows the following: How to have a module on your page load its content after page load. The reason being there is a module on my page that takes time processing and I'd like to save the user experience by having that processing happen after page load. I'm using prototype on the site. Can anyone suggest a tutorial? Thanks ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298641 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Tutorial Recommendation
Well, off the top of my head, I'd say just put it all in a div and AJAX it. Nate Willard wrote: Hello all, I'm in search of a tutorial that shows the following: How to have a module on your page load its content after page load. The reason being there is a module on my page that takes time processing and I'd like to save the user experience by having that processing happen after page load. I'm using prototype on the site. Can anyone suggest a tutorial? Thanks ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298642 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Apache and CF7
I manually extracted the connectors and tried refering to them. Same issue. Can't load them. I'm also not using JRun. What J2EE application server are you using, then? Unless you installed an EAR or WAR for your CF install, you're using JRun. and as for using a more advanced version of javascript to run CF, I'd rather use the most up to data java then not. Requiring an uninstall to make something work isn't a good idea IMHO. Did you configure CF to use a newer JVM? If not, it's using 1.4. You can run wsconfig.jar with CF's copy of Java instead of whatever other versions of Java you also have installed. From a command prompt: \path\to\jre\bin\java.exe -jar \path\to\wsconfig.jar Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298643 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
Dave Watts wrote: I manually extracted the connectors and tried refering to them. Same issue. Can't load them. I'm also not using JRun. What J2EE application server are you using, then? Unless you installed an EAR or WAR for your CF install, you're using JRun. Let me rephrase. I used the developer internal server. It may be using JRun, but there is no separate directory for it. and as for using a more advanced version of javascript to run CF, I'd rather use the most up to data java then not. Requiring an uninstall to make something work isn't a good idea IMHO. Did you configure CF to use a newer JVM? If not, it's using 1.4. You can run wsconfig.jar with CF's copy of Java instead of whatever other versions of Java you also have installed. From a command prompt: A JVM was already installed when I installed CF7. 1.6. \path\to\jre\bin\java.exe -jar \path\to\wsconfig.jar That I didn't know. I will try it if I decide later it's worth the effort. :) Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298644 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: FCKEditor Surrounding CFQUERY with p tags
Disregard the initial question. The solution to protect CF tags and prevent them from being modified is to use: FCKConfig.ProtectedSource.Add( /cf[\s\S]*?/gi ) ; // ColdFusion cf tags - OPEN. FCKConfig.ProtectedSource.Add( /\/cf[\s\S]*?/gi ) ; // ColdFusion cf tags - CLOSE. Now the problem is to write a regex for everything between cfquery and /cfquery I had what i though would work, but I don't think the fckeditor config file can use the full /cfquery without causing an error on the parent CFM page. This is what I tried: FCKConfig.ProtectedSource.Add( /cfquery.*/cfquery/ ) ; // Everything between CFQUERY Tags Suggestions? On Feb 9, 2008, at 8:19 PM, Philip Hayes wrote: Does anybody know how to prevent FCKEDITOR from surrounding CFQUERY code from a loaded cfm page with p tags. This apparently is exposing the code to the WYSIWYG edito and not treating it as source code. I need to be able to use FCKEditor with CFM pages that have CF code. Any suggestions? Thanks Phil ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298645 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Apache and CF7
Let me rephrase. I used the developer internal server. It may be using JRun, but there is no separate directory for it. Then you're using JRun. A JVM was already installed when I installed CF7. 1.6. Right, but CF installs its own JVM. CF 7 installs 1.4. It's not uncommon to have a bunch of JVMs installed on a single machine, used by different applications. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298646 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Improving the way something works
Basically I have a select box where are user can click on a name in the left box and move it to the right box. This part all works. What I am hoping someone can tell me is the following. Is there anyway that when a person clicks on a name in the left that it is automatically highlighted in the right-hand side box. I've heard that browser support for styling select options varries a lot between browsers. So you'll want to test whatever style option(s) you choose in the browsers you want to support. But I would think, basically, you could do something like this: script language=javascript function highlightMatching(s1,s2) { for (var i = 0; i s2.length; i++) { s2.options[i].style.bgColor = ''; } var selected = ''; for (i = 0; i s1.length; i++) { if (s1.options[i].selected==true) { selected += '|' + s1.options[i].value; } } if (selected.length!=0) { selected = selected.substring(1,selected.length)); selected = new RegExp('^('+selected+')$'); for (i = 0; i s2.length; i++) { if (s2.options[i].value.search(selected)=0) { s2.options[i].style.bgColor = 'lightsteelblue'; } } } } /script select name=s1 onchange=highlightMatching(this,this.form.s2) /select select name=s2 /select hope that's helpful. :) -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298647 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Tutorial Recommendation
Not sure you really need a tutorial for that in particular, since you're using Prototype. I think you should be able to just do this: head script language=javascript function bodyload() { new Ajax.Updater(loadLate,loadlate.cfm); } /script /head body onload=bodyload() div id=loadLateLoading.../div /body Then in loadlate.cfm just make sure it only returns the content you want in that div, minus the html head, body tags, etc. hth, ike -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298648 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache and CF7
Save yourself the hassle and get XAMPP. Seriously. The only time you need to do a full install of Apache is on Production and/or you need an absolute mirror of your production environment on Dev. Take 10 min and try it. On Feb 9, 2008 9:13 PM, Dave Watts [EMAIL PROTECTED] wrote: Let me rephrase. I used the developer internal server. It may be using JRun, but there is no separate directory for it. Then you're using JRun. A JVM was already installed when I installed CF7. 1.6. Right, but CF installs its own JVM. CF 7 installs 1.4. It's not uncommon to have a bunch of JVMs installed on a single machine, used by different applications. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298649 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: A suggestion of placing the # of msgs info to the left of a msg title
Not in an email client ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Don L [mailto:[EMAIL PROTECTED] Sent: Saturday, February 09, 2008 6:46 PM To: CF-Talk Subject: A suggestion of placing the # of msgs info to the left of a msg title It would be much easier to read. Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298650 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: A suggestion of placing the # of msgs info to the left of a msg title
get Gmail... conversations are your best friend. On 2/9/08, Don L [EMAIL PROTECTED] wrote: It would be much easier to read. Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298651 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache and CF7
* XAMPP for Windows The distribution for Windows 98, NT, 2000, 2003, XP and Vista. This version contains: Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, Ming, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql. Ok.. This has Apache with PHP.. I see no CF on it, so it seems to be a PHP setup mostly. I'm sorry if I didn't make this clear. My issue isn't with php. It's with CF7 on Apache. I fail to see why I should try XAMPP when I would have to just install CF7 on that machine as well. Seems to be an unnesserary step. Gerald Guido wrote: Save yourself the hassle and get XAMPP. Seriously. The only time you need to do a full install of Apache is on Production and/or you need an absolute mirror of your production environment on Dev. Take 10 min and try it. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298652 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
Now, if you can find me a Virtural Machine with all the stuff with XAMPP AND CF7, then I'd be interested. :) Gerald Guido wrote: Save yourself the hassle and get XAMPP. Seriously. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298653 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion 8 and RC4 encryption?
Keys for these algorithms are created via the GenerateSecretKey() function. On Feb 10, 2008 12:22 PM, Andy Matthews [EMAIL PROTECTED] wrote: I'm implementing a shopping cart called FoxyCart. They manage all of the processing and secure transactions, and once the order is complete on their end they offer, among other things, a secure data feed containing XML for the order encrypted via RC4. I looked up the encrypt/decrypt functionality and it looks pretty straightforward except that I'm getting errors. I'm trying first encrypt a sample string of XML so that I work on this locally. cfsavecontent variable=VARIABLES.xmlData cfinclude template=data.xml /cfsavecontent cfset VARIABLES.key = this is a test key cfdump var=#Encrypt(VARIABLES.xmlData, VARIABLES.key, 'RC4')# However, when I try to encrypt the XML I get the following error: An error occurred while trying to encrypt or decrypt your input string: '' Can not decode string this is a test key.. When I remove the RC4 indicator the error goes away, but I'm obviously going to need that there. Does anyone have any idea why this isn't working? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298655 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Coldfusion 8 and RC4 encryption?
I'm implementing a shopping cart called FoxyCart. They manage all of the processing and secure transactions, and once the order is complete on their end they offer, among other things, a secure data feed containing XML for the order encrypted via RC4. I looked up the encrypt/decrypt functionality and it looks pretty straightforward except that I'm getting errors. I'm trying first encrypt a sample string of XML so that I work on this locally. cfsavecontent variable=VARIABLES.xmlData cfinclude template=data.xml /cfsavecontent cfset VARIABLES.key = this is a test key cfdump var=#Encrypt(VARIABLES.xmlData, VARIABLES.key, 'RC4')# However, when I try to encrypt the XML I get the following error: An error occurred while trying to encrypt or decrypt your input string: '' Can not decode string this is a test key.. When I remove the RC4 indicator the error goes away, but I'm obviously going to need that there. Does anyone have any idea why this isn't working? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298654 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error on site - quot;Error converting data type varchar to numericquot;
Thanks for the tips everyone. I see four items I can improve: use cfqueryparam, server-side validation, use a replace function, remove single quotes from numeric data in query... Is a comma a reserved character? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298656 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache and CF7
I know *exactly* what you are trying to do. Read my previous email. On Feb 9, 2008 10:04 PM, Phillip M. Vector [EMAIL PROTECTED] wrote: * XAMPP for Windows The distribution for Windows 98, NT, 2000, 2003, XP and Vista. This version contains: Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, Ming, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql. Ok.. This has Apache with PHP.. I see no CF on it, so it seems to be a PHP setup mostly. I'm sorry if I didn't make this clear. My issue isn't with php. It's with CF7 on Apache. I fail to see why I should try XAMPP when I would have to just install CF7 on that machine as well. Seems to be an unnesserary step. Gerald Guido wrote: Save yourself the hassle and get XAMPP. Seriously. The only time you need to do a full install of Apache is on Production and/or you need an absolute mirror of your production environment on Dev. Take 10 min and try it. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298657 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Years, Months and Days from a date
I am trying to figuring how to determine the year, months and days from a date. Like from 1/1/2007 to 2/9/2008 it is 1 year 1 month and 8 days. I am trying to figure out how to do that programmatically. I have been trying to do it with datediff but I cannot figure out how. Any help would be great. Thanks! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298658 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Printing mailing labels
I got the cf_avery tag workin. It's pretty sweet. Had a few alignment problems but got it worked out. It's ancient and I figured rick probably built it, but he didn't. :) Thanks, Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298661 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Years, Months and Days from a date
Well you're going to need to do it in parts, right, so given the dates in your example, 1/1/2007 - 2/9/2008 returns 1 year, 1 month 8 days So ... startdate = 1/1/2007; enddate = 2/9/2008; days = datediff(d,startdate,enddate); years = int(days / 365); months = int(days / 30) - (12 * years); days = days mod 30; should get you started. hth, ike -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298662 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
calling CFexecute from local drive to a a remote drive
Can CFexecute run a batch file on a remote drive? If I were to map a remote drive as z:\, can I just use the following? cfexecute name=z:\windows\psexec.exe timeout=30 arguments=\\10.100.50.119 -u user1 -p testpsw C:\Fcidata\fciprod\scpt_bat\MatchStart.batâ /cfexecute ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298663 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFexecute, batch file calling another batch file
Does any one know that if you can call batch files from within another batch file using CFexecute? If this can't be done, how can you work around this? All my batch files are in the same directory of the Cold Fusion pages. I'm using ColdFusion 4.5 I am using CFexecute to run a batch file(test1.bat) in the Cold Fusion page. Within (test1.bat), I am calling another batch file (test2.bat), but test2.bat is not being run. Followings are my CF code and 2 batch files. --- cfexecute name=C:\fcidata\fciprod\scpt_bat\test1.bat timeout=1 /cfexecute --- test1.bat call test2.BAT rem call MATCH_GET1.BAT rem call MATCH_GET2.BAT --- test2.bat c: cd \Documents and Settings COPY Match_Record\1_SFTP_Data_Here\user.dat c:\FCIDATA\FCIPROD\SCPT_BAT ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298660 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: FCKEditor Surrounding CFQUERY with p tags
/cfquery.*/cfquery/ You want it to match what? everything from the opening on the opening cfquery tag to the closing on the closing cfquery tag? I'd probably go with: /cfquery\s[^]*.*?/cfquery/gi -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 503.236.3691 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298659 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: calling CFexecute from local drive to a a remote drive
Can CFexecute run a batch file on a remote drive? If I were to map a remote drive as z:\, can I just use the following? cfexecute name=z:\windows\psexec.exe timeout=30 arguments=\\10.100.50.119 -u user1 -p testpsw C:\Fcidata\fciprod\scpt_bat\MatchStart.batââ¬Â /cfexecute Since CF runs as a service using a different user account than you're using, it won't see the drive mapping you create. Also, by default, the service account doesn't have rights to network shares. So, you'll have to configure to run as a user with the appropriate rights. You can just use UNC paths instead of drive mappings once you change the CF user account. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298664 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
HOW TO: No consecutive cfschdule calls
I want to add a scheduled task. But I do not want the actions of this task to run at the same time. To test this i added a sleep loop to the page to make sure the request lasts long enough to test concurrent requests and then I just run the page twice in two different browsers. I have tried wrapping my code in a cflock with a short timeout but the timeout does not seem to work. The second call just hangs until the previous request is finished. ex. cftry cflock name=ScheduleLock timeout=1 type=EXCLUSIVE throwontimeout=yes [CODE GOES HERE] /cflock cfcatch type=LockAlready running/cfcatch /cftry I have tried creating a flag variable in the application scope which i set to true at the top and false at the bottom. At the top I have a check to see if the flag is set and abort if it is. ex. cfset LockName=ScheduleLock / cfif StructKeyExists(application, LockName) AND application[LockName] EQ true Currently Runningcfabort cfelse cfset application[LockName]=true / /cfif [CODE GOES HERE] cfset LockName=BatchEmailProccessorLock / I have made sure that each request is in the same application, but the second request still waits for the previous request to complete. Does anyone have a better idea. Running on CF7 Standard Edition. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298665 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4