cfif... not working properly?
Hi, In this example the results from my #URLDecode(dir)# is C:\temp\test\data\123\ I'm trying to check is the directory data exists in the variable and if so, do something else. The syntax below is not working properly. What am I doing wrong? cfif ListFindNoCase(URLDecode(dir),\data) h5You are in the data directory/h5 cfelse h5You are somewhere else/h5 /cfif __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: [OT] Whatever happend to webreview.com? Was: Re: Need help with CFMX/ASP.NET comparison...
I subscribe to New Architect and I think it sucks. I'm NOT renewing my subscription. Any good replacements? At 09:45 AM 6/18/2002 -0500, you wrote: I'm very unhappy as well. They pretty much trashed the magazine. --- Billy Cravens -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 8:49 AM To: CF-Talk Subject: RE: [OT] Whatever happend to webreview.com? Was: Re: Need help with CFMX/ASP.NET comparison... They were bought by CMP Media and they didn't know what to do with it and shut it down -- which means no new content. Kinda' like WebTechniques became New Architect. But I moved over to O'Reilly (which ironically started WebReview through their Songline Studio group) and have many many articles there in the aboutSQL series (good easy links from onLAMP.com As a side note - are there any Web Techniques readers here who are happy with New Architect? I hate it - they stripped out the code and turned it into a manager-buzz word magazine. -Ray __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Popup window
I have the following code in my popup window: input type=button value=Close class=navlinks onClick=self.close() This template is now being loaded into a frame rather than having a new window open. How can I have the button close or reload a blank page into this frame to clear it? __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Popup window
OK...fair enough THanks At 09:05 AM 6/13/2002 -0400, you wrote: I'm not the picky sort, but you may want to prefix off topic posts with OT in the subject line. It's a polite courtesy. :) Try this... input type=button value=Close class=navlinks onClick=location.href='blank.cfm' Eric -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 9:02 AM To: CF-Talk Subject: Popup window I have the following code in my popup window: input type=button value=Close class=navlinks onClick=self.close() This template is now being loaded into a frame rather than having a new window open. How can I have the button close or reload a blank page into this frame to clear it? __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfflush
The cfflush just works great for what I need it for but I'm using the cfflush to display Work in progress... while I'm executing a batch file with cfexecute and then display the results from the program to screen. Is there a way to have the Work in progress... disappear once the results from the cfexecute have appeared. Right now the progress text stays at the top of my page. p align=center style=Arial size=+1font color=#ffWork in progress.../font/p cfflush cfflush interval=1 cfexecute name=filename.bat outputfile=output.rlog timeOut=1000 /cfexecute cffile action=READ file=output.rlog variable=results table width=100% cellpadding=6 cellspacing=0 border=0 tr align=center td input type=button value=Close class=navlinks onClick=self.document.open(); /td /tr tr align=center td table cellpadding=6 cellspacing=0 border=0 tr td class=wdirlinks #replace(results,chr(10),br,all)# /td /tr /table /td /tr /table __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: OT...cfflush...div
This is still a continuation from a previous post . I found a script that changes the text of the div by clicking on a a href. Is there a way to automatically have the a href run at the end of the cfexecute process? .. head script language=JavaScript1.2 function writetoLyr(name, message) { if (document.layers) { document.layers[name].document.close(); document.layers[name].document.write(message); document.layers[name].document.close(); } else { if (document.all) { eval(document.all. + name + .innerHTML=' + message + '); } else { document.getElementById(name).innerHTML = message; } } } /script /head div id=TestLayer p align=center style=Arial size=+1font color=#ffWork in progress.../font/p /div cfexecute ... outputfile= timeOut=1000 /cfexecute cffile action=READ file= variable=results table width=100% cellpadding=6 cellspacing=0 border=0 tr align=center td input type=button value=Close class=navlinks onClick=location.href='blank.cfm' /td /tr tr align=center td table cellpadding=6 cellspacing=0 border=0 tr td class=wdirlinks #replace(results,chr(10),br,all)# /td /tr /table /td /tr /table center a href=javascript:; onClick=writetoLyr('TestLayer', 'p align=center style=Arial size=+1font color=whiteDone./font/p')Text/a /center __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Problem displaying external file in iframe
Hi, I have a problem. I'm running a executable using cfexecute and everything is working great. The program creates an external file which has the display from the screen if run from the command prompt. I then use a iframe and read in the external file created from the executable. This file is not required so then I do a cffile and delete the temporary file. If I do this then I get an error from the iframe. If I comment out the delete then it works OK. Why? How can I get around this problem? Here is my code: cfparam name=dir default=#TheFolder# cfdirectory action=LIST directory=#dir# name=dirlist sort=name cfoutput cfset sr = #ListGetAt(FileName,1,'.')# cfset CreateBatch = setlocal#strCR##LCase(ListGetAt(TheFolder,1,':'))#:#strCR#cd #TheFolder##strCR##ComposeExe# #TheFolder#\#LCase(ListGetAt(FileName,1,'.'))# printer cffile action=WRITE file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat output=#CreateBatch# addnewline=Yes cfexecute name=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat outputfile=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog timeOut=1000 /cfexecute !--- _.TMP FILE IS GENERATED BY THE EXECUTABLE FILE --- iframe src=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp name=LogFile id=LogFile width=100% height=320 align=middle class=dirlinks /iframe cffile action=DELETE file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat cffile action=DELETE file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp cffile action=DELETE file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog /cfoutput __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Problem displaying external file in iframe
Nevermind, I got it to work. When I read the file all the text in run in to each other. How can I put in the proper carriage returns? cffile action=READ file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp variable=results cfoutput #results# /cfoutout At 11:32 AM 6/12/2002 -0400, you wrote: Hi, I have a problem. I'm running a executable using cfexecute and everything is working great. The program creates an external file which has the display from the screen if run from the command prompt. I then use a iframe and read in the external file created from the executable. This file is not required so then I do a cffile and delete the temporary file. If I do this then I get an error from the iframe. If I comment out the delete then it works OK. Why? How can I get around this problem? Here is my code: cfparam name=dir default=#TheFolder# cfdirectory action=LIST directory=#dir# name=dirlist sort=name cfoutput cfset sr = #ListGetAt(FileName,1,'.')# cfset CreateBatch = setlocal#strCR##LCase(ListGetAt(TheFolder,1,':'))#:#strCR#cd #TheFolder##strCR##ComposeExe# #TheFolder#\#LCase(ListGetAt(FileName,1,'.'))# printer cffile action=WRITE file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat output=#CreateBatch# addnewline=Yes cfexecute name=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat outputfile=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog timeOut=1000 /cfexecute !--- _.TMP FILE IS GENERATED BY THE EXECUTABLE FILE --- iframe src=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp name=LogFile id=LogFile width=100% height=320 align=middle class=dirlinks /iframe cffile action=DELETE file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat cffile action=DELETE file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp cffile action=DELETE file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog /cfoutput __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Problem displaying external file in iframe
oi Critz!!...I got it to work. At 11:39 AM 6/12/2002 -0400, you wrote: oi phumes1!! uh why not just create a script that goes thru and deletes the files later in the day or such or could you push the file for viewing using cfcontent? -- Critz Certified Adv. ColdFusion Developer Crit[s2k] - CF_ChannelOP Network=Efnet Channel=ColdFusion Wednesday, June 12, 2002, 11:32:29 AM, you wrote: p Hi, p I have a problem. I'm running a executable using cfexecute and everything p is working great. The program creates an external file which has the p display from the screen if run from the command prompt. p I then use a iframe and read in the external file created from the executable. p This file is not required so then I do a cffile and delete the temporary p file. If I do this then I get an error from the iframe. p If I comment out the delete then it works OK. p Why? p How can I get around this problem? p Here is my code: p cfparam name=dir default=#TheFolder# p cfdirectory action=LIST directory=#dir# name=dirlist sort=name p cfoutput p cfset sr = #ListGetAt(FileName,1,'.')# p cfset CreateBatch = p setlocal#strCR##LCase(ListGetAt(TheFolder,1,':'))#:#strCR#cd p #TheFolder##strCR##ComposeExe# p #TheFolder#\#LCase(ListGetAt(FileName,1,'.'))# printer p cffile action=WRITE p file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat p output=#CreateBatch# addnewline=Yes p cfexecute name=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat p outputfile=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog p timeOut=1000 p /cfexecute p !--- _.TMP FILE IS GENERATED BY THE EXECUTABLE FILE --- p iframe src=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp p name=LogFile p id=LogFile p width=100% p height=320 p align=middle p class=dirlinks p /iframe p cffile action=DELETE p file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat p cffile action=DELETE p file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#_.tmp p cffile action=DELETE p file=#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog p /cfoutput p __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Progress Bar
Anyone have a nice progress bar? __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
HeirMenus
I'm using the heirmenu for my navigation. WHen I click on a link I would like my .cfm template to open up in another frame. Does anyone know if you can specify a target destination on the following: HM_Array1 = [ [], [uF/uile,javascript:window.open('fileactions/file-info.cfm','toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=590,height=460'),1,0,1] ] __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Progress Bar
Sure...I wouldn't mind having a look at your flash movie. Thanks At 03:48 PM 6/12/2002 -0400, you wrote: What kind of progress bar did you want? Something that actually tells you the actual amount of work done or a processing bar, just something to look at when the code is executing? I have the latter, a flash movie, if you want to use it. - Matt Small -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 1:34 PM To: CF-Talk Subject: Progress Bar Anyone have a nice progress bar? __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CFHTTP
Can someone give me an example of running an executable via CFHTTP Run the perl script using a CFHTTP request then write the content to file. +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfhttp
In the documentation under authentication for the cfhttp tag it says Basic Authetication does not work if you Web server has Windows NT Challenge/Response (Microsoft IIS) enabled I'm using IIS. For this to work are they saying don't use IIS as the web server? Presently, the Basic Authentication is checked under the defaulty web site properties. +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: cfhttp
At 03:02 PM 6/10/2002 +0100, you wrote: with IIS and NT/2K for security of a web site you can add Basic Authentication which will prompt the browser for a username and password. This works with CFHTTP However at the bottom of the properties for security there is an option for Challenge/Response (or Integrated Windows Authentication), if this is checked and Basic Authentication is NOT checked... then Only IE is able to access these directories, and thus CFHTTP will not be able to access them I have both checked Basic Authentication and Integreated Windows authentication and I still keep getting Connection Failure. HTH phumes1 wrote: In the documentation under authentication for the cfhttp tag it says Basic Authetication does not work if you Web server has Windows NT Challenge/Response (Microsoft IIS) enabled I'm using IIS. For this to work are they saying don't use IIS as the web server? Presently, the Basic Authentication is checked under the defaulty web site properties. +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfexecute
I don't know whats happening... The contents of my output.txt file still contains the following. The output to the screen (console) is totally different and this is what I want dumped into the output file. The executable is a compiled Perl script. Does anyone know how to dump the output of the perl script to a file? C:\tempsetlocal C:\tempc: C:\tempcd c:\temp c:\tempc:\program\runme.exe c:\temp\filename printer At 11:19 AM 6/7/2002 +0100, you wrote: C:\temptest.bat output.txt I'd suggest putting a location before the output.txt, something like Test.bat c:\output.txt I'm not sure where CFEXECUTE calls the file from... Philip Arnold Technical Director Certified ColdFusion Developer ASP Multimedia Limited Switchboard: +44 (0)20 8680 8099 Fax: +44 (0)20 8686 7911 www.aspmedia.co.uk www.aspevents.net An ISO9001 registered company. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: 06 June 2002 18:27 To: CF-Talk Subject: cfexecute Hi, This is what I put in my batch file: test.bat setlocal c: cd C:\temp c:\tempc:\program\runme.exe c:\temp\filename printer Then from the command prompt I did: C:\temptest.bat output.txt The programs run just fine. The program displays the processing to the screen. When I open the file output.txt this is what it contains: C:\tempsetlocal C:\tempc: C:\tempcd c:\temp c:\tempc:\program\runme.exe c:\temp\filename printer I don't know whats going on. The output.txt file should contain the output thats dumped to the screen but it doesn't. The executable file is a Perl script which was compiled to a .exe file. Could there be something in the Perl script thats stopping the output to a file? Its works to the screen so I can't figure out whats happening. Any ideas? The bat file seem to be working exactly as you tell them to. In the instance below, when you are calling the exe directly, you are rerouting the screen output to the p.log file. It is routing the ouput of the runme command to the log file. In the CFExecute example you posted earlier, you are routing the output from the BAT file to the log file. Not quite the same thing. Try changing the call in the BAT file to match your example below, including the redirected output stream. (and what are the command switches -e /q /v doing for you in the CFExecute example? Is /q quiet mode, which supresses all bat file output?) Now you've got me curious Jerry Johnson [EMAIL PROTECTED] 06/05/02 02:27PM Why is my output file empty? The filename is passed to the executable for processing but shen I specify the output to be redirected to a file its empty. Why? Run from command prompt: c:\tempc:\program\runme.exe c:\temp\filename printer p.log +- --+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +- ---+ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfexecute
Could you give me an example? At 09:15 AM 6/7/2002 -0400, you wrote: I don't know whats happening... The contents of my output.txt file still contains the following. The output to the screen (console) is totally different and this is what I want dumped into the output file. The executable is a compiled Perl script. Does anyone know how to dump the output of the perl script to a file? Run the perl script using a CFHTTP request then write the content to file. Isaac www.turnkey.to 954-776-0046 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfexecute
No way...You can run a executable via CFHTTP. Could you give me an example? At 09:15 AM 6/7/2002 -0400, you wrote: I don't know whats happening... The contents of my output.txt file still contains the following. The output to the screen (console) is totally different and this is what I want dumped into the output file. The executable is a compiled Perl script. Does anyone know how to dump the output of the perl script to a file? Run the perl script using a CFHTTP request then write the content to file. Isaac www.turnkey.to 954-776-0046 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfexecute
Hi, This is what I put in my batch file: test.bat setlocal c: cd C:\temp c:\tempc:\program\runme.exe c:\temp\filename printer Then from the command prompt I did: C:\temptest.bat output.txt The programs run just fine. The program displays the processing to the screen. When I open the file output.txt this is what it contains: C:\tempsetlocal C:\tempc: C:\tempcd c:\temp c:\tempc:\program\runme.exe c:\temp\filename printer I don't know whats going on. The output.txt file should contain the output thats dumped to the screen but it doesn't. The executable file is a Perl script which was compiled to a .exe file. Could there be something in the Perl script thats stopping the output to a file? Its works to the screen so I can't figure out whats happening. Any ideas? The bat file seem to be working exactly as you tell them to. In the instance below, when you are calling the exe directly, you are rerouting the screen output to the p.log file. It is routing the ouput of the runme command to the log file. In the CFExecute example you posted earlier, you are routing the output from the BAT file to the log file. Not quite the same thing. Try changing the call in the BAT file to match your example below, including the redirected output stream. (and what are the command switches -e /q /v doing for you in the CFExecute example? Is /q quiet mode, which supresses all bat file output?) Now you've got me curious Jerry Johnson [EMAIL PROTECTED] 06/05/02 02:27PM Why is my output file empty? The filename is passed to the executable for processing but shen I specify the output to be redirected to a file its empty. Why? Run from command prompt: c:\tempc:\program\runme.exe c:\temp\filename printer p.log +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfexecute...What the (*#$
I have a .bat file which I'm passing to my cfexecute. Everything works fine except for the output file contents. test.bat -- set local c: cd c:\dir1\dir2 c:\program\runme.exe c:\temp\filename printer Here is my cfexecute that runs the above batch file. cfexecute name=test.bat arguments=-e /q /v outputfile=test.log timeOut=1000 /cfexecute The log file contains the lines above and *not* the output that I get if I run the batch file from a command prompt. C:\WINNT\system32\set local C:\WINNT\system32c: C:\cd c:\dir1\dir2 D:\dir1\dir2c:\program\runme.exe c:\temp\filename printer Why? I want the output that I receive when I run it manually from the command prompt. __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfexecute
Why is my output file empty? The filename is passed to the executable for processing but shen I specify the output to be redirected to a file its empty. Why? Run from command prompt: c:\tempc:\program\runme.exe c:\temp\filename printer p.log +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfexecute...What the (*#$
The filename is passed to the executable (runme.exe) for processing. When I run this manually at the command prompt the process spits out messages to the window while its processing. Ex. Version #, pages processed etc.etc. When I specify the outputfile in the cfexecute it dumps out the contents of the test.bat file lines *not* the above. At 07:23 PM 6/5/2002 +0100, you wrote: What is supposed to happen when you run the batch file? Ian -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 18:33 To: CF-Talk Subject: cfexecute...What the (*#$ I have a .bat file which I'm passing to my cfexecute. Everything works fine except for the output file contents. test.bat -- set local c: cd c:\dir1\dir2 c:\program\runme.exe c:\temp\filename printer Here is my cfexecute that runs the above batch file. cfexecute name=test.bat arguments=-e /q /v outputfile=test.log timeOut=1000 /cfexecute The log file contains the lines above and *not* the output that I get if I run the batch file from a command prompt. C:\WINNT\system32\set local C:\WINNT\system32c: C:\cd c:\dir1\dir2 D:\dir1\dir2c:\program\runme.exe c:\temp\filename printer Why? I want the output that I receive when I run it manually from the command prompt. __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfexecute...What the (*#$
I am specifying the FULL pathname and it works great except the output files contents (test.log) is *not* what I want. In the test.log files it contains the following lines: set local c: cd c:\dir1\dir2 c:\program\runme.exe c:\temp\filename printer WHen I run the batch file from the command prompt II get a totally different dump to the screen (which I want). I tried even piping it to a file but my output file is always empty. At 02:35 PM 6/5/2002 -0400, you wrote: -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 18:33 To: CF-Talk Subject: cfexecute...What the (*#$ I have a .bat file which I'm passing to my cfexecute. Everything works fine except for the output file contents. test.bat -- set local c: cd c:\dir1\dir2 c:\program\runme.exe c:\temp\filename printer Here is my cfexecute that runs the above batch file. cfexecute name=test.bat arguments=-e /q /v outputfile=test.log timeOut=1000 /cfexecute You have to specify the FULL pathname, e.g. for Windows: name=c:\mydir\test.bat. From the CF Studio documentation: -- NAME Required. The full path name of the application that is to be executed. Note: On Windows systems, you must specify the extension, for example, .exe, as part of the application's name. --Andy __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Check for file existence
I need to check if a file exists on the server and if so, run some code. Whats the best way to check if the file test.txt exists in a directory The below doesn't seem to work. Note that the filename can change but the file extension (.txt) will stat the same. cfset FileName = ListLast(url.filename, \) cfset DirPath = Left(url.filename, Evaluate(Len(url.filename) - len(FileName) - 1)) cfset TheFile = ListLast(url.filename) cfset TheFolder = DirPath cfparam name=dir default=#TheFolder# cfdirectory action=LIST directory=#dir# name=FileCheck cfoutput query=FileCheck cfif FileCheck.name IS test.txt h3Found Match/h3 cfelse h3No Match/h3 /cfif /cfoutput +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfexecute....help
Hi, There is one program that I'm having trouble executing via cfexecute The problem is I have to be in the correct directory on the server for the program to run properly and I'm not sure how to change the directory path etc. I can easily run the program from a command prompt or a batch file. d: cd /dir1/dir2 c:/programdir/subdir/runme.exe d:/temp1/temp2/filename output-device This works as long as I change the directory path. How can I do the above (change directory) and use cfexecute through my web interface? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CFFILE question
On our server I have a mapped drive letter Q pointing to a directory on another server. I'm trying to read in a file off the server but I keep getting an error. Can't I specify a mapped drive letter in CFFILE? cfset File=Q:\dir1\filename.txt cffile action=READ file=#File# variable=FileContents cfoutput #FileContents#br /cfoutput This is the error: Error processing CFFILE Error attempting to read 'Q:/dir1/filename.txt.' Access is denied. (error 5) The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (112:1) to (112:65). Date/Time: 06/04/02 14:19:41 Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461) +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFFILE question
At 02:35 PM 6/4/2002 -0400, you wrote: What user is CF running under? The user logged in that created the mapped drive letter has Administrator privileges. Does that user have the drive mapped? Yes. Do you have rights as that user to that drive? Administrator If any of this is too difficult, try using UNC file names rather than relying on mapped drives. (This is my standard answer for any drive mapping questions :) Tried this also without any success. Jerry Johnson [EMAIL PROTECTED] 06/04/02 02:19PM On our server I have a mapped drive letter Q pointing to a directory on another server. I'm trying to read in a file off the server but I keep getting an error. Can't I specify a mapped drive letter in CFFILE? cfset File=Q:\dir1\filename.txt cffile action=READ file=#File# variable=FileContents cfoutput #FileContents#br /cfoutput This is the error: Error processing CFFILE Error attempting to read 'Q:/dir1/filename.txt.' Access is denied. (error 5) The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (112:1) to (112:65). Date/Time: 06/04/02 14:19:41 Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461) +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: cfexecute....help
Only if I run it manually from a command prompt. Not with cfexecute At 02:36 PM 6/4/2002 -0400, you wrote: On Tue, 04 Jun 2002 13:34:57 -0400, in cf-talk you wrote: d: cd /dir1/dir2 c:/programdir/subdir/runme.exe d:/temp1/temp2/filename output-device This works as long as I change the directory path. How can I do the above (change directory) and use cfexecute through my web interface? Unless my ginko isn't working today, you'll probably get several replies asking if you've tried simply putting those three lines in a bat file and cfexecute-ing the bat. That work? --min __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Create dropdown selection from external files
Hi, I have the following list from an external file that is being creating with the cfexecute tag. What I would like to do (but not sure how) is to grab the page numbers from the list ONLY and include them in the select tag. Here is a snippet from the external file. This could be a few lines or a few hundred. Depends on the job. external file being read in with cffile action=READ file=#TheFolder#\page-results.log nameconflict=OVERWRITE variable=results = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = S U M M A R Y O F F O L I O S / L E A D = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 001folio: 165 . . . 011.50 points free 002folio: 166 . . . 007.00 points free 003folio: 167 . . . 019.00 points free 004folio: 168 . . . 006.00 points free 005folio: 169 . . . 008.00 points free 006folio: 170 . . . 021.00 points free 007folio: 171 . . . 033.00 points free 008folio: 172 . . . 013.00 points free 009folio: 173 . . . 005.00 points free 010folio: 174 . . . 019.00 points free 011folio: 175 . . . 026.00 points free 012folio: 176 . . . 013.00 points free 013folio: 177 . . . 016.00 points free 014folio: 178 . . . 021.00 points free 015folio: 179 . . . 003.50 points free 016folio: 180 . . . 004.00 points free 017folio: 181 . . . 004.00 points free 018folio: 182 . . . 006.00 points free 019folio: 183 . . . 017.00 points free Here is my select select name=filelist size=5 multiple option value=file#page_number#/option /select +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Create dropdown selection from external files
I don't recall receiving your email. I probably deleted it by accident. Your code worked great. Thanks Seth At 08:23 AM 6/3/2002 -0400, you wrote: I have the following list from an external file that is being creating with the cfexecute tag. What I would like to do (but not sure how) is to grab the page numbers from the list ONLY and include them in the select tag. Here is a snippet from the external file. This could be a few lines or a few hundred. Depends on the job. snip = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = S U M M A R Y O F F O L I O S / L E A D = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 001folio: 165 . . . 011.50 points free 002folio: 166 . . . 007.00 points free snip Last week I sent an answer to your problem to the list and directly to you... did you have troubles with my solution? Here it is again: You can use regular expressions to parse the page number from each line of the file. Here's the code you'll need: !--- read in the file --- CFFILE ACTION=READ FILE=#TheFolder#\page-results.log VARIABLE=sIn !--- create the array of page nums --- CFSET arPages = ArrayNew(1) !--- find lines like 001folio: 165 . . . 011.50 points free --- CFSET strCR = Chr(13) Chr(10) CFSET reLine = ([0-9]+folio:[ ]+)([0-9]+)[::Graph::| ]+(#strCR#)? CFSET stcLine = REFindNoCase(reLine, sIn, 1, True) !--- loop through the line matches, pull out the page number and add it to the array --- CFLOOP CONDITION=#stcLine.pos[1]# NEQ 0 CFSET strLine = Mid(sIn, stcLine.pos[1], stcLine.len[1]) CFSET strPageNum = REReplaceNoCase(strLine, reLine, \2, ALL) CFSET result = ArrayAppend(arPages, strPageNum) !--- get the next match --- CFSET stcLine = REFindNoCase(reLine, sIn, stcLine.pos[1]+stcLine.len[1]-1, True) /CFLOOP !--- you now have an array of the page numbers (arPages) from which you can populate your select box --- CFOUTPUT select name=filelist size=5 multiple CFLOOP INDEX=i FROM=1 TO=#ArrayLen(arPages)# option value=#arPages[i]##arPages[i]#/option /CFLOOP /select /CFOUTPUT I tested everything except the select box building code on my own machine using a text file I created from your email. You should be able to copy and paste the code directly into your application. Hope this helps, Seth Petry-Johnson Argo Enterprise and Associates __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
File selection...is this possible?
Hi, I have an application where I'm listing multiple files and I require to select certain files in that list or all files. I had the idea of display radio buttons beside each filename and have the user select which files are required and pass all the filenames to another template for processing. I would *really* like to do is a Shift+Click and/or Cntl+Click to highlight selections (Like MS Explorer window) Is this possible? If so, how do I go about this? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: File selection...is this possible?
: 275 . . . 003.00 points free 112folio: 276 . . . 013.00 points free 113folio: 277 . . . 015.00 points free 114folio: 278 . . . 006.00 points free 115folio: 279 . . . 007.00 points free 116folio: 280 . . . 009.00 points free 117folio: 281 . . . 003.00 points free 118folio: 282 . . . 036.00 points free 119folio: 283 . . . 223.00 points free 120folio: 284 . . . 013.00 points free 121folio: 285 . . . 032.00 points free 122folio: 286 . . . 033.00 points free 123folio: 287 . . . 008.00 points free 124folio: 288 . . . 003.00 points free 125folio: 289 . . . 017.00 points free 126folio: 290 . . . 000.00 points free 127folio: 291 . . . 149.00 points free At 08:51 AM 5/31/2002 -0400, you wrote: you could just put the files names into the select box and use the multiple parameter select name=selectfiles size=5 multiple option value=file1The file name/option option value=file2The file name/option option value=file3The file name/option option value=file4The file name/option /select Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 8:51 AM To: CF-Talk Subject: File selection...is this possible? Hi, I have an application where I'm listing multiple files and I require to select certain files in that list or all files. I had the idea of display radio buttons beside each filename and have the user select which files are required and pass all the filenames to another template for processing. I would *really* like to do is a Shift+Click and/or Cntl+Click to highlight selections (Like MS Explorer window) Is this possible? If so, how do I go about this? +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Running program using CFHTTP
I'm looking at the documentation and it looks like I might be able to use cfhttp to run my program on the server from a client PC. I'm not having very much success using cfexecute. Some programs work...others don't. I even tried creating a .bat file without any success. This would be the syntax that I need passed and run via cfhttp using the post method, I think. runprogram.exe inputfile printer-destination It mentions you need to use cfhttparam is using the POST. Any help would be greatly appreciated. Thanks +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Running program using CFHTTP
At 02:04 PM 5/29/2002 +0100, you wrote: I'm looking at the documentation and it looks like I might be able to use cfhttp to run my program on the server from a client PC. I'm not having very much success using cfexecute. Some programs work...others don't. I even tried creating a .bat file without any success. This would be the syntax that I need passed and run via cfhttp using the post method, I think. runprogram.exe inputfile printer-destination It mentions you need to use cfhttparam is using the POST. Any help would be greatly appreciated. The simplest way to do this is by making a CF template that runs CFEXECUTE to run the server-side programs I've done this with another program that works OK. I have another program that just doesn't seem to work properly using CFEXECUTE so I was wondering if there was a way with CFHTTP? You can't run .bat files from the client machine as the browser thinks it has to download it Philip Arnold Technical Director Certified ColdFusion Developer ASP Multimedia Limited Switchboard: +44 (0)20 8680 8099 Fax: +44 (0)20 8686 7911 www.aspmedia.co.uk www.aspevents.net An ISO9001 registered company. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Running program using CFHTTP
I was successful getting my program to run using cfhttp. I created a virtual directory programs under IIS. I need to pass a filename to the program. How can I do this using the URL? WHen I run the below code I get the error that a input file does not exist which is the correct error if the program was run on the console from a command prompt. I need to pass a file into the URL, but how? http://localhost/test.cfm Template (test.cfm) code: cfhttp method=post url=http://localhost/programs/runme.exe; username=test password=test resolveurl=yes: cfhttpparam type=CGI value=cgivar name=mycgi /cfhttp cfoutput #CFHTTP.MimeType#br Length: #len(cfhttp.filecontent)#br Content: #htmlcodeformat(cfhttp.filecontent)#br /cfoutput +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Running program using CFHTTP
At 09:50 AM 5/29/2002 -0400, you wrote: On Wed, 29 May 2002 09:20:09 -0400, in cf-talk you wrote: I've done this with another program that works OK. I have another program that just doesn't seem to work properly using CFEXECUTE so I was wondering if there was a way with CFHTTP? No. (Not unless it was designed to run that way.) I did make an enhanced clone of CFEXECUTE called CFX_EXECUTE a while back for pre-4.5 versions of CF. You could try that and see if it works any better. (Windows only of course.) Sure..I'll give it a try. Where can I download this from? You can't run .bat files from the client machine as the browser thinks it has to download it --min __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CFEXECUTE
Hi, Is there a way to display the output from the cfexecute while the program is running to another window? My program can take over a minute to run and I want the operator to see whats happening in the log file. Is there a way to incorporate a Working.. completion bar? Similar to installing software 0 - 100% bar? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFEXECUTE
At 05:27 PM 5/28/2002 +0100, you wrote: Is there a way to display the output from the cfexecute while the program is running to another window? My program can take over a minute to run and I want the operator to see whats happening in the log file. Is there a way to incorporate a Working.. completion bar? Similar to installing software 0 - 100% bar? Instead of a 0-100% bar (as you never know how long it's going to take), why not have a progress motion bar Basically something that moves back and forwards, sort of like the light on the front of the Knight Rider car g Anyways, to do this, CFOUTPUT some JavaScript which calls a function to update the bar and then CFFLUSH it Are there any examples out there? Philip Arnold Technical Director Certified ColdFusion Developer ASP Multimedia Limited Switchboard: +44 (0)20 8680 8099 Fax: +44 (0)20 8686 7911 www.aspmedia.co.uk www.aspevents.net An ISO9001 registered company. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Running program with cfexecute
Hi, I'm not having much luck running a certain program using cfexecute. Some programs work and others don't. This application is strickly intranet and I was wondering if there was another way of running a program on the server from the client? Possibly via CFHTTP?? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Heirmenu
Hi, Has anyone used the heirmenu from (www.dhtmlmenu.com)? My problem is I'm using frames and my dropdown navigation menu is in the top frame and when clicked does *not* overlay the bottom frame. Is there a version of heirmenu that allows overlaying on frames? If so, which one? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Heirmenu
In this version, correct. At 03:34 PM 5/24/2002 +0200, you wrote: Hi phumes1, I would assume that the dhtml-layer of the menu can't appear anywhere else than in it's own frame... Patric p Hi, p Has anyone used the heirmenu from (www.dhtmlmenu.com)? My problem is I'm p using frames and my dropdown navigation menu is in the top frame and when p clicked does *not* overlay the bottom frame. p Is there a version of heirmenu that allows overlaying on frames? If so, p which one? p +---+ p Philip Humeniuk p [EMAIL PROTECTED] p [EMAIL PROTECTED] p ++ p __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
hiermenus
Hi, I'm using the hiermenus in my application. I have two frames and my top navigation has the dropdown menus. The top frame is only 60 pixels in height but when I move the cursor over the link the popup menu stays within that frame. Is there a way with v4.1.1. to have the dropdown menu overlay the frames? http://www.webreference.com/dhtml/hiermenus/ +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Frames
Hi, I have the following frames setup below. I have a refresh link in the top frame top.cfm which when clicked I want the bottom frame bottom.cfm to refresh. This is the code I have in my top frame. a href=javascript:history.go(0); target=_bottomRefresh/a What am I doing wrong.? It just hangs IE. -- | Refresh | --- | | |Content| | | --- +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Refresh
Hi, I'm having trouble figuring this one out. I'm using cfdirectory to list file(s) on our server. Each file has an associated a href anchor. When a link is clicked on and depending on the file extension different templates are opened up. For example, one link will open a dialog that allows a user to delete the file. When the user clicks on the Delete button the code is executed and the window is closed. What I would like to do, but can't figure it out, is once the secondary window (which executes the delete function) is closed, how can I automatically do a refresh of the previous page that lists all the file(s)? I constantly have to refresh manually. Any ideas? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Floating Navigation
I'm looking for some code that will allow me to have floating navigation text at the bottom of my webpage. As the user scrolls down the page of a long listing the links will flot also. I know I can do this with frames but I want to avoid that. I found one on http://javascript.internet.com/navigation/portable-menu.html but it looks like it can only be top/left positioned. +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Can this be done?
Hi, This might be a crazy question but here it goes. I'm using cfdirectory to list files on our server. Some directories can have a 100+ files in them. Presently I'm displaying the list down the left side of my webpage under each other. file1.txt file2.txt file3.txt file4.txt file5.txt etc... I was wondering if there is a way automatically using a table to do the following and if so, how? file1.txt file5.txt file9.txt file13.txt file17.txt file2.txt file6.txt file10.txt file14.txt file18.txt file3.txt file7.txt file11.txt file15.txt file19.txt file4.txt file8.txt file12.txt file16.txt file20.txt +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Can this be done?
Would x be the line number? At 11:12 AM 5/15/2002 -0600, you wrote: You can reference the query by bracket syntax and do a nested loop as such: !--- Query name = qResults --- cfset cols = 4 cfset rows = Int(qResults.Recordcount/4)+1 cfloop from=1 to=#rows# index=i tr cfloop from=1 to=#cols# index=j cfset currentIndex = i + ((j-1)*rows) cfif currentIndex gt qResults.Recordcount tdnbsp;/td cfelse td#qResults.fieldName[currentIndex]#/td /cfif /cfloop /tr /cfloop NOTE, that code is not tested. It's just give you the idea/theory behind it. I hope that makes sense. Ben Johnson Hostworks, Inc. __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: ARGH!!! Can this be done?
Sorry I was looking at something else. It is probably so simple but I just can't get it. Below is my code. How do I incorporate the directory structure listing? cfparam name=dir default=d:\ cfset RecNo=0 cfoutput query=dirlist cfset RecNo=RecNo + 1 cfset Session.stDirFileName[RecNo] = Name /cfoutput cfoutput table border=0 cellpadding=0 cellspacing=0 width=100% height=20 cfloop index=i from=1 to=#RecNo# cfloop index=LineNo from=#i# to=#i# cfif Session.stDirFileType[i] eq File tr height=20 td#indent#/td td width=18 height=20/td td valign=middle width=100% height=20 !--- [L:#LineNo#][R:#RecNo#] --- !--- Display file names --- #Session.stDirFileName[i]# /td /tr /cfif /cfloop /cfloop /table /cfoutput At 11:45 AM 5/15/2002 -0600, you wrote: Where's the x? -Ben -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 11:35 AM To: CF-Talk Subject: RE: Can this be done? Would x be the line number? At 11:12 AM 5/15/2002 -0600, you wrote: You can reference the query by bracket syntax and do a nested loop as such: !--- Query name = qResults --- cfset cols = 4 cfset rows = Int(qResults.Recordcount/4)+1 cfloop from=1 to=#rows# index=i tr cfloop from=1 to=#cols# index=j cfset currentIndex = i + ((j-1)*rows) cfif currentIndex gt qResults.Recordcount tdnbsp;/td cfelse td#qResults.fieldName[currentIndex]#/td /cfif /cfloop /tr /cfloop NOTE, that code is not tested. It's just give you the idea/theory behind it. I hope that makes sense. Ben Johnson Hostworks, Inc. __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Windows
My main page I have a index.cfm file which gets loaded by IE by default. I don't want the toolbar, menubar etc..etc to appear. I just want the page loaded into a window without all that crud. How can I do this...JS with the code below? 'toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=290,height=200') I can't get this to work properly. It open my index.cfm file in another window without all the crud at the top but then a dialog pops up asking if I want to the this window? Below is the code for my load.cfm page which on the OnLoad loads my index.cfm file. head title/title SCRIPT LANGUAGE=JavaScript !-- Begin function popupPage() { var page = index.cfm; windowprops = height=620,width=720,location=no, + scrollbars=yes,menubars=no,toolbars=no,resizable=yes; window.open(page, Popup, windowprops); } // End -- /script /head BODY onLoad=setTimeout('popupPage()', 1000); script setTimeout(self.close(), 2000 ) /script /body +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF_Execute from http://www.fusionauthority.com tag gallery
I just downloaded CF_Execute from the tag gallery on http://www.fusionauthority.com/ Where do I place the execute.cfm file on my server? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Find match in string
Hi, The code below checks for the filenames and extensions: cfif (ListFindNoCase(dat,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(job,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(inc,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(log,listLast(#Session.stDirFileName[i]#, .))) /cfif Some of the file have a ~ at the end. For example, test.dat~ How can I easily check the above variable for the ~. Note that the file extension could be more than three characters to the right of the . +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: cfexecute
My cfexecute code runs and displays the message in the window afterwards. How can I modify the output window? Do I have to write the output to a file and then read the file in? Does the cfexecute dump the results to a variable? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Free CF Hosting
Hi, Is there free CF hosting around? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: onload
Whats wrong with this? head title/title SCRIPT LANGUAGE=JavaScript !-- function callPage() { window.onload = http://127.0.0.1/index.cfm;; } // -- /SCRIPT /head body onLoad=callPage() +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Looping...
Hi, I have the following code that lists a directory structure but ignores the files listed below. Is there a way to have the files below read in from a database and then loop through field to eliminate all the code below? The database field would be as follows: test1.txt,text2.txt,tst3.txt,txt4.txt,test5.txt,text6.txt,tst7.txt,txt8.txt cfloop index=LineNo from=#i# to=#i# cfif Session.stDirFileType[i] eq File cfif Session.stDirFileName[i] is not test1.txt and Session.stDirFileName[i] is not text2.txt and Session.stDirFileName[i] is not tst3.txt and Session.stDirFileName[i] is not txt4.txt and Session.stDirFileName[i] is not test5.txt and Session.stDirFileName[i] is not text6.txt and Session.stDirFileName[i] is not txt7.txt and Session.stDirFileName[i] is not txt8.txt /cfif /c +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: redirect
Hi, I'm passing the following fieldx in my url to another template. #myPath# #FileName# This get passed as: http://test/test.htm Without creating a anchor to execute the above URL in my template file how can I be redirected to the URL using CF or JS and then have the previous window closed? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Adding MIME types
Hi, Presently I have a .bat file which runs to add mime types into the registry. I have included my .reg file below. Is there a way to have CF add these mimetypes rather than have approximately 50-100 users run this batch file on their PCs? addmimes.bat - @echo off reg import mimetypes.reg mimetypes.reg - Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.dat] @=UltraEdit.dat Content Type=text/dat Perceived Type=text [HKEY_CLASSES_ROOT\.dat\PersistentHandler] @={eec97550-47a9-11cf-b952-00aa0051fe20} [HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/dat] Extension=.dat [HKEY_CLASSES_ROOT\UltraEdit.dat] @=Text Document Old Default=DatObject [HKEY_CLASSES_ROOT\UltraEdit.dat\shell] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\command] @=\C:\\Program Files\\UltraEdit\\UEDIT32.EXE\ \%1\ [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec] @=[open(\%1\)] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec\Application] @=UEDIT32 [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec\topic] @=System [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\command] @=\C:\\Program Files\\UltraEdit\\UEDIT32.EXE\ /p \%1\ [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec] @=[print(\%1\)] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec\Application] @=UEDIT32 [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec\topic] @=System +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Adding MIME types
At 11:11 AM 5/6/2002 -0700, you wrote: AFAIK, you'd have to build an ActiveX control to do that. I'd personally be really pissed if I went to a web site that modified my registry without my permission. It'd be a pretty big security hole in IE/Netscape if that was allowed. Imagine the damage you could do... Its strickly intranet. The only other way I could think is to instruct the user to download the reg file and execute it themselves from your site. -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 11:11 AM To: CF-Talk Subject: Re: Adding MIME types Hi, Presently I have a .bat file which runs to add mime types into the registry. I have included my .reg file below. Is there a way to have CF add these mimetypes rather than have approximately 50-100 users run this batch file on their PCs? addmimes.bat - @echo off reg import mimetypes.reg mimetypes.reg - Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.dat] @=UltraEdit.dat Content Type=text/dat Perceived Type=text [HKEY_CLASSES_ROOT\.dat\PersistentHandler] @={eec97550-47a9-11cf-b952-00aa0051fe20} [HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/dat] Extension=.dat [HKEY_CLASSES_ROOT\UltraEdit.dat] @=Text Document Old Default=DatObject [HKEY_CLASSES_ROOT\UltraEdit.dat\shell] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\command] @=\C:\\Program Files\\UltraEdit\\UEDIT32.EXE\ \%1\ [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec] @=[open(\%1\)] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec\Application] @=UEDIT32 [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\open\ddeexec\topic] @=System [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\command] @=\C:\\Program Files\\UltraEdit\\UEDIT32.EXE\ /p \%1\ [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec] @=[print(\%1\)] [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec\Application] @=UEDIT32 [HKEY_CLASSES_ROOT\UltraEdit.dat\shell\print\ddeexec\topic] @=System +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Redirecting...
Hi again, I've set my MIME type to load the files in Ultraedit on the client from the server. cfset FileName = #ListLast(url.filename, \)# cfset DirPath = #Left(url.filename, Evaluate(Len(url.filename) - len(FileName) - 1))# cfset sr1 = #REReplaceNoCase(DirPath,\\,/,ALL)# cfset sr2 = #REReplaceNoCase(sr1,[A-Z]:,file:\\z:)# cfset myPath = #REReplaceNoCase(sr2,books/,)# Here is the output from the following variables: myPath = file:\\z:/deleteme FileName = test.dat Below is an anchor that when clicking opens the file in UltraEdit no problem. a href=#mypath#/#FileName#Open #FileName#/a How can I make this automatic without having the click on the link? This is a intranet application only. +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Check for text within cookie...Help!
Hi, I'm setting a cookie that can contain 1-10 different groups. For example: cfoutput #COOKIE.DisplayGroups# /cfoutput Output: -- Administrator,Users,Power Users,Mike,Paul,Dave,Sarah I would like to check the COOKIE.DisplayGroups for one of the above groups. If COOKIE.DisplayGroups = Mike ---code here --- endif I've tried using cfif ListLen() but it looks for an EXACT match not just only one of the above occurrences. I have tried numerous syntaxs but just can't get it. I know I'm missing something. Help... +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Check for text within cookie...Help!
At 07:16 AM 5/2/2002 -0400, you wrote: How about... cfif listFind(cookie.displayGroups, Mike) do stuff /cfif There is also listFindNoCase(). If these groups are related to security for your application, I would suggest storing them elsewhere, Database? or encrypting the text if it MUST be in a cookie. I do store the groups into a database at initial logon. I just put it into a cookie so they are active until the session closes. I thought it was easier this way. I'm not sure what you mean by encrypting the text...how? Cookies are fairly easy to modify on most browsers and someone could easily put themselves in the Administrator group. How would someone go about this? -Justin Scott, Lead Developer Sceiron Internet Services, Inc. http://www.sceiron.com - Original Message - From: phumes1 [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, May 02, 2002 7:07 AM Subject: Re: Check for text within cookie...Help! Hi, I'm setting a cookie that can contain 1-10 different groups. For example: cfoutput #COOKIE.DisplayGroups# /cfoutput Output: -- Administrator,Users,Power Users,Mike,Paul,Dave,Sarah I would like to check the COOKIE.DisplayGroups for one of the above groups. If COOKIE.DisplayGroups = Mike ---code here --- endif I've tried using cfif ListLen() but it looks for an EXACT match not just only one of the above occurrences. I have tried numerous syntaxs but just can't get it. I know I'm missing something. Help... +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Check for text within cookie...Help!
Thanks Justin. At 07:41 AM 5/2/2002 -0400, you wrote: If these groups are related to security for your application, I would suggest storing them elsewhere, Database? That is one option, yes. You could also use a session variable, or even a client variable (as long as the storage option is not cookie, or it would defeat the purpose). or encrypting the text if it MUST be in a cookie. I do store the groups into a database at initial logon. I just put it into a cookie so they are active until the session closes. I thought it was easier this way. I'm not sure what you mean by encrypting the text...how? If you keep them in a cookie, you can use the encrypt() function... cfcookie name=displayGroups value=#encrypt(list, key)# ..where list is the variable containing your group list, and key is your encryption key, which must be the same for decryption. You could set a master key in a global file, or use a dynamic value like their username or password (or both). To get the value back on subsequent pages... cfset variables.displayGroups = decrypt(cookie.displayGroups, key) Cookies are fairly easy to modify on most browsers and someone could easily put themselves in the Administrator group. How would someone go about this? That depends on the browser. One could monitor the cookies as they are being set (all major browsers have this feature) and use the cookie names and data to create a more permanent cookie manually. Netscape stores all of its non-session cookies in plain text in a single file, and IE stores them in their own files in a particular directory (IIRC). It's not hard to modify the files to create your own cookies manually. Once the cookie is created with a far off expiration date, they can visit your site, which will think they're already logged in (they have the proper cookies already). -Justin Scott, Lead Developer Sceiron Internet Services, Inc. http://www.sceiron.com __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Check for text within cookie...Help!
What am I doing wrong here in the syntax? Some of the accounts have the group users and others don't. The below code works to a certain point. I also need to check if the cookie has users and ONLY users. The ContainsNoCase doesn't seem to work. Probably because its the wronf one to use? Should I be using the ListFirst? cfif listFindNoCase(COOKIE.DisplayGroups, test) OR listFindNoCase(COOKIE.DisplayGroups, contract) OR listFindNoCase(COOKIE.DisplayGroups, hrls) OR listFindNoCase(COOKIE.DisplayGroups, support) OR listFindNoCase(COOKIE.DisplayGroups, tax) AND ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) OR listContainsNoCase(COOKIE.DisplayGroups, users) AND ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) cfelse LIST DIRECTORY STRUCTURE EXCEPT FOR FMT /cfif __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Check for text within cookie...Help!
At 08:34 AM 5/2/2002 -0400, you wrote: I also need to check if the cookie has users and ONLY users. The ContainsNoCase doesn't seem to work. Probably because its the wronf one to use? Should I be using the ListFirst? listContains() and listContainsNoCase() search for a sub-string within each of the elements in the list, so that wouldn't be right as Power Users would match it as well as just Users. If you want to check for that single item, compare the strings directly... cfif cookie.displayGroups is users You COULD use listFirst, but that would return true only if users were first in line, and other elements could be behind it, but you want to test for only users right? Correct. cfif listFindNoCase(COOKIE.DisplayGroups, test) OR listFindNoCase(COOKIE.DisplayGroups, contract) OR listFindNoCase(COOKIE.DisplayGroups, hrls) OR listFindNoCase(COOKIE.DisplayGroups, support) OR listFindNoCase(COOKIE.DisplayGroups, tax) AND ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) OR listContainsNoCase(COOKIE.DisplayGroups, users) AND ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) cfelse LIST DIRECTORY STRUCTURE EXCEPT FOR FMT /cfif Try grouping your logic together into more defined groups using (). Like.. (a OR b OR c OR d OR e) AND ((f) OR (g AND h)) Also, instead of... ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) ..I'd use... right(Session.stDirFileName[i], 3) is fmt ..since it's a direct text comparison and not a true list operation. Good point. Thanks again. -Justin Scott, Lead Developer Sceiron Internet Services, Inc. http://www.sceiron.com __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Check for text within cookie...Help!
Arg...this is driving me nuts. I'm having trouble understanding the combined expressions. I'm displaying a directory structure with the following sub-directories: [test] [eps] [fmt] [format] ..text file... ..text file... If the user has a assigned group of Users and ONLY Users the following gets displayed which is correct: [test] ..text file... ..text file... If the user has a assigned group of Administrators,Users then the following gets displayed which is NOT correct: [eps] [test] ..text file... ..text file... I know the syntax is not correct but I can't figure it out. Below is my code. Help... cfif (listFindNoCase(COOKIE.DisplayGroups, test) OR listFindNoCase(COOKIE.DisplayGroups, contract) OR listFindNoCase(COOKIE.DisplayGroups, hrls) OR listFindNoCase(COOKIE.DisplayGroups, support) OR listFindNoCase(COOKIE.DisplayGroups, tax) AND ListFindNoCase(eps,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(format,listLast(#Session.stDirFileName[i]#, .)) OR (COOKIE.displayGroups is Users AND ListFindNoCase(eps,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(format,listLast(#Session.stDirFileName[i]#, . +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Check for text within cookie...Help!
Here is another crazy question. The below code works great: cfif (listFindNoCase(COOKIE.DisplayGroups, test) OR listFindNoCase(COOKIE.DisplayGroups, contract) OR listFindNoCase(COOKIE.DisplayGroups, hrls) OR listFindNoCase(COOKIE.DisplayGroups, support) OR listFindNoCase(COOKIE.DisplayGroups, tax) AND ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) OR (COOKIE.displayGroups is Users AND ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, . I can get all of the above group(s) from a database. Can I do the same as above but us a loop to check? Not sure on how to go about that. Can I have a cfloop within a cfloop? At 08:34 AM 5/2/2002 -0400, you wrote: I also need to check if the cookie has users and ONLY users. The ContainsNoCase doesn't seem to work. Probably because its the wronf one to use? Should I be using the ListFirst? listContains() and listContainsNoCase() search for a sub-string within each of the elements in the list, so that wouldn't be right as Power Users would match it as well as just Users. If you want to check for that single item, compare the strings directly... cfif cookie.displayGroups is users You COULD use listFirst, but that would return true only if users were first in line, and other elements could be behind it, but you want to test for only users right? cfif listFindNoCase(COOKIE.DisplayGroups, test) OR listFindNoCase(COOKIE.DisplayGroups, contract) OR listFindNoCase(COOKIE.DisplayGroups, hrls) OR listFindNoCase(COOKIE.DisplayGroups, support) OR listFindNoCase(COOKIE.DisplayGroups, tax) AND ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) OR listContainsNoCase(COOKIE.DisplayGroups, users) AND ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) cfelse LIST DIRECTORY STRUCTURE EXCEPT FOR FMT /cfif Try grouping your logic together into more defined groups using (). Like.. (a OR b OR c OR d OR e) AND ((f) OR (g AND h)) Also, instead of... ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) ..I'd use... right(Session.stDirFileName[i], 3) is fmt ..since it's a direct text comparison and not a true list operation. -Justin Scott, Lead Developer Sceiron Internet Services, Inc. http://www.sceiron.com __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Check for text within cookie
What the I keep getting different results. When I log on with a test account the groups assigned ato my cookie are tax,hrls,Users My sub-directories are [eps] [fmt] [format] [test] ..file... ..file...etc. What gets listed is just the files. The directory [test] should be listed also. When I log on with a another account the groups assigned are hrls,support,tax,contract,Users,Administrators My sub-directories are [eps] [fmt] [format] [test] ..file... ..file...etc. What gets listed are just the files. No sub-directories. In this case they should ALL be listed. Below is my code. What am I doing wrong??? cfif (listFindNoCase(COOKIE.DisplayGroups, test) OR listFindNoCase(COOKIE.DisplayGroups, contract) OR listFindNoCase(COOKIE.DisplayGroups, hrls) OR listFindNoCase(COOKIE.DisplayGroups, support) OR listFindNoCase(COOKIE.DisplayGroups, tax) AND ListFindNoCase(eps,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(format,listLast(#Session.stDirFileName[i]#, .))) OR (COOKIE.displayGroups is Users AND ListFindNoCase(eps,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(fmt,listLast(#Session.stDirFileName[i]#, .)) OR ListFindNoCase(format,listLast(#Session.stDirFileName[i]#, .))) cfelse RUN CODE FOR DIRECTORY LISTING cfif +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Submitting to popoup window
Hi, From link I'm opening a window where I'm selecting a username from a dropdown selection and then passing that form variable to another template. The first window size is width=340, height=180 If I try to open another window using JS with different width/height settings my form.variable doesn't get passed? users.cfm html head title/title /head body form action=properties-users-action.cfm method=post select name=propertiesuser size=1 class=formfield option value=# selectedSelect...nbsp;/option cfoutput query=Users group=user option value=#User##User#/option /cfoutput /select input type=submit value=Info class=navlinks input type=button value=Close class=navlinks onClick=self.close() /form /body /html properties-users-action.cfm == html head title/title /head body cfoutput FORM.propertiesuser: #FORM.propertiesuser#br /cfoutput /body /html +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Window resize
Is there a way to have Javascript resize my window with a onload command? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: LOOP
Hi, The below lists all users logged in to the server. If the user has logged in more than once then I get multiple usernames listed. How can I only list one occurrence of all users? cfoutput query=USERS #User# /cfoutput The above outputs: Administrator Administrator Administrator Administrator test test user1 user1 user2 user3 user3 I want to display only: Administrator test user1 user2 user3 +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: LOOP
The group attribute did the trick. THanks At 10:06 AM 4/16/2002 -0400, you wrote: Also phumes1, if you cannot do that for some reason, see the group and groupCaseSensitive attributes of the CFOUTPUT tag. -Justin Scott, Lead Developer Sceiron Internet Services, Inc. http://www.sceiron.com - Original Message - From: Bob Imperial [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, April 16, 2002 9:59 AM Subject: RE: LOOP Use DISTINCT in your query Bob -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 10:01 AM To: CF-Talk Subject: Re: LOOP Hi, The below lists all users logged in to the server. If the user has logged in more than once then I get multiple usernames listed. How can I only list one occurrence of all users? cfoutput query=USERS #User# /cfoutput The above outputs: Administrator Administrator Administrator Administrator test test user1 user1 user2 user3 user3 I want to display only: Administrator test user1 user2 user3 +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: INPUT checkboxes
Hi, I need to pass all the boxes checked to another template but the below only passes the first one? input class=formbuttons type=checkbox name=mcp value=mcpMust Change Passwordbr input class=formbuttons type=checkbox name=ccp value=ccpCannot Change Passwordbr input class=formbuttons type=checkbox name=pne value=pnePassword Never Expiresbr input class=formbuttons type=checkbox name=ad value=adAccount Disabled +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Custom Tag
Hi, I have a custom tag that I want to add some CFIF statements but I'm not sure if this can be done. Has anyone had experience doing this before? I'm passing the username, fullname and password from input boxes and the password items with checkboxes to my template. The below custom tags is from the IHTK toolkit at http://www.intrafoundation.com/ihtk.html cfoutput CFX_Users ACTION=ADD USER=#FORM.adduser# FULLNAME=#FORM.addfullname# PasswordNeverExpires=no cfif FORM.select IS mcp MustChangePassword=yes cfelse cfif FORM.select IS ccp CannotChangePassword=yes cfelse cfif FORM.select IS pne PasswordNeverExpires=yes cfelse cfif FORM.select IS ad AccountDisabled=yes /cfif /cfif /cfif Password=#FORM.addpassword# /cfif /cfoutput +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: INPUT / check boxes
Hi, Below I have the following checkboxes. What I would like to do is if a user checks the first box (User must change password at next login) then the next two (User cannot change password Password never expires) become uncheckable or greyed out. If the (Password never expires) is checked then the User must change password at next login gets greyed out or uncheckable. Similar to adding a user in NT. How can I do this? input class=formbuttons type=checkbox name=select value=MustChangePasswordUser must change password at next loginbr input class=formbuttons type=checkbox name=select value=CannotChangePasswordUser cannot change passwordbr input class=formbuttons type=checkbox name=select value=PasswordNeverExpiresPassword never expiresbr input class=formbuttons type=checkbox name=select value=AccountDisabledAccount is disabled +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: User Groups
I know this is not the place for this but I'm sure some of you come from an ASP background. I would prefer to do this in CF but unfortunately the provider does not support it. Are there any good discussion groups similar to this one that I could get some information? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Web Hosting
Hi, I found a web hosting company http://www.parcom.net/ which in its standard list of features includes ColdFusion Express Support. Whats the difference from this and just CF support? __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF Web Hosting
Can someone tell me what it means when the web hosting company offers ColdFusion Express? Whats the difference between that and just ColdFusion Server?? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF Web Hosting
Thanks for the info. Who would you suggest? What about www.media3.net? At 12:34 AM 4/9/2002 +1000, you wrote: It means the web hosting company is a joke. CF Express has limited features of Server. Don't bother with that web host. At 10:29 AM 4/8/2002 -0400, you wrote: Can someone tell me what it means when the web hosting company offers ColdFusion Express? Whats the difference between that and just ColdFusion Server?? + ---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] + + __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CF Web Hosting
I just tried http://www.cfdynamics.com and http://cfdynamics.com I can't find the server. This is not a good start. :-) At 12:04 PM 4/8/2002 -0400, you wrote: I have clients running on advances.net, media3.net and cfdynamics.com. My experience with advances.net is that they do not have enough experience hosting ColdFusion applications to keep the servers running at optimum speeds at all times. They are good people but I wouldn't recommend them. I also have a client at media3.net. They have improved greatly in the past year in their performance but they still have issues. I had to diagnose an issue for them about a year ago in which i couldn't do an alias on a joined column in a query and it was because they were not on the latest version of MDAC. Needless to say I wasn't happy. Lastly, I have clients at cfDynamics.com. They have the fastest performing servers and appear to be the only host with actual ColdFusion 5 Certified developers. (of the hosts I listed they are the only certified ones) I'd recommend CFDynamics over Media3 and Advances. They're far cheaper than most hosts and it surprises me based on the performance and service I've seen to date. ~jason -Original Message- From: James [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 10:51 AM To: CF-Talk Subject: Re: CF Web Hosting phumes, scroll back up the msg list and check out the other posts made under this topic, there is quite a few references made to other hosts that make the grade.and others that don't :-) At 10:48 AM 4/8/2002 -0400, you wrote: Thanks for the info. Who would you suggest? What about www.media3.net? At 12:34 AM 4/9/2002 +1000, you wrote: It means the web hosting company is a joke. CF Express has limited features of Server. Don't bother with that web host. At 10:29 AM 4/8/2002 -0400, you wrote: Can someone tell me what it means when the web hosting company offers ColdFusion Express? Whats the difference between that and just ColdFusion Server?? + ---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] + + __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Stop/restarting CF from a web page
Hi, How can I stop and start the CF server from within a webpage? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CF Web Hosting
Yea...I just tried it and got on. Server must have went down. :-) At 12:58 PM 4/8/2002 -0400, you wrote: http://www.cfdynamics.com/ loads right away for me. Ken -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:47 PM To: CF-Talk Subject: RE: CF Web Hosting I just tried http://www.cfdynamics.com and http://cfdynamics.com I can't find the server. This is not a good start. :-) __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Stop/restarting CF from a web page
Hmmm...it wouldn't work. Do I need to enable anything on the NT side? Here is my index.cfm and my service-action.cfm pages... index.cfm - html head titleColdFusion Services/title /head body bgcolor=#ff text=#00 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 link=#FF vlink=#FF alink=#FF link rel=STYLESHEET type=text/css href=cfoutput#stylesheets#styles.css/cfoutput cfform action=service-action.cfm method=post name=display table width=100% cellpadding=12 cellspacing=0 border=0 tr class=dirlinks valign=top th Stop and Start ColdFusion Services /th /tr tr class=dirlinks valign=top td align=center input type=submit name=submit value=Stop class=navlinks input type=submit name=submit value=Start class=navlinks input type=button value=Close class=navlinks onClick=self.close() /td /tr /table /cfform /body /html service-action.cfm - html head titleColdFusion Services/title /head body bgcolor=#ff text=#00 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 link=#FF vlink=#FF alink=#FF link rel=STYLESHEET type=text/css href=cfoutput#stylesheets#styles.css/cfoutput !--- STOP/START COLD FUSION APPLICATION SERVER --- table width=100% cellpadding=12 cellspacing=0 border=0 tr class=dirlinks valign=top cfif form.submit is Stop th Stop ColdFusion Services /th cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion Application Server' /cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion Executive' /cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion RDS' /cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop ColdFusion Graphing Server' /cfexecute cfelseif form.submit is Start th Start ColdFusion Services /th cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion Application Server' /cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion Executive' /cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion RDS' /cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start ColdFusion Graphing Server' /cfexecute cfelse cfabort showerror=An invalid action was passed. /cfif /tr tr class=dirlinks valign=top td align=center input type=button value=Back class=navlinks onClick=history.back() input type=button value=Close class=navlinks onClick=self.close() /td /tr /table /body /html At 01:21 PM 4/8/2002 -0400, you wrote: use cfexecute tag. Stopping cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion Application Server'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion Executive'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion RDS'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop ColdFusion Graphing Server'/cfexecute Starting cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion Application Server'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion Executive'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion RDS'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start ColdFusion Graphing Server'/cfexecute Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 1:19 PM To: CF-Talk Subject: Re: Stop/restarting CF from a web page Here is a custom CFX tag for this, but i believe it is for NT http://devex.macromedia.com/developer/gallery/info.cfm?ID=A155CF05-7445-11D4 -AAA 400508B94F380method=Full Success is a journey, not a destination!! Doug Brown - Original Message - From: phumes1 [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, April 08, 2002 10:08 AM Subject: Re: Stop/restarting CF from a web page Hi, How can I stop and start the CF server from within a webpage? +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED
RE: Stop/restarting CF from a web page- to Anthony???
Thanks...got it working. Is there a way to have CF display the below batch file executing. I know I can output the results to a file. How do I know when all the services have been stopped and then started again. What I want to do is have the window display Stopping/Starting Services...please wait and then close when all the services have been stopped/started? At 01:58 PM 4/8/2002 -0400, you wrote: Just tested it out. Worked like a champ. ColdFusion Page === cfexecute name=c:\test.bat/cfexecute **NOTE - use the full page to test.bat test.bat c:\winnt\system32\net.exe stop Cold Fusion Application Server c:\winnt\system32\net.exe stop Cold Fusion Executive c:\winnt\system32\net.exe stop Cold Fusion RDS c:\winnt\system32\net.exe stop ColdFusion Graphing Server c:\winnt\system32\net.exe start Cold Fusion Application Server c:\winnt\system32\net.exe start Cold Fusion Executive c:\winnt\system32\net.exe start Cold Fusion RDS c:\winnt\system32\net.exe start ColdFusion Graphing Server Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 1:50 PM To: CF-Talk Subject: RE: Stop/restarting CF from a web page- to Anthony??? didn't think of that ;) actually what you could is put the net command in a batch file and then execute the bat file with cfexecute. i always miss the obvious. Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: Chakka, Sudheer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 1:46 PM To: CF-Talk Subject: Stop/restarting CF from a web page- to Anthony??? Hi Anthony, One stupid question i guess: After the Cold Fusion Application Server is stopped how can the CFEXECUTE can run, to restart the service again ?? Thanks, Sudheer Chakka -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:21 PM To: CF-Talk Subject: RE: Stop/restarting CF from a web page use cfexecute tag. Stopping cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion Application Server'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion Executive'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop Cold Fusion RDS'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='stop ColdFusion Graphing Server'/cfexecute Starting cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion Application Server'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion Executive'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start Cold Fusion RDS'/cfexecute cfexecute name=c:\winnt\system32\net.exe arguments='start ColdFusion Graphing Server'/cfexecute Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 1:19 PM To: CF-Talk Subject: Re: Stop/restarting CF from a web page Here is a custom CFX tag for this, but i believe it is for NT http://devex.macromedia.com/developer/gallery/info.cfm?ID=A155CF05-7445-11D4 -AAA 400508B94F380method=Full Success is a journey, not a destination!! Doug Brown - Original Message - From: phumes1 [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, April 08, 2002 10:08 AM Subject: Re: Stop/restarting CF from a web page Hi, How can I stop and start the CF server from within a webpage? +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Chat
There is a site www.softchoice.com which has a cool Chat program where you can ring the sales person who then comes online to chat with you. Is there anything in CF that can do this. I want the chat for a specific user. I don't want *anyone* to come in. +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: INPUT
Won't work. It outputs the input text. Error on #MyGroups# cfoutput #MyGroups# class=navlinks /cfoutput Output error: [ Add ] input type=hidden name=submit value= At 08:42 AM 4/3/2002 +0200, you wrote: You're missing a CFOUTPUT around the hidden -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: dinsdag 2 april 2002 18:45 To: CF-Talk Subject: Re: INPUT Yup, Me again, I'm trying to pass the #user# selected from the down-down menu to the hidden input field and pass that to my template. Lets say I select phumes1 from the list. I want this passed to my template file but all I get when I submit this code is. #MyGroups# form action=groups-action.cfm?MyGroups=#User# name=display select name=gd size=1 onChange=groupdisplay() class=dirlinks option value=# selectedSelect...nbsp;/option cfoutput query=Users group=user option value=groups-list-action.cfm?MyGroups=#User##User#/option /cfoutput /select input type=submit name=submit value=Add class=navlinks input type=hidden name=results value=#MyGroups# class=navlinks /form +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Intranet/Hosting Toolkit
Hi, Is anyone using the custom tag CFX_Users ACTION=USERS to list all the nt user accounts and CFX_Users ACTION=GROUPS SCOPE=Local USER=username to list tassociated groups for a specific user? http://www.intrafoundation.com/ihtk.html +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFFORM
The problem with this is I'm submitting from a drop-down menu which when a user is selecting the information is displayed in my iframe. I then have 2 submit buttons Add and Delete which I need to pass the #User# to another template to delete or add a group. !--- START RETURN LIST OF ALL NT USER ACCOUNTS --- CFX_Users ACTION=USERS CFIF IsDefined(Users) CFIF IsQuery(Users) CFLOOP QUERY=Users CFOUTPUT !--- td#User#/td td#FullName#/td tdsmall#Description#/small/td tdsmall#SID#/small/td --- /CFOUTPUT /CFLOOP /CFIF /CFIF !--- END RETURN LIST OF ALL NT USER ACCOUNTS --- form name=display select name=gd size=1 onChange=groupdisplay() class=dirlinks option value=# selectedSelect...nbsp;/option cfoutput query=Users group=user option value=groups-action.cfm?MyGroups=#User##User#/option /cfoutput /select !--- Call in iframe for font display --- script type=text/javascript src=cfoutput#rootjs#/cfoutputgroupdisplay.js /script input type=button name=submit value=Add class=navlinks input type=button name=submit value=Delete class=navlinks input type=button value=Close class=navlinks onClick=self.close() /form why not just submit to one page and include the add-action.cfm or delete-action.cfm based on what the value of the submit button is? form action=action.cfm ... ... input type=submit name=submit value=Add input type=submit name=submit value=Delete /form Then on your action page: cfif form.submit eq Add cfinclude template=add-action.cfm cfelse cfinclude template=delete-action.cfm /cfif Also, I try to steer clear of cfform ... it sometimes clashes with any other javascript that I have on the page. Regular form tags seem to work just dandy for me. But, that's just my opinion. I'm sure cfform has its upsides. Cheers, Tony -Original Message- From: phumes1 [mailto: Sent: Monday, April 01, 2002 11:00 AM To: CF-Talk Subject: Re: CFFORM Hi, This is an addition to my previous email. I'll try and explain it better. I have a drop-down menu which lists users. Whn auser is selected I have two button on the page Add and Delete which when clicked the username gets passed to either a add-action.cmf or delete-action.cfm template. Does this have to be done with Javascript? If so, how? Right now I just have my code between CFFORM.../CFFORM tags. +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: INPUT
Yup, Me again, I'm trying to pass the #user# selected from the down-down menu to the hidden input field and pass that to my template. Lets say I select phumes1 from the list. I want this passed to my template file but all I get when I submit this code is. #MyGroups# form action=groups-action.cfm?MyGroups=#User# name=display select name=gd size=1 onChange=groupdisplay() class=dirlinks option value=# selectedSelect...nbsp;/option cfoutput query=Users group=user option value=groups-list-action.cfm?MyGroups=#User##User#/option /cfoutput /select input type=submit name=submit value=Add class=navlinks input type=hidden name=results value=#MyGroups# class=navlinks /form +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: List only one occurrence
Hi, I'm using a custom tag that lists all the current users logged into out NT system and multiple telnet sessions. The results are displayed by querying the #user# variable. Here is an example list and example code below: Administrator Administrator Administrator Administrator Administrator Administrator Administrator Administrator user1 user1 user2 user3 user3 user3 user3 user4 user4 user5 user6...and so on CFX_Users ACTION=CURRENTUSERS CFIF IsDefined(Users) CFIF IsQuery(Users) CFLOOP QUERY=Users CFOUTPUT #User# /CFOUTPUT /CFLOOP /CFIF /CFIF How can I display only *ONE* user (below) instead of multiple occurrences like above? Administrator user1 user2 user3 user4 user5 user6 +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: List only one occurrence
I get an error. Invalid tag nesting configuration A top-level grouping tag was not found. A CFOUTPUT tag that has a GROUP=attribute must always be nested inside a top-leven grouping tag that drives the grouping process. The top-level tag must have a QUERY=attribute. At 09:20 AM 4/1/2002 -0500, you wrote: cfoutput group=user Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 9:12 AM To: CF-Talk Subject: Re: List only one occurrence Hi, I'm using a custom tag that lists all the current users logged into out NT system and multiple telnet sessions. The results are displayed by querying the #user# variable. Here is an example list and example code below: Administrator Administrator Administrator Administrator Administrator Administrator Administrator Administrator user1 user1 user2 user3 user3 user3 user3 user4 user4 user5 user6...and so on CFX_Users ACTION=CURRENTUSERS CFIF IsDefined(Users) CFIF IsQuery(Users) CFLOOP QUERY=Users CFOUTPUT #User# /CFOUTPUT /CFLOOP /CFIF /CFIF How can I display only *ONE* user (below) instead of multiple occurrences like above? Administrator user1 user2 user3 user4 user5 user6 +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: List only one occurrence
I left out the loop. Works great. Thanks At 09:40 AM 4/1/2002 -0500, you wrote: CFOUTPUT QUERY=QueryName GROUP=User This must be the 1st output statement on your page The CFLOOP can go inside the output statement, but not the other way around. So what you'd need to do is something like this CFOUTPUT QUERY=Users GROUP=UserID CFLOOP QUERY=Users #User# /CFLOOP /CFOUTPUT Or leave out the loop if possible: CFOUTPUT QUERY=Users GROUP=UserID #User# /CFOUTPUT -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 9:40 AM To: CF-Talk Subject: RE: List only one occurrence I get an error. Invalid tag nesting configuration A top-level grouping tag was not found. A CFOUTPUT tag that has a GROUP=attribute must always be nested inside a top-leven grouping tag that drives the grouping process. The top-level tag must have a QUERY=attribute. At 09:20 AM 4/1/2002 -0500, you wrote: cfoutput group=user Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 9:12 AM To: CF-Talk Subject: Re: List only one occurrence Hi, I'm using a custom tag that lists all the current users logged into out NT system and multiple telnet sessions. The results are displayed by querying the #user# variable. Here is an example list and example code below: Administrator Administrator Administrator Administrator Administrator Administrator Administrator Administrator user1 user1 user2 user3 user3 user3 user3 user4 user4 user5 user6...and so on CFX_Users ACTION=CURRENTUSERS CFIF IsDefined(Users) CFIF IsQuery(Users) CFLOOP QUERY=Users CFOUTPUT #User# /CFOUTPUT /CFLOOP /CFIF /CFIF How can I display only *ONE* user (below) instead of multiple occurrences like above? Administrator user1 user2 user3 user4 user5 user6 +-- - + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +-- - -+ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFFORM
Hi, How can I submit the CFFORM using javascript from the OPTION tag? For some reason the below buttons Add and Delete won't work? cfform name=display ..stuff missing... option value=groups-list-action.cfm?MyGroups=#User##User#/option /cfform I want to be able to pass the #User# variable to my other templates from the buttons below. input type=button value=Add class=navlinks onClick=parent.location='groups-add-action.cfm?AddUser=#User#' input type=button value=Delete class=navlinks onClick=parent.location='groups-delete-action.cfm' +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFFORM
Hi, This is an addition to my previous email. I'll try and explain it better. I have a drop-down menu which lists users. Whn auser is selected I have two button on the page Add and Delete which when clicked the username gets passed to either a add-action.cmf or delete-action.cfm template. Does this have to be done with Javascript? If so, how? Right now I just have my code between CFFORM.../CFFORM tags. +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFCOOKIE
Hi, I'm using a custom tag the displays the groups assigned to a specific user which works fine. The code below is in my application.cfm file in my wwwroot. I can't seem to figure out when I set a cookie it only displays the last group of that user? When I run the code for the first time the following groups are displayed from the #group# contract hrls supprt tax Administrators Groups: Administrators Why is it only displaying Administrators and not the who string? The idea is to use the cookie.SetGroups to set profiles for each user based on the groups assigned to them via NT. cfif IsDefined(Cookie.Groups) is False cfcookie name=Groups value=1 !--- START LIST VALID GROUPS FOR A SPECIFIC USER --- CFX_Users ACTION=GROUPS SCOPE=Local USER=test CFIF IsDefined(Users) CFIF IsQuery(Users) CFLOOP QUERY=Users cfoutput #Group# /cfoutput cfcookie name=SetGroups value=#group# expires=NEVER /CFLOOP /CFIF /CFIF !--- END LIST VALID GROUPS FOR A SPECIFIC USER --- /cfif Groups: cfoutput#COOKIE.SetGroups#/cfoutput +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFCOOKIE... more...
Thats it! Thanks At 11:31 AM 3/28/2002 -0800, you wrote: try this: cfcookie name=SetGroups value=#valuelist(users.group)# expires=NEVER +---+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst Telecommunication Systems [EMAIL PROTECTED] +---+ ...'If there must be trouble, let it be in my day, that my child may have peace'... - Thomas Paine, The American Crisis -Original Message- From: Bryan Love [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 11:28 AM To: CF-Talk Subject: RE: CFCOOKIE You are displaying the GROUP variable from inside a loop, but you are also setting the cookie inside the loop. So you are really doing this... contract [set cookie to contract] hrls [set cookie to hrls] supprt [set cookie to support] tax [set cookie to tax] Administrators [set cookie to Administrators] so you can see why the cookie ends up being Administrators... +---+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst Telecommunication Systems [EMAIL PROTECTED] +---+ ...'If there must be trouble, let it be in my day, that my child may have peace'... - Thomas Paine, The American Crisis -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 11:08 AM To: CF-Talk Subject: Re: CFCOOKIE Hi, I'm using a custom tag the displays the groups assigned to a specific user which works fine. The code below is in my application.cfm file in my wwwroot. I can't seem to figure out when I set a cookie it only displays the last group of that user? When I run the code for the first time the following groups are displayed from the #group# contract hrls supprt tax Administrators Groups: Administrators Why is it only displaying Administrators and not the who string? The idea is to use the cookie.SetGroups to set profiles for each user based on the groups assigned to them via NT. cfif IsDefined(Cookie.Groups) is False cfcookie name=Groups value=1 !--- START LIST VALID GROUPS FOR A SPECIFIC USER --- CFX_Users ACTION=GROUPS SCOPE=Local USER=test CFIF IsDefined(Users) CFIF IsQuery(Users) CFLOOP QUERY=Users cfoutput #Group# /cfoutput cfcookie name=SetGroups value=#group# expires=NEVER /CFLOOP /CFIF /CFIF !--- END LIST VALID GROUPS FOR A SPECIFIC USER --- /cfif Groups: cfoutput#COOKIE.SetGroups#/cfoutput +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Closing window
How can I close a window using javascript without having to click on a link or button? After my CF code runs I want the window to close. +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Closing window
Thats cool but whats the advantage of putting this code in the onrequestend.cfm instead on my file.cfm? If I have other templates in the same directory that I don't want closed I should put the window.close only in the files that I want, right? At 06:14 PM 3/27/2002 +, you wrote: Within a onRequestEnd.cfm file Place script window.close(); /script __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: kill session aka Logout page
Do you put this into the logout page (logout.cfm) or into the application.cfm? At 10:10 AM 3/26/2002 -0500, you wrote: This is what we use to delete ALL session and client vars, and cookies. Chris Norloff !--- delete the session (all vars, including CFID CFTOKEN) --- cflock timeout=#variables.lock_timeout# throwontimeout=Yes scope=session type=EXCLUSIVE cfset temp = #StructClear(session)# /cflock !--- delete all client vars --- cfset variables.client_var_list = #GetClientVariablesList()# cfloop index=list_element list=#variables.client_var_list# delimiters=, cfset temp = DeleteClientVariable(#list_element#) /cfloop !--- delete cookies --- cfcookie name=CFID value=empty expires=NOW cfcookie name=CFTOKEN value=empty expires=NOW -- Original Message -- from: YC Nyon [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] date: Mon, 25 Mar 2002 22:09:36 +0800 hi, anyone mind to share the code to do a logout page where the session is terminated. thanks Nyon __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Running code just one time
Hi, This is regarding a post from yesterday. Maybe I didn't explain it properly. I had mentioned a custom tag but for now lets just forget about it. I am running IIS on NT 4. All users have accounts on the system. In IIS under the Default Web Site Properties I went into the Directory Security tab and disabled the Anonymous Access and enabled the NT Windows Challenge/Response only. Now when users try to access the web page they are prompted with a username/password Windows authentication dialog. If the correct username/password are entered the user is redirected to my index.cfm file. This is what I would like to do. Within my index.cfm or application.cfm file I want to check if this is the first time that the index.cfm file is loaded. If so, do something otherwise do nothing. Below is just an example... index.cfm or application.cfm -- - Check to see if this is the first time index.cfm file is loaded (at login time) - If so dump some test pLogged in/p If index.cfm is loaded any other time do nothing I'm not sure how to incorporate this? +---+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] ++ __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Running code just one time
OK...but won't this session variable always be 1 when the application.cfm is loaded again? Do I have to set the variable to 2 once I output what I want for the first time. I'm missing something here... At 07:02 AM 3/20/2002 -0500, you wrote: When they get logged in, set a flag in application.cfm, such as a session session.beenHereBefore = 1, then in your index page check the value of the variable and output accordingly. HTH, Mike -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 7:07 AM To: CF-Talk Subject: Re: Running code just one time Hi, This is regarding a post from yesterday. Maybe I didn't explain it properly. I had mentioned a custom tag but for now lets just forget about it. I am running IIS on NT 4. All users have accounts on the system. In IIS under the Default Web Site Properties I went into the Directory Security tab and disabled the Anonymous Access and enabled the NT Windows Challenge/Response only. Now when users try to access the web page they are prompted with a username/password Windows authentication dialog. If the correct username/password are entered the user is redirected to my index.cfm file. This is what I would like to do. Within my index.cfm or application.cfm file I want to check if this is the first time that the index.cfm file is loaded. If so, do something otherwise do nothing. Below is just an example... index.cfm or application.cfm -- - Check to see if this is the first time index.cfm file is loaded (at login time) - If so dump some test pLogged in/p If index.cfm is loaded any other time do nothing I'm not sure how to incorporate this? +--- + Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--- -+ __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists