RE: Recordset to structure?
There are 3 UDFs on cflib (http://www.cflib.org/library.cfm?ID=5) in the datamanipulation lib under query -Original Message- From: Kay Smoljak [mailto:[EMAIL PROTECTED]] Sent: vrijdag 12 april 2002 8:14 To: CF-Talk Subject: Recordset to structure? Hi all, I'm wondering what the simplest way would be to convert a query recordset to a structure. I know that a recordset *is* a structure, but I would like to copy it to the session scope and add, edit and remove keys as it goes through various scripts. I can't find anything on the developer's exchange. The two options I can see are looping over each record and copying it to a struct, or using Query functions to manipulate the recordset itself. I haven't worked with the query functions very much - are there any limitations to either of these approaches? How about performance? Any pointers would be greatly appreciated. Kay. __ Kay Smoljak - ColdFusion Developer - PerthWeb Pty Ltd Level 9/105 St George's Terrace - Perth - Western Australia Ph: (08) 9226 1366 Fax: (08) 9226 1375 www.perthweb.com.au http://developer.perthweb.com.au - Tools for Developers cfx_pwcamtech | cfx_pwimageproc | cfx_pwcardcyrpt __ 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: CFINCLUDE tag and relative paths
Easiest solution is to use CF mappings instead of relative paths. -Original Message- From: heirophant mm [mailto:[EMAIL PROTECTED]] Sent: vrijdag 12 april 2002 4:11 To: CF-Talk Subject: CFINCLUDE tag and relative paths I have a display template, called as a custom tag through CFMODULE. The caller tags pass it an attribute called "navigation", which is the path of a navigation template to display. The custom tag displays it using . I want the caller to be able to pass a path relative from itself (for ease of use) - so the value you pass for the "navigation" attribute would be the same as the value that a CFINCLUDE right inside the caller template would use. However, since the display template is in a different folder, just doing does not work, since it expects the path to be relative from the current template, NOT the caller template. I wrote some UDFs that convert the value of attributes.navation so the path is instead relative to the display template, allowing the CFINCLUDE tag to work correctly. This solution is not very elegant, though. Nor is it efficient. Am I missing an easier way to do this? To summarize, I want a CFINCLUDE tag to correctly find a path that is relative to the caller template, instead of the current [custom tag] template. Note: For reasons unknown to me, we aren't allowed to use the Custom Tags folder on our server. So this display template I'm talking about is actually below the wwwroot folder. I don't know if that makes any difference in my problem. This brings me to my second question: Do custom tags actually in the Custom Tags folder behave differently concerning tags such as CFINCLUDE? In this case, would the CFINCLUDE tag look for a template relative to the caller template instead? --- Mike Mertsock Web Applications Programmer Alfred University [EMAIL PROTECTED] See Dave Matthews Band live or win a signed guitar http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp 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 __ 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: Custom Tag Question
This works, but why not use Dave's approach and pass the query as a pointer. It will make more readable code. Also, you don't need to pass the recordcount into the CT. The info is available there. Calling the tag with this: -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED]] Sent: donderdag 11 april 2002 22:45 To: CF-Talk Subject: RE: Custom Tag Question Ok... i did quite follow what you guys were saying, but thanks for trying. I did get it to work like this. Let me know if im an idiot and if this is total kludge. I put Caller.#ATTRIBUTES.Query# into the Query="" on my CFoutput. Calling the tag with this: __ 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: CF Web Hosting
Way to go Jason == making us look bad... ;-) Jason CFDynamics.com -Original Message- From: Dowdell, Jason G [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:50 AM To: CF-Talk Subject: RE: CF Web Hosting Must've been one of my infinite loops :0) ~jason -Original Message- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 1:14 PM To: CF-Talk Subject: 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
Recordset to structure?
Hi all, I'm wondering what the simplest way would be to convert a query recordset to a structure. I know that a recordset *is* a structure, but I would like to copy it to the session scope and add, edit and remove keys as it goes through various scripts. I can't find anything on the developer's exchange. The two options I can see are looping over each record and copying it to a struct, or using Query functions to manipulate the recordset itself. I haven't worked with the query functions very much - are there any limitations to either of these approaches? How about performance? Any pointers would be greatly appreciated. Kay. __ Kay Smoljak - ColdFusion Developer - PerthWeb Pty Ltd Level 9/105 St George's Terrace - Perth - Western Australia Ph: (08) 9226 1366 Fax: (08) 9226 1375 www.perthweb.com.au http://developer.perthweb.com.au - Tools for Developers cfx_pwcamtech | cfx_pwimageproc | cfx_pwcardcyrpt __ 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 Server 4.0 & CFFILE/MACIE5 Issues!
I know Macs like the StripCR() function. I got into the habit (after a painful contract with a Mac user) of doing: Trim(StripCR(Form.Field)) for Everything. Seems to work *most of the time but I just know that a match would be cheaper > Like I said, I had heard something similar to that, but I am not absolutely > sure. __ 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
Issue with Verity and MSOffice created document types on CF5/Solaris installation
We have a client who is experiencing a "showstopper" problem in the use of their CF-based websites. I have laid out a detailed explanation below. Any help on this would be greatly appreciated. Steve ___ | Stephen Collins, Technical Consultant - ACIS (www.acis.com.au) | | Macromedia Certified ColdFusion 5 Developer | | Ph +61 2 62822662 Fax +61 2 62824328 Cel +61 410 680722 | |[EMAIL PROTECTED] [EMAIL PROTECTED] | |ICQ UIN : 56321783 Yahoo! : trib | |oOOo~~~| | Are you building your best Body-for-LIFE? | | www.bodyforlife.com | |___| Symptoms 1. Index creates successfully using CF-created template, except for files created using MS-Office applications. Successful file types indexed are: .htm, .cfm, .dbm, .txt, .pdf Unsuccessful file types are: .doc, .xls, .ppt, .pps, .rtf Indexing code is: http://#SpanExcluding(cgi.HTTP_HOST,".")#/" > 2. style.uni file contains correct information for indexing MS-Office mime-types. For example: type: "application/msword" /format-filter = flt_kv /charset= guess /def-charset= 8859 type: "application/wordperfect5.1" /format-filter = flt_kv /charset= guess /def-charset= 8859 type: "application/x-ms-excel" /format-filter = flt_kv /charset= guess /def-charset= 8859 type: "application/x-ms-powerpoint" /format-filter = flt_kv /charset= guess /def-charset= 8859 3. sysinfo.log file indicates all MS-Office type files (including rtf created with MS-Word) are skipped with a Stream error (299). sysinfo.log contains (sample) following error messages for all MS-Office style files: Thu Apr 11 10:09:16 2002 msg(1): WarnE2-0527 (Document Index): Document 26 (/usr/local/web/intranet/administration/social/seminars.xls): Stream error (299) - SKIPPING Thu Apr 11 10:09:16 2002 msg(1): WarnE2-0527 (Document Index): Document 121 (/usr/local/web/intranet/bigpic/agreements/business-arrangements.doc): Stream error (299) - SKIPPING Thu Apr 11 10:09:16 2002 msg(1): WarnE2-0527 (Document Index): Document 122 (/usr/local/web/intranet/bigpic/agreements/dhacmou00-05.doc): Stream error (299) - SKIPPING Thu Apr 11 10:09:16 2002 msg(1): WarnE2-0527 (Document Index): Document 123 (/usr/local/web/intranet/bigpic/agreements/dhacmou99-00.xls): Stream error (299) - SKIPPING 4. The following are pertinent: Previous install (CF Server 4.5.1) on same host successfully indexed documents now failing Running subset indexes on current host gets same unsuccessful results Files are undamaged, useable MS-Office files Resources searched 5. The following resources have been searched unsuccessfully for indications of what the problem may be: Google and Google Groups Macromedia Forums for CFML-General Discussion, Advanced Techniques and Verity CF-Talk archives at www.mail-archive.com (http://www.mail-archive.com/cf-talk@houseoffusion.com/index.html) Platform 1. System is Sun Solaris as follows: Solaris 2.8 OS 512Mb RAM IAS v1.0 (Apache 1.3.9) Web Server CF Server 5 Possible causes 1. Thoughts on possible causes of this problem (wild speculation): Hosting server cannot determine mime-type of files so skips them? __ 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: Security Access
If the second application.cfm has a tag with a new application name, then CF will see a different session structure. It sounds like you're passing all validated users into the admin area, so why not just have the admin login page in the admin section of the site? Jim - Original Message - From: "Mark Leder" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 11:21 PM Subject: Security Access > Building a secure access screen to an admin area on a site. I have a > login screen on a public template which is then passed to a Cfcheck > template. Both of these templates are "controlled" by an > application.cfm template. > In this CFCheck template, if the Username and Password match what's in a > db, the following code is run: > > > >SCOPE="SESSION"> > > > > > > > > But, I want to pass the valid user on to a starting page in the admin > section, which is "controlled" by a different application.cfm. > > In this second application.cfm I have the following code: > > > >URL="#APPLICATION.webroot#/login/default.cfm?access=Denied" > ADDTOKEN="No"> > > > > Thus, the problem, can a Session, which is created in the Cfcheck.cfm > template be passed intact to another page, which is controlled by a > different application.cfm. > > Whenever I run the login sequence, and I know it is successful, the > second application kicks me back out to the login screen (meaning that > its NOT IsDefined). > > What am I doing wrong? > > Thanks, > Mark > > __ 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 Server 4.0 & CFFILE/MACIE5 Issues!
Like I said, I had heard something similar to that, but I am not absolutely sure. "Success is a journey, not a destination!!" Doug Brown - Original Message - From: "Scott Van Vliet" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 9:54 PM Subject: RE: CF Server 4.0 & CFFILE/MACIE5 Issues! > Yes. Is this the problem? THX > > -Original Message- > From: Douglas Brown [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 9:52 PM > To: CF-Talk > Subject: Re: CF Server 4.0 & CFFILE/MACIE5 Issues! > > Do you have a final \ at the end of the upload directory? I had heard > something > similar before regarding MAC, but not sure if this was it. > > > > > > "Success is a journey, not a destination!!" > > > > Doug Brown > - Original Message - > From: "Scott Van Vliet" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Thursday, April 11, 2002 9:33 PM > Subject: CF Server 4.0 & CFFILE/MACIE5 Issues! > > > > Hey All: > > > > I have a form which uploads several files via CFFILE. It works great > on > > all browsers, EXCEPT for Mac IE5. I have had this problem before, and > > fixed it by wrapping the CFFILE within a CFTRY tag. However, CF isn't > > catching the error, and is bombing out. Here is my code: > > > > > > > > > >> FILEFIELD="flash_movie" > > DESTINATION="#upload_dir#" > > NAMECONFLICT="MAKEUNIQUE"> > > > > > > > > > > > > > > > > Please let me know if you see any flaws (my eyes are SURE tired ^_^), > or > > if you know of any issues with CF 4.0 and Mac IE5. > > > > TIA! > > > > > > SCOTT VAN VLIET > > BRD.WRKS INTERACTIVE > > T: 714.469.6805 > > E: [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
Security Access
Building a secure access screen to an admin area on a site. I have a login screen on a public template which is then passed to a Cfcheck template. Both of these templates are "controlled" by an application.cfm template. In this CFCheck template, if the Username and Password match what's in a db, the following code is run: But, I want to pass the valid user on to a starting page in the admin section, which is "controlled" by a different application.cfm. In this second application.cfm I have the following code: Thus, the problem, can a Session, which is created in the Cfcheck.cfm template be passed intact to another page, which is controlled by a different application.cfm. Whenever I run the login sequence, and I know it is successful, the second application kicks me back out to the login screen (meaning that its NOT IsDefined). What am I doing wrong? Thanks, Mark __ 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 Server 4.0 & CFFILE/MACIE5 Issues!
Yes. Is this the problem? THX -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 9:52 PM To: CF-Talk Subject: Re: CF Server 4.0 & CFFILE/MACIE5 Issues! Do you have a final \ at the end of the upload directory? I had heard something similar before regarding MAC, but not sure if this was it. "Success is a journey, not a destination!!" Doug Brown - Original Message - From: "Scott Van Vliet" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 9:33 PM Subject: CF Server 4.0 & CFFILE/MACIE5 Issues! > Hey All: > > I have a form which uploads several files via CFFILE. It works great on > all browsers, EXCEPT for Mac IE5. I have had this problem before, and > fixed it by wrapping the CFFILE within a CFTRY tag. However, CF isn't > catching the error, and is bombing out. Here is my code: > > > > >FILEFIELD="flash_movie" > DESTINATION="#upload_dir#" > NAMECONFLICT="MAKEUNIQUE"> > > > > > > > > Please let me know if you see any flaws (my eyes are SURE tired ^_^), or > if you know of any issues with CF 4.0 and Mac IE5. > > TIA! > > > SCOTT VAN VLIET > BRD.WRKS INTERACTIVE > T: 714.469.6805 > E: [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 Server 4.0 & CFFILE/MACIE5 Issues!
Do you have a final \ at the end of the upload directory? I had heard something similar before regarding MAC, but not sure if this was it. "Success is a journey, not a destination!!" Doug Brown - Original Message - From: "Scott Van Vliet" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 9:33 PM Subject: CF Server 4.0 & CFFILE/MACIE5 Issues! > Hey All: > > I have a form which uploads several files via CFFILE. It works great on > all browsers, EXCEPT for Mac IE5. I have had this problem before, and > fixed it by wrapping the CFFILE within a CFTRY tag. However, CF isn't > catching the error, and is bombing out. Here is my code: > > > > >FILEFIELD="flash_movie" > DESTINATION="#upload_dir#" > NAMECONFLICT="MAKEUNIQUE"> > > > > > > > > Please let me know if you see any flaws (my eyes are SURE tired ^_^), or > if you know of any issues with CF 4.0 and Mac IE5. > > TIA! > > > SCOTT VAN VLIET > BRD.WRKS INTERACTIVE > T: 714.469.6805 > E: [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
CF Server 4.0 & CFFILE/MACIE5 Issues!
Hey All: I have a form which uploads several files via CFFILE. It works great on all browsers, EXCEPT for Mac IE5. I have had this problem before, and fixed it by wrapping the CFFILE within a CFTRY tag. However, CF isn't catching the error, and is bombing out. Here is my code: Please let me know if you see any flaws (my eyes are SURE tired ^_^), or if you know of any issues with CF 4.0 and Mac IE5. TIA! SCOTT VAN VLIET BRD.WRKS INTERACTIVE T: 714.469.6805 E: [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
What does DigExt mean ?
We are logging all our application level errors to a database using the error collection. When I look at the values of the error.browser field, it sometimes shows 'DigExt' in the description. For example : Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) Does anyone know what DigExt means ? I remember reading somewhere about it being related to one of the IE features of making a bookmarked page available offline, where it crawls all linked pages as well. Can anyone confirm this ? Vishal. __ 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: Proxy
Should have RTFM'd - I've worked it out. ** Kevin Parker Web Services Manager WorkCover Corporation [EMAIL PROTECTED] www.workcover.com p: 08 82332548 f: 08 82332000 m: 0418 806 166 ** -Original Message- From: Parker, Kevin [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 12:07 PM To: CF-Talk Subject: Proxy I have an app I am developing on my dev box and it does a CFHTTP to another server outside our firewall. I am getting a message back "Connection failure". Our networking guys tell me that its because the app (the CF Server) is trying to make a direct connection to this other box and not go via our proxy. I can't see how I can tell CF Server to go via the proxy for this. Any clues please? ** Kevin Parker Web Services Manager WorkCover Corporation [EMAIL PROTECTED] www.workcover.com p: 08 82332548 f: 08 82332000 m: 0418 806 166 ** This e-mail is intended for the use of the addressee only. It may contain information that is protected by legislated confidentiality and/or is legally privileged. If you are not the intended recipient you are prohibited from disseminating, distributing or copying this e-mail. Any opinion expressed in this e-mail may not necessarily be that of the WorkCover Corporation of South Australia. Although precautions have been taken, the sender cannot warrant that this e-mail or any files transmitted with it are free of viruses or any other defect. If you have received this e-mail in error, please notify the sender immediately by return e-mail and destroy the original e-mail and any copies. __ 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
Proxy
I have an app I am developing on my dev box and it does a CFHTTP to another server outside our firewall. I am getting a message back "Connection failure". Our networking guys tell me that its because the app (the CF Server) is trying to make a direct connection to this other box and not go via our proxy. I can't see how I can tell CF Server to go via the proxy for this. Any clues please? ** Kevin Parker Web Services Manager WorkCover Corporation [EMAIL PROTECTED] www.workcover.com p: 08 82332548 f: 08 82332000 m: 0418 806 166 ** This e-mail is intended for the use of the addressee only. It may contain information that is protected by legislated confidentiality and/or is legally privileged. If you are not the intended recipient you are prohibited from disseminating, distributing or copying this e-mail. Any opinion expressed in this e-mail may not necessarily be that of the WorkCover Corporation of South Australia. Although precautions have been taken, the sender cannot warrant that this e-mail or any files transmitted with it are free of viruses or any other defect. If you have received this e-mail in error, please notify the sender immediately by return e-mail and destroy the original e-mail and any copies. __ 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: CFINCLUDE tag and relative paths
This is a problem I've encountered too and a real pain. I've just used attribute="#GetDirectoryFromPath(GetCurrentTemplatePath())#\foo.cfm" which is rather unsightly. I'd like to see that UDF! Re your question: I don't think so. Regards, Matthew Walker /* Cabbage Tree Creative Ltd Christchurch - New Zealand http://www.matthewwalker.net.nz/ http://www.cabbagetree.co.nz/ */ -Original Message- From: heirophant mm [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 2:11 p.m. To: CF-Talk Subject: CFINCLUDE tag and relative paths I have a display template, called as a custom tag through CFMODULE. The caller tags pass it an attribute called "navigation", which is the path of a navigation template to display. The custom tag displays it using . I want the caller to be able to pass a path relative from itself (for ease of use) - so the value you pass for the "navigation" attribute would be the same as the value that a CFINCLUDE right inside the caller template would use. However, since the display template is in a different folder, just doing does not work, since it expects the path to be relative from the current template, NOT the caller template. I wrote some UDFs that convert the value of attributes.navation so the path is instead relative to the display template, allowing the CFINCLUDE tag to work correctly. This solution is not very elegant, though. Nor is it efficient. Am I missing an easier way to do this? To summarize, I want a CFINCLUDE tag to correctly find a path that is relative to the caller template, instead of the current [custom tag] template. Note: For reasons unknown to me, we aren't allowed to use the Custom Tags folder on our server. So this display template I'm talking about is actually below the wwwroot folder. I don't know if that makes any difference in my problem. This brings me to my second question: Do custom tags actually in the Custom Tags folder behave differently concerning tags such as CFINCLUDE? In this case, would the CFINCLUDE tag look for a template relative to the caller template instead? --- Mike Mertsock Web Applications Programmer Alfred University [EMAIL PROTECTED] See Dave Matthews Band live or win a signed guitar http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_02 0201/splash.asp FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Weird client var error
If the CDATA table has a key, it must be a composite key on both CFID and APP. Make sure the unique index is on both columns. Chuck McElwee etech solutions inc www.etechsolutions.com -Original Message- From: Ian Lurie [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 9:54 PM To: CF-Talk Subject: Weird client var error Hi all, I'm getting a weird error on a site. The template in question doesn't do an insert, yet the error below says there's an integrity constraint violation. Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt), ODBC Error Code = 23000 (Integrity constraint violation) [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert duplicate key row in object 'CDATA' with unique index 'id1'. Date/Time: 04/11/02 17:58:10 Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) Remote Address: 65.24.161.67 I can only assume that this is a client variable storage error, given that CDATA is the object. Has anyone ever seen this problem with SQL2000 and client vars before? Thanks, Ian __ 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
CFINCLUDE tag and relative paths
I have a display template, called as a custom tag through CFMODULE. The caller tags pass it an attribute called "navigation", which is the path of a navigation template to display. The custom tag displays it using . I want the caller to be able to pass a path relative from itself (for ease of use) - so the value you pass for the "navigation" attribute would be the same as the value that a CFINCLUDE right inside the caller template would use. However, since the display template is in a different folder, just doing does not work, since it expects the path to be relative from the current template, NOT the caller template. I wrote some UDFs that convert the value of attributes.navation so the path is instead relative to the display template, allowing the CFINCLUDE tag to work correctly. This solution is not very elegant, though. Nor is it efficient. Am I missing an easier way to do this? To summarize, I want a CFINCLUDE tag to correctly find a path that is relative to the caller template, instead of the current [custom tag] template. Note: For reasons unknown to me, we aren't allowed to use the Custom Tags folder on our server. So this display template I'm talking about is actually below the wwwroot folder. I don't know if that makes any difference in my problem. This brings me to my second question: Do custom tags actually in the Custom Tags folder behave differently concerning tags such as CFINCLUDE? In this case, would the CFINCLUDE tag look for a template relative to the caller template instead? --- Mike Mertsock Web Applications Programmer Alfred University [EMAIL PROTECTED] See Dave Matthews Band live or win a signed guitar http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp 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: Timestamp as lastupdate
Let's be more specific: Column type of datetime. Insert/update to value of getDate(). Chuck McElwee etech solutions inc www.etechsolutions.com -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 9:22 PM To: CF-Talk Subject: RE: Timestamp as lastupdate Timestamp doesn't store a date. C.f. http://www.sqlteam.com/item.asp?ItemID=1410Regards, -Original Message- From: Office [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:52 a.m. To: CF-Talk Subject: Timestamp as lastupdate I used the "timestamp" field type in a MS SQL7.0 table as "lastupdate" I want to output this on a .cfm webpage as "last update" This is what I got. - 00038FB3 - What am I doing wrong here. I sort of hoped it would be something like 2002/04/11 that could be formated. Thanks for any advice Mike Peters NZERN Mail: PO Box 9000, Christchurch (03) 338-5451 E-mail: [EMAIL PROTECTED] http://www.bush.org.nz __ 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: Timestamp as lastupdate
Use getDate() Chuck McElwee etech solutions inc www.etechsolutions.com -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 9:22 PM To: CF-Talk Subject: RE: Timestamp as lastupdate Timestamp doesn't store a date. C.f. http://www.sqlteam.com/item.asp?ItemID=1410Regards, -Original Message- From: Office [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:52 a.m. To: CF-Talk Subject: Timestamp as lastupdate I used the "timestamp" field type in a MS SQL7.0 table as "lastupdate" I want to output this on a .cfm webpage as "last update" This is what I got. - 00038FB3 - What am I doing wrong here. I sort of hoped it would be something like 2002/04/11 that could be formated. Thanks for any advice Mike Peters NZERN Mail: PO Box 9000, Christchurch (03) 338-5451 E-mail: [EMAIL PROTECTED] http://www.bush.org.nz __ 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
Weird client var error
Hi all, I'm getting a weird error on a site. The template in question doesn't do an insert, yet the error below says there's an integrity constraint violation. Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt), ODBC Error Code = 23000 (Integrity constraint violation) [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert duplicate key row in object 'CDATA' with unique index 'id1'. Date/Time: 04/11/02 17:58:10 Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) Remote Address: 65.24.161.67 I can only assume that this is a client variable storage error, given that CDATA is the object. Has anyone ever seen this problem with SQL2000 and client vars before? Thanks, Ian __ 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[2]: Odd can't log in behavior
shawn -- i never saw those extra values in the cache-control tag before. thanks for da tip. there's always ONE client who gets the cached-login problem regardless of tag-based fixes, so we still use javascript where we can to solve this kind of issue for lots of forms including login. brendan avery 2.0 - [EMAIL PROTECTED] - 310.779.2211 412 rose ave, suite c - venice beach, california 90291 ..providing word solutions to your mother, since 1975 on Thursday, April 11, 2002, 4:43:29 PM, you wrote: SG> If it's a caching issue, then why not just turn off the caching? SG> These lines of code will do it: SG> SG> SG> #timeformat(now(), "HH:mm:ss")# GMT"> SG> They will prevent caching (in most cases) at the client browser, and at any SG> intervening proxies. SG> HTH SG> Shawn Grover SG> -Original Message- SG> From: Brendan Avery [mailto:[EMAIL PROTECTED]] SG> Sent: Thursday, April 11, 2002 5:17 PM SG> To: CF-Talk SG> Subject: Re: Odd can't log in behavior SG> hey Janine, SG> i didn't see if anyone responded to your question, but in case they SG> didn't, my guess is it's a browser cache issue; for all our sites that SG> use forms which post commonly repeated information (like login SG> and lookup forms) we use javascript to generate an additional value SG> (usually in a hidden form field) when the form is submit, (usually SG> just a random number or a timestamp) to ensure that the SG> browser is always requesting a new page -- because browsers will SG> sometimes not actually even re-post information if it matches a cached SG> result. if you can't use javascript for whatever reason, i would SG> suggest that you don't do cflocations for login errors, because that SG> process is often the culprit in these kinds of affairs. hope that SG> helps you! SG> brendan avery 2.0 - [EMAIL PROTECTED] - 310.779.2211 SG> 412 rose ave, suite c - venice beach, california 90291 SG> .providing word solutions to your mother, since 1975 SG> on Monday, April 8, 2002, 8:24:23 AM, you wrote: JJ>> I have a login page- first it checks the user/password. If there is no SG> match JJ>> it sends the user back to the login page with a message... JJ>> If there is a match it checks what group the user is in and what quarter JJ>> they should have access to. (Current quarter or past quarters). It is SG> only JJ>> on occassion that a user needs access to a past quarter so by default SG> they JJ>> are set to current quarter. JJ>> If a user is in current quarter all is fine. JJ>> I'm having a situation where when a user is given access to a past SG> quarter JJ>> they can't log in at all- they get kicked back to the login page with a JJ>> message! But the oddest part is that it works fine from any of my test JJ>> machines (I have 3 that I use)- I can log in as this user and see her SG> info. JJ>> However, she can't and we know it isn't a matter of mistyping the SG> password. JJ>> I set her back to current quarter access- still no luck she can't get SG> in. JJ>> We finally changed her password and she finally got back in. Here's my SG> cfif JJ>> statement to set the path...I don't know if that's the problem or where SG> else JJ>> to look! JJ>> Thanks in advance JJ>> > GroupCheck.OpenQuarter EQ "0")> JJ>> JJ>> > (GroupCheck.OpenQuarter EQ "2") Or (GroupCheck.OpenQuarter EQ "3")) >>> JJ>> JJ>> SG> __ 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
sql stored procs-need help
Hello, I am trying to create a stored procedure in SQL that will build a trigger only so far I have been completely unsuccessful due in part to my inexperience in the matter. I was hoping that anyone who has some experience in this matter might be able to help. Here is what I have been trying. Procedure TRIG_DTA (Trigtablename IN varchar, Tablename IN varchar, Seqtablename IN varchar) AS BEGIN CREATE OR REPLACE TRIGGER Trigtablename before insert on Tablename for each row begin select Seqtablename.nextval into :new.FLDUNIQUE_ID from dual end; END; Can anyone lend me some guidance on the matter? Bryan Langford Web Info Specialist National Customer Operations Enterprise Services & Strategic Planning Training Development and Design Team. Desk: 714-695-4824 Cell: 714-270-8451 __ 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: Timestamp as lastupdate
Timestamp doesn't store a date. C.f. http://www.sqlteam.com/item.asp?ItemID=1410Regards, -Original Message- From: Office [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 April 2002 11:52 a.m. To: CF-Talk Subject: Timestamp as lastupdate I used the "timestamp" field type in a MS SQL7.0 table as "lastupdate" I want to output this on a .cfm webpage as "last update" This is what I got. - 00038FB3 - What am I doing wrong here. I sort of hoped it would be something like 2002/04/11 that could be formated. Thanks for any advice Mike Peters NZERN Mail: PO Box 9000, Christchurch (03) 338-5451 E-mail: [EMAIL PROTECTED] http://www.bush.org.nz __ 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
Help
Can anyone assist, I have a headache from this puppy! Prorating a purchase: X=Cost 2500 for a year OR 2500/12 * DifferenceInMonthsFromEXPMonthandCurrentMonth Exp date is 08/31/02 If i make a purchase today I should be charged the difference in months times {X} Thanks BtC __ 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: META refresh truly not working ! ?
URL= is missing a double quote below... +---+ 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: Ed Gordon [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 5:08 PM To: CF-Talk Subject: META refresh truly not working ! ? Have you ever had a META refresh that's supposed to load another page that JUST WOULDN'T GO? The reference says this should work. Can you see anything wrong here? It just does not load the page. I've used it before in CF and it worked...? ! ? ! ? Leads Management http://215.34.12.77/prod/gomodule.cfm";> It just sits there ! Help ! Thanks In Advance Ed Gordon PTC International __ 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
META refresh truly not working ! ?
Have you ever had a META refresh that's supposed to load another page that JUST WOULDN'T GO? The reference says this should work. Can you see anything wrong here? It just does not load the page. I've used it before in CF and it worked...? ! ? ! ? Leads Management http://215.34.12.77/prod/gomodule.cfm";> It just sits there ! Help ! Thanks In Advance Ed Gordon PTC International __ 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: Help !! IIS 4.0
Just for the record. It's fixed unloaded everything with IIS and the hot fix, reloaded the service pack then IIS 4 the hot fix. - Original Message - From: "David Green" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 2:04 PM Subject: Help !! IIS 4.0 > Hello list > > We had a server running CF5 and IIS 3. Loaded Q319733i Hot fix. Hot fixed crashed IIS 3 grr, Could not get IIS to restall was getting errors, I unloaded IIS 3 tried again failed again. Moved to IIS4 installed fine have it seeing a couple of webs domains. My problem now is I cant get it to see any web pages in sub directories of the virtual domains web sites root. The only way I have gotten any pages to work is by making the sub directory a virtual directory in IIS. I have lots of sub directories g. I have not even gotten to deal with CF yet. Man this sucks, all this loading security patch. > I'm not an expert I just do this stuff in addition to my normal job. > > Any Idea's or things am setting up wrong ? > > Thanks > David Green > > > > __ 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
Timestamp as lastupdate
I used the "timestamp" field type in a MS SQL7.0 table as "lastupdate" I want to output this on a .cfm webpage as "last update" This is what I got. - 00038FB3 - What am I doing wrong here. I sort of hoped it would be something like 2002/04/11 that could be formated. Thanks for any advice Mike Peters NZERN Mail: PO Box 9000, Christchurch (03) 338-5451 E-mail: [EMAIL PROTECTED] http://www.bush.org.nz __ 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: Getdate() Date only no time.
What you want to do is trim off the time... Try this: Cast(floor(cast(getdate() as float)) as smalldatetime) That'll trim the time off... -Original Message- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:42 PM To: CF-Talk Subject: Getdate() Date only no time. Could someone show me a replacement or another way to use GetDate in a query in a stored procedure, so that getdate() would only return the month/day/year. I know I could do datepart but how would that be in something like Insert Into Table (MyDate) Values(getdate()) Thanks, Neil __ 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: Client Variable Scrabble
Never mind. Still would have to turn off caching at the proxy server - at least for that domain. - Original Message - From: "David Schmidt" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 4:45 PM Subject: Re: Client Variable Scrabble > Ah, that would do it! I'm gonna have to file this one away for the memory banks. >Great post. I think in that case, you would > NOT want to pass around cfid/cftoken in the url, right? > > Dave > > > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Thursday, April 11, 2002 3:42 PM > Subject: RE: Client Variable Scrabble > > > > Last time we had this problem it was a proxy server caching the web pages, > > which resulted in "session hi-jacking". > > > > CC > > > > > > > > David Schmidt > > <[EMAIL PROTECTED]> > > @portentinteracc: > > ctive.com>Subject: RE: Client Variable Scrabble > > > > 04/11/02 05:29 > > PM > > Please respond > > to cf-talk > > > > > > > > > > > > > > That would be very curious if that worked. As I recall, the client > > variable > > database doesn't have a field for recording the ipaddress. I'd suspect > > that > > cookies are not being set properly, or that they don't match the token > > being > > passed around in the url/forms. > > > > I forget, are you running clustered / balanced db servers, or cf servers? > > I > > know this is a dumb question, but your not trying to balance client > > variables across datasources, right? Multiple cf servers pointing at a > > single client variable storage works, but I have no idea how one could > > possibly use multiple db servers for client variables. Again, probably a > > really dumb question. > > > > Dave > > > > > > > > > -Original Message- > > > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, April 11, 2002 2:54 PM > > > To: CF-Talk > > > Subject: RE: Client Variable Scrabble > > > > > > > > > Kevin Schmidt sent me a direct note that made a light go off for > > > me -- proxy > > > server -- all of the users are going through a proxy server with > > > a single IP > > > address, so we're looking into that as solution right now (switching the > > > users to static IP addresses) > > > > > > H. > > > > > > > > > > -Original Message- > > > > From: David Schmidt [SMTP:[EMAIL PROTECTED]] > > > > Sent: Thursday, April 11, 2002 2:47 PM > > > > To: CF-Talk > > > > Subject: RE: Client Variable Scrabble > > > > > > > > Ok, give us your cfapplication tag (change application name dsn names > > if > > > > you > > > > wish). Take it from the top. > > > > > > > > Dave > > > > > > > > > -Original Message- > > > > > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > > > > > Sent: Thursday, April 11, 2002 2:25 PM > > > > > To: CF-Talk > > > > > Subject: RE: Client Variable Scrabble > > > > > > > > > > > > > > > All of the great suggestions from yesterday ... check the storage, > > > > > setdomaincookies, etc. etc. ... we ran through all of them today. > > > > > Everything checked out. > > > > > > > > > > We've still got a problem > > > > > > > > > > If users are logged on at the same time, working in tandem, the > > client > > > > > variables get jumbled -- one user gets another user's > > > variables showing > > > > up > > > > > on their stuff. > > > > > > > > > > I'm baffled, frustrated and out of ideas. > > > > > > > > > > Any suggestions? > > > > > > > > > > H. > > > > > > > > > > > > > > > > > > > > > > __ 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: Odd can't log in behavior
If it's a caching issue, then why not just turn off the caching? These lines of code will do it: They will prevent caching (in most cases) at the client browser, and at any intervening proxies. HTH Shawn Grover -Original Message- From: Brendan Avery [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 5:17 PM To: CF-Talk Subject: Re: Odd can't log in behavior hey Janine, i didn't see if anyone responded to your question, but in case they didn't, my guess is it's a browser cache issue; for all our sites that use forms which post commonly repeated information (like login and lookup forms) we use javascript to generate an additional value (usually in a hidden form field) when the form is submit, (usually just a random number or a timestamp) to ensure that the browser is always requesting a new page -- because browsers will sometimes not actually even re-post information if it matches a cached result. if you can't use javascript for whatever reason, i would suggest that you don't do cflocations for login errors, because that process is often the culprit in these kinds of affairs. hope that helps you! brendan avery 2.0 - [EMAIL PROTECTED] - 310.779.2211 412 rose ave, suite c - venice beach, california 90291 .providing word solutions to your mother, since 1975 on Monday, April 8, 2002, 8:24:23 AM, you wrote: JJ> I have a login page- first it checks the user/password. If there is no match JJ> it sends the user back to the login page with a message... JJ> If there is a match it checks what group the user is in and what quarter JJ> they should have access to. (Current quarter or past quarters). It is only JJ> on occassion that a user needs access to a past quarter so by default they JJ> are set to current quarter. JJ> If a user is in current quarter all is fine. JJ> I'm having a situation where when a user is given access to a past quarter JJ> they can't log in at all- they get kicked back to the login page with a JJ> message! But the oddest part is that it works fine from any of my test JJ> machines (I have 3 that I use)- I can log in as this user and see her info. JJ> However, she can't and we know it isn't a matter of mistyping the password. JJ> I set her back to current quarter access- still no luck she can't get in. JJ> We finally changed her password and she finally got back in. Here's my cfif JJ> statement to set the path...I don't know if that's the problem or where else JJ> to look! JJ> Thanks in advance JJ> GroupCheck.OpenQuarter EQ "0")> JJ> JJ> (GroupCheck.OpenQuarter EQ "2") Or (GroupCheck.OpenQuarter EQ "3")) >> JJ> JJ> __ 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
Getdate() Date only no time.
Could someone show me a replacement or another way to use GetDate in a query in a stored procedure, so that getdate() would only return the month/day/year. I know I could do datepart but how would that be in something like Insert Into Table (MyDate) Values(getdate()) Thanks, Neil __ 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: Client Variable Scrabble
Ah, that would do it! I'm gonna have to file this one away for the memory banks. Great post. I think in that case, you would NOT want to pass around cfid/cftoken in the url, right? Dave - Original Message - From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 3:42 PM Subject: RE: Client Variable Scrabble > Last time we had this problem it was a proxy server caching the web pages, > which resulted in "session hi-jacking". > > CC > > > > David Schmidt > > @portentinteracc: > ctive.com>Subject: RE: Client Variable Scrabble > > 04/11/02 05:29 > PM > Please respond > to cf-talk > > > > > > > That would be very curious if that worked. As I recall, the client > variable > database doesn't have a field for recording the ipaddress. I'd suspect > that > cookies are not being set properly, or that they don't match the token > being > passed around in the url/forms. > > I forget, are you running clustered / balanced db servers, or cf servers? > I > know this is a dumb question, but your not trying to balance client > variables across datasources, right? Multiple cf servers pointing at a > single client variable storage works, but I have no idea how one could > possibly use multiple db servers for client variables. Again, probably a > really dumb question. > > Dave > > > > > -Original Message- > > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, April 11, 2002 2:54 PM > > To: CF-Talk > > Subject: RE: Client Variable Scrabble > > > > > > Kevin Schmidt sent me a direct note that made a light go off for > > me -- proxy > > server -- all of the users are going through a proxy server with > > a single IP > > address, so we're looking into that as solution right now (switching the > > users to static IP addresses) > > > > H. > > > > > > > -Original Message- > > > From: David Schmidt [SMTP:[EMAIL PROTECTED]] > > > Sent: Thursday, April 11, 2002 2:47 PM > > > To: CF-Talk > > > Subject: RE: Client Variable Scrabble > > > > > > Ok, give us your cfapplication tag (change application name dsn names > if > > > you > > > wish). Take it from the top. > > > > > > Dave > > > > > > > -Original Message- > > > > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > > > > Sent: Thursday, April 11, 2002 2:25 PM > > > > To: CF-Talk > > > > Subject: RE: Client Variable Scrabble > > > > > > > > > > > > All of the great suggestions from yesterday ... check the storage, > > > > setdomaincookies, etc. etc. ... we ran through all of them today. > > > > Everything checked out. > > > > > > > > We've still got a problem > > > > > > > > If users are logged on at the same time, working in tandem, the > client > > > > variables get jumbled -- one user gets another user's > > variables showing > > > up > > > > on their stuff. > > > > > > > > I'm baffled, frustrated and out of ideas. > > > > > > > > Any suggestions? > > > > > > > > H. > > > > > > > > > > > > > > > __ 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: Odd can't log in behavior
hey Janine, i didn't see if anyone responded to your question, but in case they didn't, my guess is it's a browser cache issue; for all our sites that use forms which post commonly repeated information (like login and lookup forms) we use javascript to generate an additional value (usually in a hidden form field) when the form is submit, (usually just a random number or a timestamp) to ensure that the browser is always requesting a new page -- because browsers will sometimes not actually even re-post information if it matches a cached result. if you can't use javascript for whatever reason, i would suggest that you don't do cflocations for login errors, because that process is often the culprit in these kinds of affairs. hope that helps you! brendan avery 2.0 - [EMAIL PROTECTED] - 310.779.2211 412 rose ave, suite c - venice beach, california 90291 ..providing word solutions to your mother, since 1975 on Monday, April 8, 2002, 8:24:23 AM, you wrote: JJ> I have a login page- first it checks the user/password. If there is no match JJ> it sends the user back to the login page with a message... JJ> If there is a match it checks what group the user is in and what quarter JJ> they should have access to. (Current quarter or past quarters). It is only JJ> on occassion that a user needs access to a past quarter so by default they JJ> are set to current quarter. JJ> If a user is in current quarter all is fine. JJ> I'm having a situation where when a user is given access to a past quarter JJ> they can't log in at all- they get kicked back to the login page with a JJ> message! But the oddest part is that it works fine from any of my test JJ> machines (I have 3 that I use)- I can log in as this user and see her info. JJ> However, she can't and we know it isn't a matter of mistyping the password. JJ> I set her back to current quarter access- still no luck she can't get in. JJ> We finally changed her password and she finally got back in. Here's my cfif JJ> statement to set the path...I don't know if that's the problem or where else JJ> to look! JJ> Thanks in advance JJ> GroupCheck.OpenQuarter EQ "0")> JJ> JJ> (GroupCheck.OpenQuarter EQ "2") Or (GroupCheck.OpenQuarter EQ "3")) >> JJ> JJ> __ 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: Client Variable Scrabble
Last time we had this problem it was a proxy server caching the web pages, which resulted in "session hi-jacking". CC David Schmidt @portentinteracc: ctive.com>Subject: RE: Client Variable Scrabble 04/11/02 05:29 PM Please respond to cf-talk That would be very curious if that worked. As I recall, the client variable database doesn't have a field for recording the ipaddress. I'd suspect that cookies are not being set properly, or that they don't match the token being passed around in the url/forms. I forget, are you running clustered / balanced db servers, or cf servers? I know this is a dumb question, but your not trying to balance client variables across datasources, right? Multiple cf servers pointing at a single client variable storage works, but I have no idea how one could possibly use multiple db servers for client variables. Again, probably a really dumb question. Dave > -Original Message- > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 2:54 PM > To: CF-Talk > Subject: RE: Client Variable Scrabble > > > Kevin Schmidt sent me a direct note that made a light go off for > me -- proxy > server -- all of the users are going through a proxy server with > a single IP > address, so we're looking into that as solution right now (switching the > users to static IP addresses) > > H. > > > > -Original Message- > > From: David Schmidt [SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, April 11, 2002 2:47 PM > > To: CF-Talk > > Subject: RE: Client Variable Scrabble > > > > Ok, give us your cfapplication tag (change application name dsn names if > > you > > wish). Take it from the top. > > > > Dave > > > > > -Original Message- > > > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, April 11, 2002 2:25 PM > > > To: CF-Talk > > > Subject: RE: Client Variable Scrabble > > > > > > > > > All of the great suggestions from yesterday ... check the storage, > > > setdomaincookies, etc. etc. ... we ran through all of them today. > > > Everything checked out. > > > > > > We've still got a problem > > > > > > If users are logged on at the same time, working in tandem, the client > > > variables get jumbled -- one user gets another user's > variables showing > > up > > > on their stuff. > > > > > > I'm baffled, frustrated and out of ideas. > > > > > > Any suggestions? > > > > > > H. > > > > > > > > > __ 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: Client Variable Scrabble
That would be very curious if that worked. As I recall, the client variable database doesn't have a field for recording the ipaddress. I'd suspect that cookies are not being set properly, or that they don't match the token being passed around in the url/forms. I forget, are you running clustered / balanced db servers, or cf servers? I know this is a dumb question, but your not trying to balance client variables across datasources, right? Multiple cf servers pointing at a single client variable storage works, but I have no idea how one could possibly use multiple db servers for client variables. Again, probably a really dumb question. Dave > -Original Message- > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 2:54 PM > To: CF-Talk > Subject: RE: Client Variable Scrabble > > > Kevin Schmidt sent me a direct note that made a light go off for > me -- proxy > server -- all of the users are going through a proxy server with > a single IP > address, so we're looking into that as solution right now (switching the > users to static IP addresses) > > H. > > > > -Original Message- > > From: David Schmidt [SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, April 11, 2002 2:47 PM > > To: CF-Talk > > Subject:RE: Client Variable Scrabble > > > > Ok, give us your cfapplication tag (change application name dsn names if > > you > > wish). Take it from the top. > > > > Dave > > > > > -Original Message- > > > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, April 11, 2002 2:25 PM > > > To: CF-Talk > > > Subject: RE: Client Variable Scrabble > > > > > > > > > All of the great suggestions from yesterday ... check the storage, > > > setdomaincookies, etc. etc. ... we ran through all of them today. > > > Everything checked out. > > > > > > We've still got a problem > > > > > > If users are logged on at the same time, working in tandem, the client > > > variables get jumbled -- one user gets another user's > variables showing > > up > > > on their stuff. > > > > > > I'm baffled, frustrated and out of ideas. > > > > > > Any suggestions? > > > > > > H. > > > > > > > > > __ 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: Client Variable Scrabble
Kevin Schmidt sent me a direct note that made a light go off for me -- proxy server -- all of the users are going through a proxy server with a single IP address, so we're looking into that as solution right now (switching the users to static IP addresses) H. > -Original Message- > From: David Schmidt [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 2:47 PM > To: CF-Talk > Subject: RE: Client Variable Scrabble > > Ok, give us your cfapplication tag (change application name dsn names if > you > wish). Take it from the top. > > Dave > > > -Original Message- > > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, April 11, 2002 2:25 PM > > To: CF-Talk > > Subject: RE: Client Variable Scrabble > > > > > > All of the great suggestions from yesterday ... check the storage, > > setdomaincookies, etc. etc. ... we ran through all of them today. > > Everything checked out. > > > > We've still got a problem > > > > If users are logged on at the same time, working in tandem, the client > > variables get jumbled -- one user gets another user's variables showing > up > > on their stuff. > > > > I'm baffled, frustrated and out of ideas. > > > > Any suggestions? > > > > H. > > > > > __ 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: Pausing using CF
> Forcing a CFLOCK deadlock does not seem to spike the CPU... > I use that once in a while although you may want to check > with Dave Watts or someone a little more familiar with CF's > internals... > > > > > > > > I don't remember any screams of horror when I picked that > idea up from this list way back when :-) I think Rick Osborne was the first one who posted that technique, and if it's good enough for Rick, it's good enough for me! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ 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: Client Variable Scrabble
Ok, give us your cfapplication tag (change application name dsn names if you wish). Take it from the top. Dave > -Original Message- > From: Owens, Howard [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 2:25 PM > To: CF-Talk > Subject: RE: Client Variable Scrabble > > > All of the great suggestions from yesterday ... check the storage, > setdomaincookies, etc. etc. ... we ran through all of them today. > Everything checked out. > > We've still got a problem > > If users are logged on at the same time, working in tandem, the client > variables get jumbled -- one user gets another user's variables showing up > on their stuff. > > I'm baffled, frustrated and out of ideas. > > Any suggestions? > > H. > > __ 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: Client Variable Scrabble
All of the great suggestions from yesterday ... check the storage, setdomaincookies, etc. etc. ... we ran through all of them today. Everything checked out. We've still got a problem If users are logged on at the same time, working in tandem, the client variables get jumbled -- one user gets another user's variables showing up on their stuff. I'm baffled, frustrated and out of ideas. Any suggestions? H. __ 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: Pausing using CF
Michael Tangorre asked: > Can anyone think of a way that I can achieve a pause for like 30 > seconds to a minute between iterations in a loop? This question gets asked quite a bit, so I figured I'd forward my alternative. Elapsed: #Elapsed#ms It's nicer points are: 1. It doesn't require anything external to be installed (CFX tags, Java, etc). (It does, however, require that you have session management enabled. If you don't have session management enabled, then the code doesn't sleep.) 2. No spiking the processor. The drawbacks are: 1. It will hold up all locks in the *Session*, so don't use it if you expect the user to be doing other things while the thread sleeps. 2. Since it uses Session-scoped locking you'll need CF 4.5. If what it is doing is non-obvious, here's a quick explanation: - The first CFLOCK statement creates a Session lock. - The second CFLOCK tries to get a lock, but it can't because there is already a lock. (CF doesn't seem to care that the thread owns the lock it is waiting on.) Classic deadlock. - It sleeps (actually a WaitForSingleObject() call, I assume, which is basically the same thing) until the TIMEOUT has been reached, at which point it throws an error. - The surrounding CFTRY/CFCATCH statement traps the error, ignores it, and the thread continues on. This leads to drawback 3: 3. If MacroAllaire ever gets around to making the locking mechanism smart enough to realize that a thread already has a lock and just throw it out, this trick will cease to work. In case you are wondering if this would work with Named locks (and therefore 4.0 and not tie up Session locks), I don't have a definitive answer for you. I messed around with it a bit, but couldn't get it to work consistantly. However, since normally if you want a Session thread to sleep you don't tend to mind if the Session locks, I haven't bothered to do much testing. HTH, -R __ 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: Pausing using CF
Forcing a CFLOCK deadlock does not seem to spike the CPU... I use that once in a while although you may want to check with Dave Watts or someone a little more familiar with CF's internals... I don't remember any screams of horror when I picked that idea up from this list way back when :-) __ 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: Cookies
The problem that i have is that there are 2 pairs CFIDs and CFTOKENs. And we are trying to delete those two and let CFserver to create a new pair. I have tried many ways to delete those 2 pairs (same name) and nothing is working ___ Get the FREE email that has everyone talking at http://www.mail2world.com <-Original Message-> > > From: [EMAIL PROTECTED] > Sent: 4/11/2002 3:52:18 PM > To: [EMAIL PROTECTED] > Subject: RE: Cookies > > i was able to assign and delete all the cookies using the following code.Notice the use of the cfloop > over a collection so you are sure that allcookie the site might have assigned are expired (deleted). > Remember that thecookies don't actually get "deleted" from the user hardrive until after thepage is > executed. So if you notice that the first time you executeindex2.cfm you will not get an error about > the cookies not being there. ifyou refresh the page though, you will get the error. the first time > the pageexecutes the second set of outputing the cookie values return empty > strings.index.cfm=nextindex2.cfm==#cookie.test# > #cookie.test1# > #cookie.test2# > #cookie.test# > #cookie.test1# > #cookie.test2# > Anthony [EMAIL PROTECTED]http://www.sheriff org-Original > Message-From: Douglas Brown [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 11, 2002 12:04 > PMTo: CF-TalkSubject: Re: CookiesI imagine you used something like the code below to expire the > cookies. Theonlything I can think of is that it is expiring one of the cookies and leavingtheother > intact. then they login again and it sets another to their browser.Maybelooping through somehow to > check #count# I am still here > #count# I am now gone > "Success is a journey, not a destination!!"Doug Brown- Original Message -From: "J L" To: > "CF-Talk" Sent: Thursday, April 11, 2002 8:17 AMSubject: Cookies> hi all,>> What is the best way to > delete all the cookies in clients' browsers?> Somehow many of our clients' browsers have a pair of > cookies which are> exactly the same (Same name and same value). And I have tried expiring> two times > of that cookie and it does not work.>> Thanks,> J> > ___> Get the FREE email that has everyone > talking at> http://www.mail2world.com>> > __ 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
Help !! IIS 4.0
Hello list We had a server running CF5 and IIS 3. Loaded Q319733i Hot fix. Hot fixed crashed IIS 3 grr, Could not get IIS to restall was getting errors, I unloaded IIS 3 tried again failed again. Moved to IIS4 installed fine have it seeing a couple of webs domains. My problem now is I cant get it to see any web pages in sub directories of the virtual domains web sites root. The only way I have gotten any pages to work is by making the sub directory a virtual directory in IIS. I have lots of sub directories g. I have not even gotten to deal with CF yet. Man this sucks, all this loading security patch. I'm not an expert I just do this stuff in addition to my normal job. Any Idea's or things am setting up wrong ? Thanks David Green __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: SQL Server 2000 and @@Identity
> > > also why aren't you declare lastid and making your statement > > > > > > SELECT @lastid = @@identity > > > > If he did that, he wouldn't get lastid back as a query column. > > I usually use > > SET NOCOUNT ON > INSERT INTO people (password, username) > VALUES ('something', 'testuser123456') > SELECT @@identity AS lastID > > works in SQL 2000 for me... Uh, yes, that's analogous to using SELECT lastid = @@IDENTITY The issue was that Tony had suggested storing the identity value in an SQL variable, rather than returning it as a query column. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ 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: Pausing using CF
I ran the code and got the following error. So, I guess the answer is yes. - The JVM library path is empty. To use Java objects or Java CFXs, you need to install (if not already installed) the JDK or JRE and specify the path of the JVM in the ColdFusion Administrator. Please read the release notes regarding the version of the software that is needed. - -Brad > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 4:51 PM > To: CF-Talk > Subject: RE: Pausing using CF > > > kewl. question. do you need a java SDK on the server. never did anything > with Java and CF. > > Anthony Petruzzi > Webmaster > 954-321-4703 > [EMAIL PROTECTED] > http://www.sheriff.org > > > -Original Message- > From: Brad Roberts [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 4:47 PM > To: CF-Talk > Subject: RE: Pausing using CF > > > > function sleep(timeMillis) { > var thread = createObject("java", "java.lang.Thread"); > thread.sleep(timeMillis); > } > > > This was from Robert Everland III a few posts back: (Multiple CFMail > Problem). I included the original post below. > -- > > > The only problem with that is that for as long as you want cf to sleep it > will loop and loop and loop and loop and loop and loop. It would be like > telling a taxi driver to drive for 5 minutes while you get your > bags instead > of telling him to shut off the car to conserve gas. Here is a UDF I found > that uses a java com object to sleep. Works beautifully. > > > function sleep(timeMillis) { > var thread = createObject("java", "java.lang.Thread"); > thread.sleep(timeMillis); > } > > > > Robert Everland III > Dixon Ticonderoga > Web Developer Extraordinaire > > > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, April 11, 2002 4:29 PM > > To: CF-Talk > > Subject: RE: Pausing using CF > > > > > > make you wish CF had a noop tag. ;) > > > > Anthony Petruzzi > > Webmaster > > 954-321-4703 > > [EMAIL PROTECTED] > > http://www.sheriff.org > > > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, April 11, 2002 4:30 PM > > To: CF-Talk > > Subject: RE: Pausing using CF > > > > > > That's a good way to peak out your processor at 100%. If you do this a > > lot, it's gonna kill your performance. > > > > I'd imagine a better way to do it would be to invoke the native "sleep" > > function in the win32 api - there's a cfx_sleep (freeware on tag > > exchange); I'm not sure if it does this. > > > > --- > > Billy Cravens > > > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, April 09, 2002 8:02 AM > > To: CF-Talk > > Subject: RE: Pausing using CF > > > > > > /** > > * Pauses the processing for CF for a specified amount of time > > * > > * @param seconds number of seconds you would like to pause CF for > > * @author Tony Petruzzi ([EMAIL PROTECTED] > > * @version 1, April, 09 2002 > > */ > > function PauseCF(seconds){ > > var currenttime = now(); > > while(DateDiff("s", currenttime, now()) LTE seconds){ > > continue; > > } > > } > > > > > > > > Here is a function a wrote to do this. All you have to do to use it is > > assign the function to a variable. > > > > > > > > Have fun! > > > > Anthony Petruzzi > > Webmaster > > 954-321-4703 > > http://www.sheriff.org > > > > > > -Original Message- > > From: Michael Tangorre [mailto:[EMAIL PROTECTED]] > > Sent: Monday, April 08, 2002 7:53 PM > > To: CF-Talk > > Subject: Pausing using CF > > > > > > Hello. > > > > Can anyone think of a way that I can achieve a pause for like 30 seconds > > to > > a minute between iterations in a loop? > > > > would another loop inside work that did nothing or is there a better > > way? > > > > Mike > > > > > > > > > > > > > > > > __ 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: SQL Server 2000 and @@Identity
I usually use SET NOCOUNT ON INSERT INTO people (password, username) VALUES ('something', 'testuser123456') SELECT @@identity AS lastID works in SQL 2000 for me... -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 3:36 PM To: CF-Talk Subject: RE: SQL Server 2000 and @@Identity > also why aren't you declare lastid and making your statement > > SELECT @lastid = @@identity If he did that, he wouldn't get lastid back as a query column. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ 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: Pausing using CF
kewl. question. do you need a java SDK on the server. never did anything with Java and CF. Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:47 PM To: CF-Talk Subject: RE: Pausing using CF function sleep(timeMillis) { var thread = createObject("java", "java.lang.Thread"); thread.sleep(timeMillis); } This was from Robert Everland III a few posts back: (Multiple CFMail Problem). I included the original post below. -- The only problem with that is that for as long as you want cf to sleep it will loop and loop and loop and loop and loop and loop. It would be like telling a taxi driver to drive for 5 minutes while you get your bags instead of telling him to shut off the car to conserve gas. Here is a UDF I found that uses a java com object to sleep. Works beautifully. function sleep(timeMillis) { var thread = createObject("java", "java.lang.Thread"); thread.sleep(timeMillis); } Robert Everland III Dixon Ticonderoga Web Developer Extraordinaire > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 4:29 PM > To: CF-Talk > Subject: RE: Pausing using CF > > > make you wish CF had a noop tag. ;) > > Anthony Petruzzi > Webmaster > 954-321-4703 > [EMAIL PROTECTED] > http://www.sheriff.org > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 4:30 PM > To: CF-Talk > Subject: RE: Pausing using CF > > > That's a good way to peak out your processor at 100%. If you do this a > lot, it's gonna kill your performance. > > I'd imagine a better way to do it would be to invoke the native "sleep" > function in the win32 api - there's a cfx_sleep (freeware on tag > exchange); I'm not sure if it does this. > > --- > Billy Cravens > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 09, 2002 8:02 AM > To: CF-Talk > Subject: RE: Pausing using CF > > > /** > * Pauses the processing for CF for a specified amount of time > * > * @param seconds number of seconds you would like to pause CF for > * @author Tony Petruzzi ([EMAIL PROTECTED] > * @version 1, April, 09 2002 > */ > function PauseCF(seconds){ > var currenttime = now(); > while(DateDiff("s", currenttime, now()) LTE seconds){ > continue; > } > } > > > > Here is a function a wrote to do this. All you have to do to use it is > assign the function to a variable. > > > > Have fun! > > Anthony Petruzzi > Webmaster > 954-321-4703 > http://www.sheriff.org > > > -Original Message- > From: Michael Tangorre [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 08, 2002 7:53 PM > To: CF-Talk > Subject: Pausing using CF > > > Hello. > > Can anyone think of a way that I can achieve a pause for like 30 seconds > to > a minute between iterations in a loop? > > would another loop inside work that did nothing or is there a better > way? > > Mike > > > > > > > __ 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: Help! How can I extract a form from a webpage?
Ernie : After CFHTPP the page content is gonna be in #cfhttp.filecontent# as an string. After that you only have to use regular expresion and some string functions like REFind to get the data you want. hint:You can see html code of the page you want to retrieve in advance in your browser. I hope this help friend. Mario --- Shawn Grover <[EMAIL PROTECTED]> escribió: > The Form names are URL parameters, if the form is > submitted with the GET > method. > > So, you can just scan through your Query_String for > the name/value pairs. > > This can be done by looping through the URL > elemetents (in cfscript > something like "for( field in url )"), or by parsing > the parameters as a > list. > > HTH > > Shawn Grover > > -Original Message- > From: Ernie Pena > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 1:46 PM > To: CF-Talk > Subject: Help! How can I extract a form from a > webpage? > > > I know using the cfhttp I can grab the page but how > can I get all the input > box field names from the content that was returned > via a get? > > > Ernie Pena > Sr. CF Developer > M.D. ANDERSON > > > > __ 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: Sending Message Alerts...
hidden frames are the best way to do this. just a query that run in the hidden frame and everything say 30 seconds or so, retireve the information from the server and then you can use javascript to paste the message to another frame. Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Bryan Love [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:43 PM To: CF-Talk Subject: RE: Sending Message Alerts... how complicated is the message? you can do it with image pipes... +---+ 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: Houk, Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 1:41 PM To: CF-Talk Subject: Sending Message Alerts... We have an app that has roughly 4-5,000 users accessing it. We would like to be able to push a message to the user at anytime without them having to refresh a page. Is there a way to do this...Maybe using hidden frames or flash??? Thanks, - Gary __ 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: Pausing using CF
function sleep(timeMillis) { var thread = createObject("java", "java.lang.Thread"); thread.sleep(timeMillis); } This was from Robert Everland III a few posts back: (Multiple CFMail Problem). I included the original post below. -- The only problem with that is that for as long as you want cf to sleep it will loop and loop and loop and loop and loop and loop. It would be like telling a taxi driver to drive for 5 minutes while you get your bags instead of telling him to shut off the car to conserve gas. Here is a UDF I found that uses a java com object to sleep. Works beautifully. function sleep(timeMillis) { var thread = createObject("java", "java.lang.Thread"); thread.sleep(timeMillis); } Robert Everland III Dixon Ticonderoga Web Developer Extraordinaire > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 4:29 PM > To: CF-Talk > Subject: RE: Pausing using CF > > > make you wish CF had a noop tag. ;) > > Anthony Petruzzi > Webmaster > 954-321-4703 > [EMAIL PROTECTED] > http://www.sheriff.org > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 4:30 PM > To: CF-Talk > Subject: RE: Pausing using CF > > > That's a good way to peak out your processor at 100%. If you do this a > lot, it's gonna kill your performance. > > I'd imagine a better way to do it would be to invoke the native "sleep" > function in the win32 api - there's a cfx_sleep (freeware on tag > exchange); I'm not sure if it does this. > > --- > Billy Cravens > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 09, 2002 8:02 AM > To: CF-Talk > Subject: RE: Pausing using CF > > > /** > * Pauses the processing for CF for a specified amount of time > * > * @param seconds number of seconds you would like to pause CF for > * @author Tony Petruzzi ([EMAIL PROTECTED] > * @version 1, April, 09 2002 > */ > function PauseCF(seconds){ > var currenttime = now(); > while(DateDiff("s", currenttime, now()) LTE seconds){ > continue; > } > } > > > > Here is a function a wrote to do this. All you have to do to use it is > assign the function to a variable. > > > > Have fun! > > Anthony Petruzzi > Webmaster > 954-321-4703 > http://www.sheriff.org > > > -Original Message- > From: Michael Tangorre [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 08, 2002 7:53 PM > To: CF-Talk > Subject: Pausing using CF > > > Hello. > > Can anyone think of a way that I can achieve a pause for like 30 seconds > to > a minute between iterations in a loop? > > would another loop inside work that did nothing or is there a better > way? > > Mike > > > > > > > __ 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: OT Domain register/DNS host
I'm not aware of them being "here" as in on this list but I believe www.easydns.com is in Canada and provides great tools for managing your domains. Ken -Original Message- From: Joseph Thompson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:04 PM To: CF-Talk Subject: OT Domain register/DNS host Apologies for the OT.. Last year I asked if there where any Canadians here that did domain registration and/or DNS hosting. (and then lost the info) I prefer Western Canada but anywhere up here is fine, email me off list, I have a couple new customers/sites to register :-) Thanks! Joseph Thompson [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: Sending Message Alerts...
how complicated is the message? you can do it with image pipes... +---+ 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: Houk, Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 1:41 PM To: CF-Talk Subject: Sending Message Alerts... We have an app that has roughly 4-5,000 users accessing it. We would like to be able to push a message to the user at anytime without them having to refresh a page. Is there a way to do this...Maybe using hidden frames or flash??? Thanks, - Gary __ 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: Pausing using CF
billy, do you happen to know the where i can get information on this. could probably write something with COM to do that. Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org "the wheel is spinning but the hamster's dead" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:29 PM To: CF-Talk Subject: RE: Pausing using CF make you wish CF had a noop tag. ;) Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:30 PM To: CF-Talk Subject: RE: Pausing using CF That's a good way to peak out your processor at 100%. If you do this a lot, it's gonna kill your performance. I'd imagine a better way to do it would be to invoke the native "sleep" function in the win32 api - there's a cfx_sleep (freeware on tag exchange); I'm not sure if it does this. --- Billy Cravens -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:02 AM To: CF-Talk Subject: RE: Pausing using CF /** * Pauses the processing for CF for a specified amount of time * * @param seconds number of seconds you would like to pause CF for * @author Tony Petruzzi ([EMAIL PROTECTED] * @version 1, April, 09 2002 */ function PauseCF(seconds){ var currenttime = now(); while(DateDiff("s", currenttime, now()) LTE seconds){ continue; } } Here is a function a wrote to do this. All you have to do to use it is assign the function to a variable. Have fun! Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: Michael Tangorre [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 7:53 PM To: CF-Talk Subject: Pausing using CF Hello. Can anyone think of a way that I can achieve a pause for like 30 seconds to a minute between iterations in a loop? would another loop inside work that did nothing or is there a better way? Mike __ 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
Sending Message Alerts...
We have an app that has roughly 4-5,000 users accessing it. We would like to be able to push a message to the user at anytime without them having to refresh a page. Is there a way to do this...Maybe using hidden frames or flash??? Thanks, - Gary __ 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: OT: Payment terms
Thanks Jeffry - I've gone ahead & subscribed to cf-jobs talk as well, and I'll watch the discussion over there as well. This should be my last comment about this on the CF-Talk list, unless others want it to continue here. To offer some additional data points: -Yes, this is an hourly project. -We're probably talking limited hours - to start, at least - For example, the first two things presented to me will probably take, at a rough guess, only about 10 hours. -I don't think the retainer fee is too likely for this project, but I'll keep it in mind for the future. Thanks for all your comments, and the comments of others. This is definitely giving me a lot more information to think about before I put anything in writing. :) Does anyone have a copy of a rather generic contract that I might be able to modify to fit? I realize that this won't be as good as talking to a lawyer, but it's bound to be better than anything I come up with. Dirk At 01:18 PM 4/11/2002, Jeffry Houser wrote: > > Check out cf-jobs talk. It is designed more for topics like this. ( I >cc-ed that list, so others may have additional thoughts) > > I strongly recommend getting something in writing with the client (and/or >talking to a lawyer to have him draw up a standard contract). > > If you can get it... decide upon a retainer fee. Something like: "I the >developer gets paid four million dollars a month for 6 months, and I'll >take care of all your web development needs. (BTW, You can outsource all >the work to me for 1 million a month). > > I've done a bunch of Net30 contracts (Net30 means that I get paid in 30 >days) where I would provide invoices during the first week of the month and >payment would be due in 30 days. I'm no longer a fan of these type of >contracts. ( Call it a significant sum in unpaid invoices; I had to get a >lawyer involved in one case, and it looks like I may be sending more >business down his way). > > It sounds like you are dealing with an hourly project. Here are some >things I might do. They may ( or may not ) apply to your situation. > Get two full weeks in advance upon signing of the contract and reduce it >from the invoice at the end of the contract. > Do invoicing once a month. > Client has five days after delivery to approve the functionality. "No >comment" is considered approval. > Client has five days of additional support when the delivered code goes live > Unpaid invoices will accrue a monthly fee (define it as a percentage, >make the percentage larger than what you are getting in your checking / >savings accounts ) > __ 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 Question
Ok... i did quite follow what you guys were saying, but thanks for trying. I did get it to work like this. Let me know if im an idiot and if this is total kludge. I put Caller.#ATTRIBUTES.Query# into the Query="" on my CFoutput. Calling the tag with this: At 04:15 PM 4/11/2002 -0400, you wrote: > > > I am trying to write a super simple custom tag but im > > > running into problems getting CFQuery information into > > > the custom tag. Is it possible to pass Query data into > > > a custom tag? > > > > Yes. The trick is evaluating it before passing it, you can't > > pass it by reference. It becomes an attribute of the tag. > > > > > > > > From within the tag, you can reference the query as > > #ATTRIBUTES.query#. I recommend copying it to local scope > > for ease of typing. > >I think it's worth pointing out that, when you say: > >query="#getProductList#" > >you are passing the query by reference. Queries and structures are passed by >reference, while arrays and simple types are passed by value. When something >is passed by reference, there's only one object, but multiple names that >point to the object. > >It's also worth noting that you could reference the query from within the >custom tag without passing it at all, so if you did this: > >query="getProductList" > >you could reference it within the custom tag like this: > >Caller.getProductList > >However, I prefer the first approach myself. > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ >voice: (202) 797-5496 >fax: (202) 797-5444 > > __ 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: Pausing using CF
make you wish CF had a noop tag. ;) Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:30 PM To: CF-Talk Subject: RE: Pausing using CF That's a good way to peak out your processor at 100%. If you do this a lot, it's gonna kill your performance. I'd imagine a better way to do it would be to invoke the native "sleep" function in the win32 api - there's a cfx_sleep (freeware on tag exchange); I'm not sure if it does this. --- Billy Cravens -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:02 AM To: CF-Talk Subject: RE: Pausing using CF /** * Pauses the processing for CF for a specified amount of time * * @param seconds number of seconds you would like to pause CF for * @author Tony Petruzzi ([EMAIL PROTECTED] * @version 1, April, 09 2002 */ function PauseCF(seconds){ var currenttime = now(); while(DateDiff("s", currenttime, now()) LTE seconds){ continue; } } Here is a function a wrote to do this. All you have to do to use it is assign the function to a variable. Have fun! Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: Michael Tangorre [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 7:53 PM To: CF-Talk Subject: Pausing using CF Hello. Can anyone think of a way that I can achieve a pause for like 30 seconds to a minute between iterations in a loop? would another loop inside work that did nothing or is there a better way? Mike __ 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: Pausing using CF
That's a good way to peak out your processor at 100%. If you do this a lot, it's gonna kill your performance. I'd imagine a better way to do it would be to invoke the native "sleep" function in the win32 api - there's a cfx_sleep (freeware on tag exchange); I'm not sure if it does this. --- Billy Cravens -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:02 AM To: CF-Talk Subject: RE: Pausing using CF /** * Pauses the processing for CF for a specified amount of time * * @param seconds number of seconds you would like to pause CF for * @author Tony Petruzzi ([EMAIL PROTECTED] * @version 1, April, 09 2002 */ function PauseCF(seconds){ var currenttime = now(); while(DateDiff("s", currenttime, now()) LTE seconds){ continue; } } Here is a function a wrote to do this. All you have to do to use it is assign the function to a variable. Have fun! Anthony Petruzzi Webmaster 954-321-4703 http://www.sheriff.org -Original Message- From: Michael Tangorre [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 7:53 PM To: CF-Talk Subject: Pausing using CF Hello. Can anyone think of a way that I can achieve a pause for like 30 seconds to a minute between iterations in a loop? would another loop inside work that did nothing or is there a better way? Mike __ 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: Help! How can I extract a form from a webpage?
The Form names are URL parameters, if the form is submitted with the GET method. So, you can just scan through your Query_String for the name/value pairs. This can be done by looping through the URL elemetents (in cfscript something like "for( field in url )"), or by parsing the parameters as a list. HTH Shawn Grover -Original Message- From: Ernie Pena [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 1:46 PM To: CF-Talk Subject: Help! How can I extract a form from a webpage? I know using the cfhttp I can grab the page but how can I get all the input box field names from the content that was returned via a get? Ernie Pena Sr. CF Developer M.D. ANDERSON __ 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 Question
> > I am trying to write a super simple custom tag but im > > running into problems getting CFQuery information into > > the custom tag. Is it possible to pass Query data into > > a custom tag? > > Yes. The trick is evaluating it before passing it, you can't > pass it by reference. It becomes an attribute of the tag. > > > > From within the tag, you can reference the query as > #ATTRIBUTES.query#. I recommend copying it to local scope > for ease of typing. I think it's worth pointing out that, when you say: query="#getProductList#" you are passing the query by reference. Queries and structures are passed by reference, while arrays and simple types are passed by value. When something is passed by reference, there's only one object, but multiple names that point to the object. It's also worth noting that you could reference the query from within the custom tag without passing it at all, so if you did this: query="getProductList" you could reference it within the custom tag like this: Caller.getProductList However, I prefer the first approach myself. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ 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: Payment terms
NET 30 seems to be the most common, if you're working with larger companies. (for invoices to cycle through management, A/P, etc) Just make sure you have the payment policies defined in your contract. (for example, NET 30, 1% of aggregated balance for each day past 30) --- Billy Cravens -Original Message- From: Dirk Sieber [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:24 PM To: CF-Talk Subject: OT: Payment terms Hi everyone, This is a little off-topic, but I'm hoping some of you might be able to give me some good advice. I'm going to be entering in a formal agreement to perform some enhancement/bug fix work for a client on a casual, but ongoing basis, and they're asking me for my payment terms. Now, in the past, I've either always been paid COD, or been someone's employee, so this is a bit new to me. :) I'd welcome comments on what everyone thinks is a 'fair' amount of time for payment. My first thought was 1 week from delivery for bug testing - if nothing is reported in that week, the client is assumed to have signed off on the work (if they don't do so sooner), and payment is due within 30 days. Thoughts? Comments? Thanks! Dirk __ 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
OT Domain register/DNS host
Apologies for the OT.. Last year I asked if there where any Canadians here that did domain registration and/or DNS hosting. (and then lost the info) I prefer Western Canada but anywhere up here is fine, email me off list, I have a couple new customers/sites to register :-) Thanks! Joseph Thompson [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: Payment terms
In the past when I have done terms I have given net 15 and after 90days they can move to a net 30 as long as there were no late payments. I do that just to get to know someone and there payment habits.. 8>) Steven Lancaster Barrios Technology NASA/JSC 281-244-2444 (voice) [EMAIL PROTECTED] -Original Message- From: Phillip Broussard [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:39 PM To: CF-Talk Subject: RE: Payment terms I don't know if this helps but this is the way we usually do things. Short term projects(a few weeks): 50% up front the rest at completion Long term projects(around 2 or more months): 1/3 up front, 1/3 around mid way through and the rest at completion. Phillip > -Original Message- > From: Dirk Sieber [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 2:24 PM > To: CF-Talk > Subject: OT: Payment terms > > Hi everyone, > > This is a little off-topic, but I'm hoping some of you might be able to > give me some good advice. I'm going to be entering in a formal agreement > to perform some enhancement/bug fix work for a client on a casual, but > ongoing basis, and they're asking me for my payment terms. Now, in the > past, I've either always been paid COD, or been someone's employee, so > this > is a bit new to me. :) > > I'd welcome comments on what everyone thinks is a 'fair' amount of time > for > payment. My first thought was 1 week from delivery for bug testing - if > nothing is reported in that week, the client is assumed to have signed off > on the work (if they don't do so sooner), and payment is due within 30 > days. > > Thoughts? Comments? > > Thanks! > Dirk > > __ 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: Custom Tag Question
> I am trying to write a super simple custom tag but im running into problems > getting CFQuery information into the custom tag. Is it possible to pass > Query data into a custom tag? Yes. The trick is evaluating it before passing it, you can't pass it by reference. It becomes an attribute of the tag. >From within the tag, you can reference the query as #ATTRIBUTES.query#. I recommend >copying it to local scope for ease of typing. Sharon DiOrio __ 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: cfgraph in 5.0 ??
Im on Win 2000 any other ideas.??? __ 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: Payment terms
Dirk: I've tried several things. The setup I eventually settled on was half on delivery (basically, when they can start using it), and half after a given time period. I NEVER upload or deliver code/graphics without at least some payment at time of delivery. What I have found is that 90% of my clients think (or appear to think based upon actions), that the Internet, and their web development/hosting, is a non-essential expense. And that cutting checks for such work seems to come last on their list, even if they are heavily dependent on their websites for income or important operational data, etc. I don't understand this attitude towards the Internet, hopefully it's just localized and that the rest of you aren't experiencing this. What I've also found is that even if I have a contract, that if I deliver without pay, I will go 6 months or more before I see a check. So I have to get at least some out of them on delivery. No one will give me COD terms. Everyone seems hessitant on this. They say they are scared that if they pay all of it on delivery I will disappear and I won't support my product. I guess application developers have a bad reputation for this in these parts for pulling disappearing acts. Again, I don't understand it, but it's the general feeling amongst my prospect / customer pool, so I have to adjust. So I am nervous that they will never pay, and they are nervous that if they pay, I will magically stop taking their phone calls. So we meet in the middle. I would be curious what people in the rest of the States and around the world have experienced in prospect / customer attititudes lately. Are large companies behaving differently than small companies? This could be an interesting thread. Good luck. Nick [EMAIL PROTECTED] - Original Message - From: "Dirk Sieber" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 1:23 PM Subject: OT: Payment terms > Hi everyone, > > This is a little off-topic, but I'm hoping some of you might be able to > give me some good advice. I'm going to be entering in a formal agreement > to perform some enhancement/bug fix work for a client on a casual, but > ongoing basis, and they're asking me for my payment terms. Now, in the > past, I've either always been paid COD, or been someone's employee, so this > is a bit new to me. :) > > I'd welcome comments on what everyone thinks is a 'fair' amount of time for > payment. My first thought was 1 week from delivery for bug testing - if > nothing is reported in that week, the client is assumed to have signed off > on the work (if they don't do so sooner), and payment is due within 30 days. > > Thoughts? Comments? > > Thanks! > Dirk > > __ 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
Custom Tag Question
Hello, I am trying to write a super simple custom tag but im running into problems getting CFQuery information into the custom tag. Is it possible to pass Query data into a custom tag? My error is "The QUERY attribute of the tag does not specify the name of an available query" Im calling the custom tag like this: Below is the custom tag code. __ 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
Help! How can I extract a form from a webpage?
I know using the cfhttp I can grab the page but how can I get all the input box field names from the content that was returned via a get? Ernie Pena Sr. CF Developer M.D. ANDERSON __ 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: OT: Payment terms
At 12:23 PM 4/11/02 -0700, Dirk Sieber wrote: >I'd welcome comments on what everyone thinks is a 'fair' amount of time for >payment. My first thought was 1 week from delivery for bug testing - if >nothing is reported in that week, the client is assumed to have signed off >on the work (if they don't do so sooner), and payment is due within 30 days. I deliver the bill after one week of no reported bugs. All my bills are payment due on receipt, and I starting charging interest on the 31st day (however, I've never had to wait more than a week to get paid.) T __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Payment terms
I don't know if this helps but this is the way we usually do things. Short term projects(a few weeks): 50% up front the rest at completion Long term projects(around 2 or more months): 1/3 up front, 1/3 around mid way through and the rest at completion. Phillip > -Original Message- > From: Dirk Sieber [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 2:24 PM > To: CF-Talk > Subject: OT: Payment terms > > Hi everyone, > > This is a little off-topic, but I'm hoping some of you might be able to > give me some good advice. I'm going to be entering in a formal agreement > to perform some enhancement/bug fix work for a client on a casual, but > ongoing basis, and they're asking me for my payment terms. Now, in the > past, I've either always been paid COD, or been someone's employee, so > this > is a bit new to me. :) > > I'd welcome comments on what everyone thinks is a 'fair' amount of time > for > payment. My first thought was 1 week from delivery for bug testing - if > nothing is reported in that week, the client is assumed to have signed off > on the work (if they don't do so sooner), and payment is due within 30 > days. > > Thoughts? Comments? > > Thanks! > Dirk > > __ 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: Payment terms
Well that sounds pretty good. I have a client that I do the same thing for, but he pays me in advance!! (Consider that rare) Anyhow as most companies are net 30 you will most likely be dealing with that time frame. I would say that anytime before the invoice becomes due, should be the debug period. This will help alleviate any potential problems that the client may have in the future. In your invoice, I would state that by paying said invoice you are agreeing that the product supplied is satisfactory and that any additional work will be billed at an hourly rate. "Success is a journey, not a destination!!" Doug Brown - Original Message - From: "Dirk Sieber" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 12:23 PM Subject: OT: Payment terms > Hi everyone, > > This is a little off-topic, but I'm hoping some of you might be able to > give me some good advice. I'm going to be entering in a formal agreement > to perform some enhancement/bug fix work for a client on a casual, but > ongoing basis, and they're asking me for my payment terms. Now, in the > past, I've either always been paid COD, or been someone's employee, so this > is a bit new to me. :) > > I'd welcome comments on what everyone thinks is a 'fair' amount of time for > payment. My first thought was 1 week from delivery for bug testing - if > nothing is reported in that week, the client is assumed to have signed off > on the work (if they don't do so sooner), and payment is due within 30 days. > > Thoughts? Comments? > > Thanks! > Dirk > > __ 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: SQL Server 2000 and @@Identity
> also why aren't you declare lastid and making your statement > > SELECT @lastid = @@identity If he did that, he wouldn't get lastid back as a query column. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ 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: SQL Server 2000 and @@Identity
Checking on the MDAC upgrade idea.. @lastid would assume lastid is a declared variable, it's just part of my select statement. I could have named it anything. Thanks for the MDAC idea. It's a new server and I forgot about that. Good Fortune, Richard Walters, Webmaster, Davita Laboratory Services [EMAIL PROTECTED] (800) 604-5227 x 3525 >>> [EMAIL PROTECTED] 04/11/02 03:08PM >>> try upgrading your mdac. also why aren't you delcare lastid and making your statement SELECT @lastid = @@identity Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Rick Walters [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 3:02 PM To: CF-Talk Subject: SQL Server 2000 and @@Identity Hi List, I recently upgraded from SQLServer7 to 2k and the @@identity in the code below now returns a null string. Anyone know why this might be happening? code block~~ set nocount on insert into people (password, username) values ('something', 'testuser123456') SELECT lastid = @@identity set nocount off insert into people_detail (peopleid, firstname, lastname) values (#thepeopleid#, 'firstname', 'lastname') end code block~~~ Thanks for the help. Good Fortune, Richard Walters, Webmaster, Davita Laboratory Services [EMAIL PROTECTED] (800) 604-5227 x 3525 DaVita Inc. __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
OT: Payment terms
Hi everyone, This is a little off-topic, but I'm hoping some of you might be able to give me some good advice. I'm going to be entering in a formal agreement to perform some enhancement/bug fix work for a client on a casual, but ongoing basis, and they're asking me for my payment terms. Now, in the past, I've either always been paid COD, or been someone's employee, so this is a bit new to me. :) I'd welcome comments on what everyone thinks is a 'fair' amount of time for payment. My first thought was 1 week from delivery for bug testing - if nothing is reported in that week, the client is assumed to have signed off on the work (if they don't do so sooner), and payment is due within 30 days. Thoughts? Comments? Thanks! Dirk __ 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: SQL Server 2000 and @@Identity
try upgrading your mdac. also why aren't you delcare lastid and making your statement SELECT @lastid = @@identity Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Rick Walters [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 3:02 PM To: CF-Talk Subject: SQL Server 2000 and @@Identity Hi List, I recently upgraded from SQLServer7 to 2k and the @@identity in the code below now returns a null string. Anyone know why this might be happening? code block~~ set nocount on insert into people (password, username) values ('something', 'testuser123456') SELECT lastid = @@identity set nocount off insert into people_detail (peopleid, firstname, lastname) values (#thepeopleid#, 'firstname', 'lastname') end code block~~~ Thanks for the help. Good Fortune, Richard Walters, Webmaster, Davita Laboratory Services [EMAIL PROTECTED] (800) 604-5227 x 3525 DaVita 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: SQL Server 2000 and @@Identity
Try putting this into a stored proc and trying it. I am using SQL 2000 and I have no problem doing this. Clint -Original Message- From: Rick Walters [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:02 PM To: CF-Talk Subject: SQL Server 2000 and @@Identity Hi List, I recently upgraded from SQLServer7 to 2k and the @@identity in the code below now returns a null string. Anyone know why this might be happening? code block~~ set nocount on insert into people (password, username) values ('something', 'testuser123456') SELECT lastid = @@identity set nocount off insert into people_detail (peopleid, firstname, lastname) values (#thepeopleid#, 'firstname', 'lastname') end code block~~~ Thanks for the help. Good Fortune, Richard Walters, Webmaster, Davita Laboratory Services [EMAIL PROTECTED] (800) 604-5227 x 3525 DaVita 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: cookie, session, and domain management trouble
Is there a work around for this or a way to fool NS4.7? I used to be a fan of NS, but this passed year dealing with xbrowser issues with it has been hell. > -Original Message- > From: Critz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 2:12 PM > To: CF-Talk > Subject: Re: cookie, session, and domain management trouble > > > oi Lon!! > > cuz netscape sucks? __ 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: Wrapping Text
Now this is using your head. this is probably the best solution and simplest solution. could of posted this before i spent 30 minutes writing that UDF, thanks for nothing David. ;). Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: David DiPietro [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:39 PM To: CF-Talk Subject: RE: Wrapping Text Alternately (if HTML) Put it in a table #yourText# No one sees the tables and you have a 20px margin on your page This will wrap the text without having to figure out what the last word is and assuring that it doesn't break in the middle of the word without having to search for the nearest space etc... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:20 PM To: CF-Talk Subject: RE: Wrapping Text Function to wrap a string before a specific number of characters. function WrapText(string, count){ var start = 1; var stringlen = len(string); while(start LTE stringlen){ newstring = reverse(trim(mid(string, start, count))); spaceat = refind("[[:space:]]", newstring, start); where = start + (count - spaceat); if(where LTE stringlen){string = insert("", string, where);} amount = count - spaceat; if(amount EQ 0){amount = count;} start = start + amount; } return string; } #WrapText(string, 90)# Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:05 PM To: CF-Talk Subject: Wrapping Text I'm trying to get a long text string to wrap properly in a printable report. Anyone have a graceful way of finding the last space before a certain character, say 90? Also, I could use fixedsys font to be sure that 90 is always a good wrapping point. Is that the best option? __ 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: how to tell if a session has expired
The problem with that Scott is that anytime a person comes to the site that session variable won't exist and will always redirect them someplace. Ben At 02:54 PM 4/11/2002, you wrote: >What's wrong with: IsDefined('Session.Cart')? If the Session is expired, >that structure will not exist. - Scott > >+--+---+ >| SCOTT VAN VLIET | SBC SERVICES, INC.| >| Senior Analyst | ITO Enterprise Tools | >| Tel: 858.886.3878| 7337 Trade St. Room 4000 | >| Pgr: 858.536.0070| San Diego, CA 92121 | >| Email: [EMAIL PROTECTED]| http://www.sbc.com| >+--+---+ > > >-Original Message- >From: Ben Densmore [mailto:[EMAIL PROTECTED]] >Sent: Thursday, April 11, 2002 11:50 AM >To: CF-Talk >Subject: Re: how to tell if a session has expired > > >I'm using this for a shopping cart I built, and the only session variable I >am creating is one called session.cart which creates a structure to store >the shopping cart stuff, I wanted to make it so if they add to the shopping >cart and the session expires then send them to a page that tells them their >session had expired, I don't use any login stuff for this app, that's why I >have been struggling to figure out how to do this. > >Thanks, >Ben > > >At 02:48 PM 4/11/2002, you wrote: > >in your application page just do a > > > > > > > > > > > > > >"Success is a journey, not a destination!!" > > > > > > > >Doug Brown > >- Original Message - > >From: "Ben Densmore" <[EMAIL PROTECTED]> > >To: "CF-Talk" <[EMAIL PROTECTED]> > >Sent: Thursday, April 11, 2002 11:39 AM > >Subject: how to tell if a session has expired > > > > > > > Can someone tell me how you can tell if a session has timed out? I just > > > want to redirect someone to a different page if their session has timed > > > out,I can't find any reference to this anywhere, I know it's gonna be > > > something so simple, but can't seem to find it. > > > > > > Thanks, > > > Ben > > > > > > > > > > > > > __ 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: Wrapping Text
that UDF is HUGE. :) I like simple myself. Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Carlisle, Eric [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:42 PM To: CF-Talk Subject: RE: Wrapping Text Very nice. Here's another one at CFLib. http://www.cflib.org/udf.cfm?ID=249 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:20 PM To: CF-Talk Subject: RE: Wrapping Text Function to wrap a string before a specific number of characters. function WrapText(string, count){ var start = 1; var stringlen = len(string); while(start LTE stringlen){ newstring = reverse(trim(mid(string, start, count))); spaceat = refind("[[:space:]]", newstring, start); where = start + (count - spaceat); if(where LTE stringlen){string = insert("", string, where);} amount = count - spaceat; if(amount EQ 0){amount = count;} start = start + amount; } return string; } #WrapText(string, 90)# Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:05 PM To: CF-Talk Subject: Wrapping Text I'm trying to get a long text string to wrap properly in a printable report. Anyone have a graceful way of finding the last space before a certain character, say 90? Also, I could use fixedsys font to be sure that 90 is always a good wrapping point. Is that the best option? __ 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
SQL Server 2000 and @@Identity
Hi List, I recently upgraded from SQLServer7 to 2k and the @@identity in the code below now returns a null string. Anyone know why this might be happening? code block~~ set nocount on insert into people (password, username) values ('something', 'testuser123456') SELECT lastid = @@identity set nocount off insert into people_detail (peopleid, firstname, lastname) values (#thepeopleid#, 'firstname', 'lastname') end code block~~~ Thanks for the help. Good Fortune, Richard Walters, Webmaster, Davita Laboratory Services [EMAIL PROTECTED] (800) 604-5227 x 3525 DaVita Inc. __ 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: how to tell if a session has expired
Yeah I guess it does make more sense to just use a longer period of time before it expires. Thanks for the help everyone. Ben At 03:00 PM 4/11/2002, you wrote: >Well for a shopping cart application, I would not set your timeout period >for a >short amount of time. I would set it for like 1 hour and that should alot >plenty >of time for them to finish they're shopping experience. > > >"Success is a journey, not a destination!!" > > > >Doug Brown >- Original Message - >From: "Ben Densmore" <[EMAIL PROTECTED]> >To: "CF-Talk" <[EMAIL PROTECTED]> >Sent: Thursday, April 11, 2002 11:50 AM >Subject: Re: how to tell if a session has expired > > > > I'm using this for a shopping cart I built, and the only session variable I > > am creating is one called session.cart which creates a structure to store > > the shopping cart stuff, I wanted to make it so if they add to the shopping > > cart and the session expires then send them to a page that tells them their > > session had expired, I don't use any login stuff for this app, that's why I > > have been struggling to figure out how to do this. > > > > Thanks, > > Ben > > > > > > At 02:48 PM 4/11/2002, you wrote: > > >in your application page just do a > > > > > > > > > > > > > > > > > > > > >"Success is a journey, not a destination!!" > > > > > > > > > > > >Doug Brown > > >- Original Message - > > >From: "Ben Densmore" <[EMAIL PROTECTED]> > > >To: "CF-Talk" <[EMAIL PROTECTED]> > > >Sent: Thursday, April 11, 2002 11:39 AM > > >Subject: how to tell if a session has expired > > > > > > > > > > Can someone tell me how you can tell if a session has timed out? I > just > > > > want to redirect someone to a different page if their session has timed > > > > out,I can't find any reference to this anywhere, I know it's gonna be > > > > something so simple, but can't seem to find it. > > > > > > > > Thanks, > > > > Ben > > > > > > > > > > > > > > > > > > __ 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: how to tell if a session has expired
(Don't forget to check which page their on...otherwise you can setup a nasty loop.) Sharon - Original Message - From: "Ben Densmore" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 2:39 PM Subject: how to tell if a session has expired > Can someone tell me how you can tell if a session has timed out? I just > want to redirect someone to a different page if their session has timed > out,I can't find any reference to this anywhere, I know it's gonna be > something so simple, but can't seem to find it. > > Thanks, > Ben > > > __ 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: how to tell if a session has expired
Well for a shopping cart application, I would not set your timeout period for a short amount of time. I would set it for like 1 hour and that should alot plenty of time for them to finish they're shopping experience. "Success is a journey, not a destination!!" Doug Brown - Original Message - From: "Ben Densmore" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 11:50 AM Subject: Re: how to tell if a session has expired > I'm using this for a shopping cart I built, and the only session variable I > am creating is one called session.cart which creates a structure to store > the shopping cart stuff, I wanted to make it so if they add to the shopping > cart and the session expires then send them to a page that tells them their > session had expired, I don't use any login stuff for this app, that's why I > have been struggling to figure out how to do this. > > Thanks, > Ben > > > At 02:48 PM 4/11/2002, you wrote: > >in your application page just do a > > > > > > > > > > > > > >"Success is a journey, not a destination!!" > > > > > > > >Doug Brown > >- Original Message - > >From: "Ben Densmore" <[EMAIL PROTECTED]> > >To: "CF-Talk" <[EMAIL PROTECTED]> > >Sent: Thursday, April 11, 2002 11:39 AM > >Subject: how to tell if a session has expired > > > > > > > Can someone tell me how you can tell if a session has timed out? I just > > > want to redirect someone to a different page if their session has timed > > > out,I can't find any reference to this anywhere, I know it's gonna be > > > something so simple, but can't seem to find it. > > > > > > Thanks, > > > Ben > > > > > > > > > > > > __ 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: how to tell if a session has expired
What's wrong with: IsDefined('Session.Cart')? If the Session is expired, that structure will not exist. - Scott +--+---+ | SCOTT VAN VLIET | SBC SERVICES, INC.| | Senior Analyst | ITO Enterprise Tools | | Tel: 858.886.3878| 7337 Trade St. Room 4000 | | Pgr: 858.536.0070| San Diego, CA 92121 | | Email: [EMAIL PROTECTED]| http://www.sbc.com| +--+---+ -Original Message- From: Ben Densmore [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 11:50 AM To: CF-Talk Subject: Re: how to tell if a session has expired I'm using this for a shopping cart I built, and the only session variable I am creating is one called session.cart which creates a structure to store the shopping cart stuff, I wanted to make it so if they add to the shopping cart and the session expires then send them to a page that tells them their session had expired, I don't use any login stuff for this app, that's why I have been struggling to figure out how to do this. Thanks, Ben At 02:48 PM 4/11/2002, you wrote: >in your application page just do a > > > > > > >"Success is a journey, not a destination!!" > > > >Doug Brown >- Original Message - >From: "Ben Densmore" <[EMAIL PROTECTED]> >To: "CF-Talk" <[EMAIL PROTECTED]> >Sent: Thursday, April 11, 2002 11:39 AM >Subject: how to tell if a session has expired > > > > Can someone tell me how you can tell if a session has timed out? I just > > want to redirect someone to a different page if their session has timed > > out,I can't find any reference to this anywhere, I know it's gonna be > > something so simple, but can't seem to find it. > > > > Thanks, > > Ben > > > > > > > __ 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: how to tell if a session has expired
You could look for the SESSION variable. If the session has timed out then it will not exist. ie Send the user somewhere else. HTH J. John Wilker Web Applications Consultant, and Author Macromedia Certified ColdFusion Developer President/Founder, Inland Empire CFUG. www.red-omega.com "more people are killed by donkeys than by airplane crashes each year" -Original Message- From: Ben Densmore [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 11:39 AM To: CF-Talk Subject: how to tell if a session has expired Can someone tell me how you can tell if a session has timed out? I just want to redirect someone to a different page if their session has timed out,I can't find any reference to this anywhere, I know it's gonna be something so simple, but can't seem to find it. Thanks, Ben __ 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: how to tell if a session has expired
Syntax error...sorry forgot a couple of )) "Success is a journey, not a destination!!" Doug Brown - Original Message - From: "Douglas Brown" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 11:48 AM Subject: Re: how to tell if a session has expired > in your application page just do a > > > > > > > "Success is a journey, not a destination!!" > > > > Doug Brown > - Original Message - > From: "Ben Densmore" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Thursday, April 11, 2002 11:39 AM > Subject: how to tell if a session has expired > > > > Can someone tell me how you can tell if a session has timed out? I just > > want to redirect someone to a different page if their session has timed > > out,I can't find any reference to this anywhere, I know it's gonna be > > something so simple, but can't seem to find it. > > > > Thanks, > > Ben > > > > > > > __ 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: how to tell if a session has expired
I'm using this for a shopping cart I built, and the only session variable I am creating is one called session.cart which creates a structure to store the shopping cart stuff, I wanted to make it so if they add to the shopping cart and the session expires then send them to a page that tells them their session had expired, I don't use any login stuff for this app, that's why I have been struggling to figure out how to do this. Thanks, Ben At 02:48 PM 4/11/2002, you wrote: >in your application page just do a > > > > > > >"Success is a journey, not a destination!!" > > > >Doug Brown >- Original Message - >From: "Ben Densmore" <[EMAIL PROTECTED]> >To: "CF-Talk" <[EMAIL PROTECTED]> >Sent: Thursday, April 11, 2002 11:39 AM >Subject: how to tell if a session has expired > > > > Can someone tell me how you can tell if a session has timed out? I just > > want to redirect someone to a different page if their session has timed > > out,I can't find any reference to this anywhere, I know it's gonna be > > something so simple, but can't seem to find it. > > > > Thanks, > > Ben > > > > > > > __ 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: how to tell if a session has expired
That depends on how you handle your session management. If you're using session variables, I do not think there's much you can do in the way of detecting when they expire (I could be wrong, I don't use Session vars for several reasons). I use cookies for my session handling. A combination of three session cookies, one that stores their member id, another for a session hash (security), and another with the date/time a page was displayed (encrypted if you like). On each page load requiring the user to be logged in, I check the timestamp against the current time, and if X minutes have passed, it resets the other cookies and sends them back to the login page with a "session expired" message. The timestamp cookie can also be used in conjunction with session variables to achieve the same results as long as your users have cookies enabled. -Justin Scott, Lead Developer Sceiron Internet Services, Inc. http://www.sceiron.com - Original Message - From: "Ben Densmore" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 2:39 PM Subject: how to tell if a session has expired > Can someone tell me how you can tell if a session has timed out? I just > want to redirect someone to a different page if their session has timed > out,I can't find any reference to this anywhere, I know it's gonna be > something so simple, but can't seem to find it. > > Thanks, > Ben > > > __ 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: how to tell if a session has expired
in your application page just do a "Success is a journey, not a destination!!" Doug Brown - Original Message - From: "Ben Densmore" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 11:39 AM Subject: how to tell if a session has expired > Can someone tell me how you can tell if a session has timed out? I just > want to redirect someone to a different page if their session has timed > out,I can't find any reference to this anywhere, I know it's gonna be > something so simple, but can't seem to find it. > > Thanks, > Ben > > > __ 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: how to tell if a session has expired
You can just do an IsDefined('Session.SomeSessionVar') on a common session variable you create for each user (usually a Session.LoggedIn or Session.Authenticated). At least that's been the technique I have used, and it works great ;) +--+---+ | SCOTT VAN VLIET | SBC SERVICES, INC.| | Senior Analyst | ITO Enterprise Tools | | Tel: 858.886.3878| 7337 Trade St. Room 4000 | | Pgr: 858.536.0070| San Diego, CA 92121 | | Email: [EMAIL PROTECTED]| http://www.sbc.com| +--+---+ -Original Message- From: Ben Densmore [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 11:39 AM To: CF-Talk Subject: how to tell if a session has expired Can someone tell me how you can tell if a session has timed out? I just want to redirect someone to a different page if their session has timed out,I can't find any reference to this anywhere, I know it's gonna be something so simple, but can't seem to find it. Thanks, Ben __ 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: how to tell if a session has expired
Adam. > -Original Message- > From: Ben Densmore [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 1:39 PM > To: CF-Talk > Subject: how to tell if a session has expired > > > Can someone tell me how you can tell if a session has timed > out? I just > want to redirect someone to a different page if their session > has timed > out,I can't find any reference to this anywhere, I know it's gonna be > something so simple, but can't seem to find it. > > Thanks, > Ben > > > __ 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: Wrapping Text
Very nice. Here's another one at CFLib. http://www.cflib.org/udf.cfm?ID=249 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:20 PM To: CF-Talk Subject: RE: Wrapping Text Function to wrap a string before a specific number of characters. function WrapText(string, count){ var start = 1; var stringlen = len(string); while(start LTE stringlen){ newstring = reverse(trim(mid(string, start, count))); spaceat = refind("[[:space:]]", newstring, start); where = start + (count - spaceat); if(where LTE stringlen){string = insert("", string, where);} amount = count - spaceat; if(amount EQ 0){amount = count;} start = start + amount; } return string; } #WrapText(string, 90)# Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:05 PM To: CF-Talk Subject: Wrapping Text I'm trying to get a long text string to wrap properly in a printable report. Anyone have a graceful way of finding the last space before a certain character, say 90? Also, I could use fixedsys font to be sure that 90 is always a good wrapping point. Is that the best option? __ 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
how to tell if a session has expired
Can someone tell me how you can tell if a session has timed out? I just want to redirect someone to a different page if their session has timed out,I can't find any reference to this anywhere, I know it's gonna be something so simple, but can't seem to find it. Thanks, Ben __ 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: Wrapping Text
Alternately (if HTML) Put it in a table #yourText# No one sees the tables and you have a 20px margin on your page This will wrap the text without having to figure out what the last word is and assuring that it doesn't break in the middle of the word without having to search for the nearest space etc... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:20 PM To: CF-Talk Subject: RE: Wrapping Text Function to wrap a string before a specific number of characters. function WrapText(string, count){ var start = 1; var stringlen = len(string); while(start LTE stringlen){ newstring = reverse(trim(mid(string, start, count))); spaceat = refind("[[:space:]]", newstring, start); where = start + (count - spaceat); if(where LTE stringlen){string = insert("", string, where);} amount = count - spaceat; if(amount EQ 0){amount = count;} start = start + amount; } return string; } #WrapText(string, 90)# Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:05 PM To: CF-Talk Subject: Wrapping Text I'm trying to get a long text string to wrap properly in a printable report. Anyone have a graceful way of finding the last space before a certain character, say 90? Also, I could use fixedsys font to be sure that 90 is always a good wrapping point. Is that the best option? __ 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
CFINDEX worked
The CFINDEX worked to automatically update my collection via a cfm file. I used the code below, however, when I enter more than one collection name after the "print" collection seperated by a comma (and within the quotes) I get a "Collection not found" error. Anything I missed here? Thanks. Robert O. HW Wilson All UPDATED __ 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: cookie, session, and domain management trouble
oi Lon!! cuz netscape sucks? -- Critz Certified Adv. ColdFusion Developer Crit[s2k] - - Thursday, April 11, 2002, 2:14:55 PM, you wrote: LL> Can someone explain to me why adding domain=".mydomain.com" to my tags LL> in my application.cfm would cause a cookie disruption in NS4.7? LL> Lon Lentz LL> Applications Developer and Keeper of the I.T. LL> http://ProofitOnline.Com - Free 15 Day Trial LL> __ 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