cfhttp again...
Running 4.5.1 SP2 on a server we are getting the "connection failure"-error on this code: cfhttp url="http://www.theserver.com/template.cfm" method="GET" port="80" resolveurl="false" timeout="20" throwonerror="yes" On another server running the same configuration, the code runs well. Any more issues with cfhttp I should be aware of? || Holger Lockertsen - [EMAIL PROTECTED] || Sentralbord: +47 23 00 53 00 || Direkte: +47 23 00 53 04 || Mobil : +47 91 83 20 51 || http://www.pixelduck.com/ OBS: Pixelduck AS har ny adresse og nytt telefonnummer! -- Gjerdrums vei 16 A, 0484 OSLO. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Find Character in a string
One suggestion: If you know there will be only one "" in the string: cfif listlen(string,"") GT 1 cfoutput#Listlast(string,"")#/cfoutput cfelse The string didn't contain "" /cfif rgds || Holger Lockertsen - [EMAIL PROTECTED] || Sentralbord: +47 23 00 53 00 || Direkte: +47 23 00 53 04 || Mobil : +47 91 83 20 51 || http://www.pixelduck.com/ -Original Message- From: Brian Thornton [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 11:10 AM To: CF-Talk Subject: Find Character in a string Anyone know of the best way of say finding a "" and the doing something with anything after it What's the quickest dev. wise for doing this There's a million way to do the same thing .brian ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Javascript turned off
If you have a template where javascript would cause problems then why have javascript there in the first place? It is not possible to alter security settings in the browser... fortunately. :) rgds || Holger Lockertsen - [EMAIL PROTECTED] || Sentralbord: +47 23 00 53 00 || Direkte: +47 23 00 53 04 || Mobil : +47 91 83 20 51 || http://www.pixelduck.com/ -Original Message- From: Larry W. Virden [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 2:27 PM To: CF-Talk Subject: Re: Javascript turned off Is there a way, from a web page, to turn OFF a user's javascript, in the case where a server knows that it will cause problems... -- Larry W. Virden URL: mailto:[EMAIL PROTECTED] URL: http://www.purl.org/net/lvirden/ Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Dynamic Image Resize
Why would you want that? - Unless you want truly crappy-looking images? Although it surely can be done, there's only one way of doing this nicely - and that is to use flash. rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ -Original Message- From: Tim Bahlke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 4:00 PM To: CF-Talk Subject: Dynamic Image Resize I have seen a script before that enables images to resize as the user resizes their browser window. Does anyone have a snippet of code that can do this? Thanks, Tim Bahlke ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Detecting a mac
Try this: cfif cgi.http_user_agent CONTAINS "mac" AND cgi.http_user_agent CONTAINS "msie 5.5" cf_dosomething /cfif * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 7:13 PM To: CF-Talk Subject: OT: Detecting a mac Anyone know of a way to detect a Mac with IE 5 when they hit your web page? Thanks, Chad ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Detecting HTTP_USER_AGENT
Use CONTAINS instead of EQ or IS in your CFIF-statement. You might also want to add the prefix "cgi." to the variable #http_user_agent#. That is #cgi.http_user_agent#. I believe it's a good practice to tell CF that it is a cgi-variable, or else CF has to find out. #http_user_agent# could be #URL.http_user_agent#, #FORM.http_user_agent#, #session.http_user_agent# and so on... rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ -Original Message- From: Richard L Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 4:41 PM To: CF-Talk Subject: Detecting HTTP_USER_AGENT Hello: Does any one know of a way to use HTTP_USER_AGENT to do page redirects with CF? I am trying to get a template to output code based on the browser type NS or MSIE so far nothing seems to work. Here's the code i am using so far cfset "brow" eq "#HTTP_USER_AGENT#" cfif "brow" eq "Mozilla/4.7 [en]" cflocation url="index.cfm" cfelseif "brow" EQ "Mozilla/4.01 (compatible; MSIE 4.01; Windows NT)" /cfif Thanks Rick ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Great idea Adam! [Was: Re: Adam, you got to be kidding?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 4:10 PM To: CF-Talk Subject: Re: Great idea Adam! [Was: Re: Adam, you got to be kidding? Please ... I just checked Webtrends for browser types hitting our site and 98% of all browsers are NN 4+ and IE 4+ ... with the over 60% being IE 5. With a sample of over 5 million hits. So? You really are going to tell the website owner to ante up another X thousands of dollars to develop downward browser capability? Not to mention the cost of maintaining the various website variants. Browser-compatibility is not an extra cost in our project-budgets, as I don't expect wheels to be an extra cost when I buy a car. Let me see ... you could lose one or two sales to the 2% of browser that don't support scripting/have scripting enabled ... or you spend 50K and capture them. If you develop the application with cross-browser compatibility in mind, there is no extra cost. One of our developers actually developed a site that depended on cookie and javascriptenabled browsers - without me knowing. When the customer got the first complaint from a user, who had to spend a day rewriting on our expense? I did. - Of course. It wasn't difficult to make the site work with no javascript and cookies. - If it was done in the first place, there wouldn't have been an extra day of rewriting either. Cost verus payoff? In this case we had to bare the cost of not doing the job properly. Ohhh, and let me guess ... you also develop non-cookie-based/non-session-based site variants also! Cha Ching! Whenever it's possible, yes. In some cases where advanced login is required, it is difficult though... And don't even think about all the people who can't read English? Let me see 2% of the people speak Yiddish ... so let's spend 50K to present our site in Yiddish? I don't think you are serious in this comparison, so I won't comment this. You got to be kidding! Nope... God how I WISH I could depend on a user having javascript and cookies enabled, but then again - I wish for world peace as well... Have a nice day! rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Action on image
Is this what you're looking for? On the template where you're viewing the image: img src="template.cfm" border=0 On template.cfm: some cfcode /some cfcode cflocation url="theimage.gif" addtoken="no" rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ -Original Message- From: Albert K Arhin [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 9:36 AM To: CF-Talk Subject: Action on image Hi All, How do i add a cfm action on an image. Thanks ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Adam, you got to be kidding?
How do you explain that to an important customer when a user with a javascriptdisabled browser who tried to submit a feedbackform couldn't get it to work, and phoned the company complaining about it? I agree that some funcionality can and should be done on the clientside using javascript, but I always develope webpages with basic functionality that everyone can use. Submitting a form is in my mind considered basic functionality. Crossbrowser-compatibility is not only a question of brand, but of version and enabled options as well. rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * +47 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 2:15 PM To: CF-Talk Subject: Adam, you got to be kidding? You actually develop with the mindset that a user might not have scripting enabled? Ouch! My guess would be that at a minimum, 98% of all users have scripting enabled. So, you would forfeit the capability of client-side data validation, client-side DOM manipulation, etc.? You would add unneeded round trips to your server to accomplish scripting, validation, etc.? So 98% of your users will pay the Performance price for the 2% of your users? Not to mention the extra load on your server and the wasted bandwidth. Not a good idea ... Please! Bill Reichard Willow Gold [EMAIL PROTECTED] http://www.willowgold.com ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: string to number
You want this: CFSET Grp = form.adult + form.children When setting quotes around it, CF assumes it's a string. rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ -Original Message- From: Steve Doran [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 2:36 PM To: CF-Talk Subject: string to number I am trying to get a variable to work that would tell me how many rooms a person would need if they has X amount of people in their party. Here is the Code I am working with: CFSET Grp=("form.adult + form.children") CFSET SmRmRq=0 CFIF Grp LTE 4 CFSET SmRmRq=1 CFELSEIF (Grp GTE 5) and (Grp LTE 8) CFSET SmRmRq=2 CFELSEIF (Grp GTE 9) and (Grp LTE 12) CFSET SmRmRq=3 CFELSEIF (Grp GTE 13) and (Grp LTE 16) CFSET SmRmRq=4 CFELSEIF (Grp GTE 17) and (Grp LTE 20) CFSET SmRmRq=5 CFELSEIF (Grp GTE 21) and (Grp LTE 24) CFSET SmRmRq=6 CFELSEIF (Grp GTE 25) and (Grp LTE 28) CFSET SmRmRq=7 CFELSEIF Grp GTE 29 CFSET SmRmRq=8 /CFIF The problem I am having is when you output grp it gives you the total of form.adult + form.children. But when you use grp to set the variable SmRmRq it goes to a string "number + number" and will not accurately convert the variable. Is there a way to change the grp to a number? In Javascript It would be something like Var = (parseInt(form.adult) + parseInt(form.children)) Thanks in advance for any assistance, Steve Doran :) ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
cfcache action=flush
Ok here's the deal... We host a website. We use cfcache cachedirectory="thedir" on the index-page and the page that views articles based on an URL.id - simple and easy, and it works nicely. Ok... Now the customer changes the dynamic content on these pages and needs to update the cached pages. I first implemented the old way of doing it - deleting the tmp-files in the cachedir, but I suspect this caused a bit load on the server, as the pages would be updated quite often during a workday. Then I discovered action="flush". This does flush the pages quite nicely, BUT only if the physical template has changed! It appears that it doesn't catch that when the dynamic content has changed it should change the tmp-file. It only works if the template is resaved before flushing. Could anyone shed some light on this subject? Anyone using cfache the way I'm trying to? Anyone ran into problems? The templates makes use of rather heavy queries, and the site has a lot of traffic. First the heavy queries had the server going slow in the busy hours, and this was resolved after applying cfcache. However, we have experienced a problem with the CF-server being unstable after this. Since deleting the tmp-files with cffile was not recommended, I hoped that cfcache action="flush" directory="http://www.theurl/cache/" would solve it... TIA, rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * +47 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Kooky Form Field/List question.
-Original Message- From: Hayes, David [mailto:[EMAIL PROTECTED]] fields. Make sense? I was hoping I could do something like this: cfloop index="test" list="#FORM.fieldnames#" delimiters="," #test# : #FORM.#test## br /cfloop Yeah, but I can't. Any thoughts? Do #evaluate(test)# instead of #FORM.#test##. like this: #test#: #evaluate(test)# rgds * Holger Lockertsen, Solutions Developer * Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] * http://www.pixelduck.com/ ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: hey I can't see my posts
-Original Message- From: Tom Rainey [mailto:[EMAIL PROTECTED]] If you're reading this would you please respond to [EMAIL PROTECTED] please. I can't see any of my posts and I need a reality check. Who doesn't...? :) * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Problem with Query command
In your guestbook-database you should have a primary key; a field that identifies each record in the database. In this example, this is "The_ID": cfquery name="guest" datasource="YourDatasource" SELECT The_ID, TheTitle, TheText (Replace these with your actual fieldnames) FROM YourTable ORDER BY The_ID /cfquery If you append DESC to the order by-line, then the records will be sorted with the last records first. The max()-function in SQL is only designed to get the highest value of one field. Useful for getting the ID of the last record added to the database. rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Splash! Designs Ink. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 23, 2000 6:33 AM To: [EMAIL PROTECTED] Subject: Problem with Query command Hello, I am new to Coldfusion, and have been working on a simple guestbook. I followed through the tutorials that came with CFExpress and had no problems setting up a database, form and outputting the data until I tried to format the data in descending order (last entry to the first entry). I tried some create ways with CFSET counting the total records, then tried using CFQUERY STARTROW , but this didn't work. I read through all of the various CFML commands tried to find one that would do this. Finally, I resorted to SQL commands and found ORDER BY ASC/DESC. This, however, only worked when a field name was given, so I gave up decided to look at someone else's CFML guestbook. I found one located at: http://www.iiseutu.fi/cfdocs/Docs/UGuide/UserGuide.htm In the action page, there was reference to the automated ID in the database, but when I tried to run this code, I got the error message ODBC Error Code = 07001 (Wrong number of parameters) SQL = "SELECT MAX(guestbook_ID)AS ID FROM guestbook" The code that in error is: CFQUERY NAME="GetEnteredRecordID" DATASOURCE="GFGuestbook1" SELECT MAX(guestbook_ID)AS ID FROM guestbook /CFQUERY Can anyone shed some light on this problem? I'm running CFExpress locally and have had no problems with the basic forms. Thanks so much, Kristin Thu [EMAIL PROTECTED] -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Remote Monitoring
Take a look at ipMonitor from Mediahouse (http://www.mediahouse.com/) Works fine for us. * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: David Clay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 16, 2000 3:18 PM To: [EMAIL PROTECTED] Subject: Remote Monitoring This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=_8ED69BB4.C5A4CBB5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Anyone know of a good mid-priced product to monitor CF and IIS remotely. Thank you for your time. Dave Clay Internet Facilitator Trus Joist, A Weyerhaeuser Business 5995 Greenwood Plaza Blvd, Suite 100 Greenwood Village, CO 80111 303.770.8506 --=_8ED69BB4.C5A4CBB5 Content-Type: text/plain Content-Disposition: attachment; filename="David Clay.vcf" BEGIN:VCARD VERSION:2.1 X-GWTYPE:USER FN:Clay, David TEL;WORK:(303) 967-1558 ORG:;Engineering Automation Group TEL;PREF;FAX:(303) 770-8506 EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED] N:Clay;David TITLE:Web Facilitator X-GWUSERID:clayd END:VCARD --=_8ED69BB4.C5A4CBB5-- -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CSS2
a href="link.html" style="color: #00"Link/a That way you can specify the color on one specific place... OR: Specify another class in your stylesheet: A.alternate {color: #00;} Then use a href="link.html" class="alternate"Link/a * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Scott M. Berry [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 11, 2000 10:50 PM To: [EMAIL PROTECTED] Subject: SOT: CSS2 Ok.. just getting into using CSS for all my sites, seems the logical way to go. Question: Often times I will use two different colors for links... the link color in the body, and then on some links I will specify colors like: a href="link.html"font color="#00"Link/font/a How would this be accomplished in css? Scott M. Berry -- College of the Canyons Web Design 661.259.7800 x3630 http://www.coc.cc.ca.us -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: A replace question
Remove "..\" this way: cfif string CONTAINS "..\" cfset string = Replace(string, "..\", "", "All") /cfif Serving MP3's on the web is illegal you know... ;-) * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Russel Madere [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 10, 2000 5:45 PM To: CF Talk Mailing List Subject: A replace question How can I dynamically convert: d:\songs\..\drip\manual.txt to: d:\drip\manual.txt or: d:\Songs\Music\K\..\B\Buffett, Jimmy\Song.mp3 to: d:\Songs\Music\B\Buffett, Jimmy\Song.mp3 ? I'm having a complete brain lapse! Russel Madere, Jr. Web Developer TurboSquid "Be good and you will be lonesome. Be lonesome and you will be free. Live a lie and you will live to regret it." Jimmy Buffett That's What Living Is To Me -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Need help reducing the number of queries
Art. If this is a standard parent/child table of categories, you should look at CFX_MakeTree - You find it in the Tag-gallery. Or even CFX_fMakeTree which is the same as CFX_MakeTree but displays how you sort the query. The tag will make a tree based on all your categories. Rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Art Broussard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 10, 2000 4:52 PM To: [EMAIL PROTECTED] Subject: Need help reducing the number of queries I need to query my table to find all my categories. I output that category name and then query to find all of its subcategories. I output that subcategory name and then query to find all of its subsubcategories. I output that and then query to find all my products that are in that subsubcategory. I then keep going back up a level until all the cats subcats and subsubcats with products have been listed. If I have 8 categories and each category has at least 3 subcategories and each subcategory has at%20least 3 subsubcategories and all subsubcategories have products in them I end up with a very long time to wait for the page. Is there ANY way to do this faster with out doing a verity search It's killing me. The output ends up like this visual aid:) category subcategory subsubcategories product subsubcategories product subsubcategories product subcategory subsubcategories product subsubcategories product subsubcategories product subcategory subsubcategories product subsubcategories product subsubcategories product category subcategory subsubcategories Thanks Art Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Stripping characters from the beginning of a string...
On the action-page: cfif left(FORM.string, 4) IS "the " cfset FORM.string = RemoveChars(FORM.string,5,len(FORM.string)) cfelseif left(FORM.string, 2) IS "a " cfset FORM.string = RemoveChars(FORM.string,3,len(FORM.string)) /cfif * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ -Original Message- From: Howell, Katie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 10, 2000 4:23 PM To: [EMAIL PROTECTED] Subject: Stripping characters from the beginning of a string... Thanks for all the help on the textarea problem...now see if you can help me with this: My client has a database of books. The book titles are stored as "Big Book of Lists, The" or "Big Book of Lists, A" with the The or the A at the end of the string. So, if a person enters "The Big" or "A Big" it doesn't find the book. Do I need to have him change the entries in the database? or is there a way to strip off the The or A when it occurs at the beginning of a string? Katie -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf _talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Error
Can someone help? We have lately seen this message in the server.log: "Warning","TID=542","05/08/00","16:50:07","A request exceeded the timeout. The unresponsive thread count is up to 1. [template]" "Warning","TID=542","05/08/00","16:52:07","A request exceeded the timeout. The unresponsive thread count is up to 2. [template]" "Warning","TID=542","05/08/00","16:56:07","A request exceeded the timeout. The unresponsive thread count is up to 3. [template] Different templates at different times... And I have a suspicion that these are connected with a problem we have had with 100% CPU-load by the CF-server. Has anyone seen anything like it? TIA rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Processing multiple selections from a select list box
On the actionpage: cfloop list="#FORM.dlo_id#" index="id" cfquery name="ins" datasource="YourSource" INSERT INTO YourTable (YourField) VALUES (#id#) /cfquery /cfloop rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Ricq Pattay [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 06, 2000 3:58 PM To: [EMAIL PROTECTED] Subject: Processing multiple selections from a select list box How do I process multiple selections from a list box? My list box is populated with values from a query (see code), and I want the user to be able to select one or more values. I then want to insert the values selected into an Oracle table, along with the user's ID, which is determined elsewhere. Sorry if this is a newbie question, but I can't find ANY info on this topic. Thanks. cfquery datasource="cdev" name="get_del_locn" debug="yes" select dlo_id, dlo_locn from del_locn order by dlo_locn /cfquery ... select name="dlo_id" size ="5" multiple width="150" cfoutput query="get_del_locn" option value="#dlo_id#"#dlo_locn# /cfoutput /select Ricq Pattay [EMAIL PROTECTED] -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: HTML question about spacer GIF's
Dave. He HAS the attribute "border=0" in the tag. That's the problem. Question is: Does Reuben have a stylesheet that defines a border for the TD-tag or even the IMG-tag? On MSIE vs NS: Yes oh yes. I tear my hair off over Netscape at times (that's why I shave my head)... Someone know how NS5 will be different from NS 4.x? Will the CSS-implementation be better? Will the pixel-difference be gone? Have you checked out Mozilla? rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 06, 2000 7:58 PM To: [EMAIL PROTECTED] Subject: Re: HTML question about spacer GIF's You MUST have the attribute BORDER="0" in your img src= tag. Dave = "Technology" is stuff that was invented after you were born. David Hannum Web Analyst/Programmer Ohio University [EMAIL PROTECTED] (740) 597-2524 - Original Message - From: Reuben King [EMAIL PROTECTED] Newsgroups: cf-talk To: [EMAIL PROTECTED] Sent: Thursday, April 06, 2000 11:39 AM Subject: HTML question about spacer GIF's At the risk of sounding like I'm trolling, I really am starting to think Navigator sucks. As far as development goes, IE has always treated me better. Here's my question: I use transparent spacer GIF's to assist in positioning stuff on my page. They work fine in IE, but in Netscrape it insists on putting this stupid 3D bevel around them for some bizarre reason. I've tried setting border="0" in the img tag but this has no effect. Anyone else run into this problem? Here's the code where I'm trying to make this work: table border="0" cellspacing="0" cellpadding="0" tr td height="#attributes.height#"/td /tr /table that was the way it worked fine in IE.. but NS ignored it as it wanted something inside the TD tags. ($#*@!) I could use nbsp; but this will make the TD as high as the base font size of the page.. no good. So, I tried using the image spacer as such: table border="0" cellspacing="0" cellpadding="0" tr td height="#attributes.height#"img src="images/spacer.gif" width="1" height="#attributes.height#" border="0"/td /tr /table I wish I could give a URL where this stuff is at, but alas I'm inside a firewall. TIA for any assistance! (By the way -- are any other CF developers out there frustrated with the suck factor of Netscape? I know IE has its problems, but as far as developing for it, it is my opinion that it is superior. (I guess I just damned my soul saying that g)) -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Help, still having trouble uploading Mac Image Files.
Encountered the same problem here. The workaround was to ask the user to use Netscape instead - because _Microsoft_ Internet Explorer on the Mac didn't work with _Microsoft_ NT... Believe that! rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Talha Rizvi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 05, 2000 2:25 AM To: [EMAIL PROTECTED] Subject: Help, still having trouble uploading Mac Image Files. I want to thank everyone for their suggestions so far, but nothing has worked yet. I'm still having no luck uploading image files to our NT Server from any of our Mac machines using IE. I know what the problem is (IE is encoding them in a mac-binary format that cannot be recognized by NT) and I've tried to adjust the preferences for the jpeg files, but so far I have had no luck. Does anyone know how to get around this monster? Thanks, -Talha -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Help refresh in frame
I do the same by adding '?n=#timeformat(now(),"hhmmss")#' to the templateurl. I always get a fresh page. * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Xing Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 04, 2000 9:07 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Help refresh in frame I think this might work. If you want to use a link to refresh the page but fear the browser might cache the individual pages try the following: Append and pass a bogus url variable containing a unique value to all the frames in your frameset. myframeset.cfm?bogusvar=#UUID()# You will never get the same value returned from the UUID() function. Good for creating absolute unique values. Pretty sure that the browser uses url variable to determine and retrieve the cache file. If the value is always different, it has to create a new cache. Xing Hi, Does anyone know how to completely clear the cache and refresh frame without clicking on the refresh function on the browser? I use 3 meta tags on those pages and it doesn't seem to work. META HTTP-EQUIV="Expires" CONTENT="0" META HTTP-EQUIV="Pragma" CONTENT="no-cache" META HTTP-EQUIV="Cache-Control" CONTENT="no-cache" Cecilia M. Lam Ektron, Inc. www.ektron.com [EMAIL PROTECTED] (603)594-2350 x 211 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Onchange submit
This works great for me... At least in MSIE and NS 4 and above form select name="id" onchange="submit(this)" option value=""id/option /select /form rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Jason Egan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 04, 2000 7:41 PM To: [EMAIL PROTECTED] Subject: RE: Onchange submit I have the same problem, but I am using a form field -- there are three action buttons all named submit -- different values, but the same form name... Shouldn't onblur="form.submit()" work? -Original Message- From: Jay Wigginton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 04, 2000 11:35 AM To: [EMAIL PROTECTED] Subject: RE: Onchange submit I typically would use... form action="submitpagename.cfm" method="post" select name="selectboxname" ONCHANGE="form.submit()" /form Jay -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 04, 2000 7:19 AM To: [EMAIL PROTECTED] Subject: OT: Onchange submit I want a form to be submitted when the user makes a change in a select box. The form name is "Employeeform". This doesn't work: SELECT NAME="PayType" ONCHANGE="document.Employeeform.action='index.cfm'; document.Employeeform.submit()" Why? Gene Kraybill -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: session disable
If you are disabling sessionvars on a particular page, then you can use: cfset exit = StructClear(session) rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Uday Pai [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 05, 2000 10:18 AM To: CF-Talk Subject: session disable Hi, Can anyone tell me How to disable session when user goes to back page uday -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Can I CFLOOP this?!?!?
This would do it I guess... cfset ques1=0 cfloop from="1" to="37" index="i" cfset ques1 = ques1 + evaluate("DIRCOUNT" i ".CNT" i) /cfloop rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: Charles James S CONT CNIN [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 05, 2000 2:53 PM To: '[EMAIL PROTECTED]' Subject: Can I CFLOOP this?!?!? Hi again all!!! Is there any way I can loop this to count? I'm just wanting to count the value of these variables together!!! CFSET ques1 = #DIRCOUNT1.cnt1#+#DIRCOUNT2.CNT2#+#DIRCOUNT3.CNT3#+#DIRCOUNT4.CNT4#+#DIRCOUN T5.CNT5#+#DIRCOUNT6.CNT6#+#DIRCOUNT7.CNT7#+#DIRCOUNT8.CNT8# Actually, I have 37 variables to do with this Any help would be greatly appreciated!!! Jim Charles Dyntel Corp. Code 06 Computer Support - Building 1 Naval Surface Warfare Center (812) 854-3207 [EMAIL PROTECTED] -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: query.recordcount woes...
If the recordcount of the query is 0, I don't think the code between the cfoutput-tags is processed. A better way to do it is: query name="checklogin" datasource="TheSource"TheQuery/query cfif NOT checklogin.recordcount cflocation url="login.cfm?task=loginfailure" cfelse cflocation url="Main.cfm?UserID=#checklogin.UserID#" /cfif rgds * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ NB! Horisont har fått nye nummer, og mitt INTERNNUMMER er: 23 31 03 04 -Original Message- From: McDonald, David [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 05, 2000 3:15 PM To: '[EMAIL PROTECTED]' Subject: query.recordcount woes... I have been trying to set up a username and password login, which is working okay, except for the "failed login" scenario. The cfif tag does not execute the cflocation tag for a failed login (ie. query.recordcount is 0). I'm lost as to why. Here's my code (called from a previous template form supplying the username and password variables): cfquery datasource="fln" name="CheckLogin" SELECT UserID, Username, Password, FirstName, LastName FROM User WHERE cfif Username is not ""Username='#Username#'/cfif AND cfif Password is not ""Password='#Password#')/cfif /cfquery cfoutput query="CheckLogin" maxrows=1 cfif CheckLogin.recordcount is 0 cflocation url="login.cfm?task=loginfailure" cfelse cflocation url="Main.cfm?UserID=#UserID#" /cfif /cfoutput If the recordcount is not equal to 0 (successful login), it works beautifully, but if the recordcount is 0 (failed login), the cflocation url="login.cfm?task=loginfailure" code does not execute, it simply returns a blank page (with the cf server info displayed). Anyone help me with this? It seems very straightforward but has me stumped. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Increased CPUload
We are running CF on a dual processor Intel-machine. I finally upgraded from 4.01 to 4.5 and everything seemed to work nicely, but we have experienced a dramatic increase in CPU-load by the cfserver. Does anyone know of any issues with this? * Holger Lockertsen, Solutions Developer, Horisont Information Systems AS * Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway * 23 31 03 04 / 91 83 20 51 * [EMAIL PROTECTED] http://www.horisont.no/ -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.