cfx_cybersource
Has anyone used this tag for e-commerce functions? We have it installed but cannot seem to make it try and authorize with anything but the ics2test.ic3.com server. We have changed the parameter for the tag to point to ics2.ic3.com (the live server) but it always still goes to the cybersource test server. We have spoken with cybersource while attempting to make a transaction and they still see us hitting the test server, even though we have specified ics2.ic3.com(the live server). Is there a configuration file that needs to be written, changed, or a registry setting to update or something. Please help. Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc 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: GTE problem
I thought that too, but then i saw the line number on the err message. Line 1 pos 8. I'm assuming those are the only 3 lines of code that he's running. Plus, it's Pete, I'm sure he's debugged enough apps to know to check for that. Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 -Original Message- From: G [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 10:08 AM To: CF-Talk Subject: Re: GTE problem Pete, before you do anything too drastic, check the code ABOVE this statement. If you've mismatched s for example, or left off a #, CF may be pointing you to the line where it realized there WAS a problem, and not necessarily where the problem lies. Trim with Okham's Razor before ya chop with Bunyan's Ax :) Brian - Original Message - From: Pete Freitag [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, August 15, 2001 9:12 AM Subject: RE: GTE problem Ok, must not be a problem with CF5, I'll reinstall, but I'm still very confused as to why this error is getting thrown. Thanks to all who tested this. BTW I am running Win2k Server even though I said NT, I was referring to the version of CF. + Pete Freitag ([EMAIL PROTECTED]) CFDEV.COM ColdFusion Developers Resources http://www.cfdev.com/ -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 9:44 AM To: CF-Talk Subject: RE: GTE problem Hi Pete, I am on a w2k server box with CF5. I cut and pasted that code and it works fine for me. HTH Will Swain Hot Horse Ltd http://www.hothorse.com e: [EMAIL PROTECTED] -Original Message- From: Pete Freitag [mailto:[EMAIL PROTECTED]] Sent: 15 August 2001 14:32 To: CF-Talk Subject: GTE problem Hi, Has anyone had problems with GTE (Greater than or Equal to) on ColdFusion 5 Pro NT? GT, LT, and LTE all work fine, but anytime I try to use GTE I get the following error: Code: cfif 4 gte 2 it works /cfif Error: Just in time compilation error Invalid parser construct found on line 1 at position 8. ColdFusion was looking at the following text: gte Invalid expression format. The usual cause is an error in the expression structure. The last successfully parsed CFML construct was a CFIF tag occupying document position (1:1) to (1:5). I would hate to think this is a bug, please prove me wrong. Thanks +++ Pete Freitag ([EMAIL PROTECTED]) CFDEV.COM ColdFusion Developers Resources http://www.cfdev.com/ ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Pushing VERITY limits
Speaking of verity limits, do these caps also include the new verity spider? The help files in studio do not give a cap limit on the spider. Also, is the verity cap limit by collection? or total docs indexed on the server. Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 -Original Message- From: Mark W. Breneman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 10:02 AM To: CF-Talk Subject: RE: Pushing VERITY limits Is 250,000 documents a hard cap for verity? If, I have CF Ent will document 250,001 not be indexed? Or will it still index 250,001+ but be beyond its optimal collection size? Thanks Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 10:48 AM To: CF-Talk Subject: Re: Pushing VERITY limits Dave, notenough 125-250,000 is not enough. any alternatives to Verity that I should consider? /notenough Thanks, Michael - Original Message - From: Dave Watts [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, August 14, 2001 3:36 PM Subject: RE: Pushing VERITY limits I'm trying to push VERITY (version that is supplied with CF) to its limits. Have anyone tried Verity with hundreds of thousands of text records? Is there a big diffrence with the version supplied on CF 4.5/5? CF 5 actually provides two versions of Verity: the VDK version similar to that in CF 4.x, and the standalone K2 server, which is newly provided in CF 5. From the documentation: The restricted version of K2 Server installed with ColdFusion has document search limits as follows: 125,000 documents (ColdFusion Professional) and 250,000 documents (ColdFusion Enterprise). Macromedia Spectra sites have a limit of 750,000 documents. 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: UDF best practices
It's interesting how ColdFusion 5.0 seems to allow these functions to be saved in a variable scope by referencing the functions as if they were variables [scope.func=func]... rather than by referencing them as if they were functions [scope.func=func() or scope.func()=func()]... well wouldn't scope.func=func() set the new var with the return value of the function? And scope.func()=func() just doesn't make sense. But I wonder whey they didn't allow for us to specify the scope of the function while declaring the function, that makes more sense to me anyhow? something like: function server.myFunction(){} Robert -Original Message- From: Correa, Orlando (ITSC) [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 3:02 PM To: CF-Talk Subject: RE: UDF best practices Ok... that did it... It was saving using the CFSET Evaluate(scopeVar . func = func) syntax that did the trick! It sure is nice not having to include the functions in every single custom tag call... It's interesting how ColdFusion 5.0 seems to allow these functions to be saved in a variable scope by referencing the functions as if they were variables [scope.func=func]... rather than by referencing them as if they were functions [scope.func=func() or scope.func()=func()]... I haven't tested yet what happens when you have a local variable named mylocal and a local function named mylocal... then set server.mylocal=mylocal to see if it saves the variable in server scope or the function in server scope... Does anyone know if this trick is an official behavior of CF5.0 or something along the lines of CFSET server.#myDynVar# = value and something that is not recommended? Thanks again! Orlando -Original Message- From: Bryan LaPlante [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 09, 2001 1:44 AM To: CF-Talk Subject: Re: UDF best practices I am getting pretty good results with saving my udf's in the session scope. see the tutorial at http://www.kcfusion.org/Presentations/cflp.zip Bryan - Original Message - From: Correa, Orlando (ITSC) [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 9:02 PM Subject: RE: UDF best practices | If I have a page request that calls several templates during the | request... | | For Example: | | + application.cfm | + myUDF.cfm | + index.cfm | + cfinclude template1.cfm | + cfmodule template2.cfm | | Should I be able to include myUDF.cfm in the application.cfm file and it | will be available to index.cfm, template1.cfm, and template2.cfm as myUDF()? | Currently I'm getting Error resolving parameter myUDF with this setup when | calling it from template2.cfm... | | If I set server.myUDF = myUDF() in application.cfm I get an The number of | arguments passed to a user-defined function cannot be less than the number | of parameters in its definition. This call to myUDF passes 0 arguments, but | 2 parameters are defined.. So when I pass in two dummy variables | server.myUDF = myUDF('x','x') I get an The symbol you have provided | (server.myUDF) is not the name of a function. in the calling page... Would | I need to make the arguments non-required to make this work properly... | | In this particular case, I'm running this in a hosted environment, so I | don't have access to put them in the /cfide/udf/ folder. | | Any insight would be appreciated... | | Orlando | | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, August 08, 2001 11:40 AM | To: CF-Talk | Subject: RE: UDF best practices | | | You could but what about re-usability outside the application. This is the | reason for the CFINCLUDE of the UDF. There's nothing stopping you from just | putting a UDF in the application.cfm or anywhere on a template. Only | limitation is that a UDF used as part of a CFINCLUDE must be defined before | it's to be used where a page based one can be anywhere on the page (even | after the UDF call). | | At 12:59 PM 8/8/01, you wrote: | Couldn't you just put them in the application.cfm for your application?? | | -Original Message- | From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] | Sent: 08 August 2001 15:11 | To: CF-Talk | Subject: Re: UDF best practices | | | 1. In the admin set the server variables to auto-lock | 2. run the template containing the UDFs before the application runs or on | machine startup. | 3. Set a CFLOCK with a scope of server | 4. Set each UDF to a variable in the scope server | CFSET Server.Test=Test() | 5. Call the UDF on any page without using a CFINCLUDE of it | CFSET name=Server.Test('michael') | | This is slightly slower than having the UDFs in a CFINCLUDE that's included | into the page. It's a better practice to do the following: | | 1. Create a small library of UDF's in a template (i.e. all data validation | in one file and all text manipulation in another). | 2. Save these UDF library templates in the CFIDE/UDF directory. | 3. Use a CFINCLUDE
RE: Reading an XML post
A similar tag which is newer and has more features is the SOXML tag. which can be found at http://www.siteobjects.com/index.cfm?fuseAction=showProducts -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 5:45 PM To: CF-Talk Subject: RE: Reading an XML post If you have the ability to write the URL page they are posting to it is very simple... cfsetting EnableCFOutputOnly=Yes cfif IsDefined(Form.XMLInput) cftry cf_XmlToFromStruct action=XML2Struct input=#Form.XMLInput# output=structXMLIn cfcatch type=any cfoutputbrbrh4Content received from User was not an XML packet, program aborted!/h4/cfoutput cfdump var=#Form.XMLInput# cfabort /cfcatch /cftry !--- The XML packet (if valid) can be processed in structXMLIn --- cfdump var=#structXMLIn# cfelse cfsetting EnableCFOutputOnly=No FORM NAME=myform METHOD=POST TEXTAREA NAME=XMLInput COLS=80 ROWS=20/TEXTAREA /FORM /cfif The cf_XmlToFromStruct tag can be found in the Allaire tag gallery. HTH Dick At 2:57 PM -0700 8/13/01, Zac Belado wrote: One of our customers will start sending us orders using XML. They basically will post the file to a URL in our web server. Using ASP, I can read the contents of the post using Request.BinaryRead. Is there anything similar in ColdFusion? You could use CFFile if it is a local asset or, perhaps easier, use CFHTTP to laod the contents of the file ~~ 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: cf4 cf5 verity
I wouldn't see why not? in the help, under configuring verity k2 server there are two different modes that verity can run in now. The old way VDK and the new improved K2 workhorse. Since they are small sites, I would index them with the old VDK mode and use those collections on the site. Best way to know for sure is to just give it a shot. HTH, Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 -Original Message- From: Rich Wild [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 09, 2001 8:33 AM To: CF-Talk Subject: cf4 cf5 verity As we all know, there is a problem with CF4.5's verity engine and Adobe PDFs created in version 4 and later of Adobe Acrobat - they don't index. Having read around it seems that MM (then Allaire) didn't want to fix it for 4.5 and instead would put the fixed verity implementation into CF5. OK, thats fine - and we know have servers running CF5 using verity happily. But, we also have servers running CF4.5 with lots of small websites on them. We can upgrade these, but this will mean outage that we'd like to avoid if possible. To this end, I'd like to know if its possible to use the fixed Verity from CF5 in CF4.5 Anyone tried this / know if its possible / know how to do it / think I'm a fool? cheers for any help... --- Rich Wild Senior Web Developer --- e-mango.com ltd Tel: 01202 587 400 Lansdowne Place Fax: 01202 587 401 17 Holdenhurst Road Bournemouth Mailto:[EMAIL PROTECTED] BH8 8EW, UK http://www.e-mango.com --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of e-mango.com ltd, unless otherwise explicitly and independently indicated by an authorised representative of e-mango.com ltd. --- ~~ 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: cfset and/or Duplicate() [was:RE: I don't understand session locking :(
here is a test of simple complex values. That statement that the rep told you is false. HTH, Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 cflock scope=session type=exclusive timeout=4 !--- SIMPLE VALUES Passed by value, no duplicate needed.--- cfset session.a = I am A, not B cfset b = empty cfoutputliB:#b#/cfoutput cfset b = session.a cfset session.a = If B was a pointer, I would be showing cfoutputliB: #b#/cfoutput !--- Complex Structure, Duplicate needed --- cfset session.test2 = structNew() cfset session.test2.a = structNew() cfset session.test2.a.str = I am a nested complex structure cfset referenceStruct = structNew() cfset valueStruct = Duplicate(session.test2.a) cfset referenceStruct = session.test2.a cfoutput li REFERENCE STRUCT: #referenceStruct.str# li VALUE STRUCT:#valueStruct.str# cfset session.test2.a.str = No longer a nested complex structure, but a pointer li REFERENCE STRUCT: #referenceStruct.str# li VALUE STRUCT: #valueStruct.str# /cfoutput /cflock -Original Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 12:42 PM To: CF-Talk Subject: cfset and/or Duplicate() [was:RE: I don't understand session locking :( We're right in the throes of this, too. We've been operating under the understanding that using Duplicate() was necessary ONLY when dealing with complex variables. Thus, cfset request.variablename = session.variablename would work fine as long as session.variablename is not complex. NOT SO, says MM Tech Support. Seems like cfset ALWAYS sets a pointer rather than making a copy when dealing with shared-scope variables (session, application, server). I gotta test this out, 'cause we've been having some real serious variable vanishes problems, and this could be it. Sure wish CF worked like it's documented to work. Chris Norloff -- Original Message -- from: David Shadovitz [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] date: Tue, 07 Aug 2001 11:04:21 -0700 But these variables are simple strings (I think str here means string, not structure). There's no need to use Duplicate() for simple CFML variables. You may want to use Duplicate() on the entire Session structure, but not on a string. -David On Tuesday, August 07, Matthew W Jones [SMTP:[EMAIL PROTECTED]] wrote: Yes -Original Message- From: Ken Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:01 AM Subject: RE: I don't understand session locking :( Wouldn't you actually need to use the Duplicate() function here when referencing the session variable? I seem to recall past discussions that the process of making a copy in this way actually only created a pointer to the session variable and left you vulnerable to the locking issue. Using Duplicate(), however, made a true clone of the variable that was free from the locking issues. As in. cfset request.session.strFirstName = Duplicate(session.strFirstName) # !--- lock session and read name/email address --- cflock scope=session type=readonly timeout=30 cfset request.session.strFirstName = session.strFirstName cfset request.session.strLastName = session.strLastName cfset request.session.strEmail = session.strEmail /cflock # ~~ 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: replacing carriage-returns in a db field with commas?
Most SE's will not care about whitespace, and others do not weigh heavily on meta tags anyway. To answer your question though, it is actually recommended that you do not put commas between keywords anyway, simple spaces are recommended. That way you can use different combinations of strings. For example, keywords=white diamond ring will give you both white diamond and diamond ring. This technique is especially useful for inktomi SE's. HTH, Robert -Original Message- From: David Grabbe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 1:17 PM To: CF-Talk Subject: replacing carriage-returns in a db field with commas? 'afternoon everyone, We are storing meta-tag Description and Keyword information for many of our documents in a database (MS-Access 2000), so the meta information can be maintained without having to make changes to a static page. The problem I am running into is that the individual who entered in the Keywords delimited them by hitting the Enter key rather than putting a comma in between...will search engines recognize this? (is it as effective?) If commas are the recommended route, is there a way in SQL (MS Access) to do a global replace on that field and replace all the carriage returns with the normal comma+space delim.? Any pointers would be greatly appreciated! Cheers, David ~~ 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: /// Unable to use wildcard in Verity search
the search is done with *'s on both sides of the search, not % signs. You might also want to make the criteria lowercase or uppercase to kill case sensitivity. CFSEARCH COLLECTION=Directory NAME=SearchDirectory CRITERIA=*#lcase(Criteria)#* HTH, Robert -Original Message- From: Jason Blum [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 12:37 PM To: CF-Talk Subject: /// Unable to use wildcard in Verity search Hi everyone! Here is my simple query for data with which to refresh my collection: CFQUERY NAME=GetData DATASOURCE=MyDatasource SELECT PERSON_ID, FIRST_NAME, LAST_NAME FROM TBL_PERSON /CFQUERY CFINDEX COLLECTION=Directory ACTION=refresh TYPE=Custom BODY=PERSON_FIRST_NAME, PERSON_LAST_NAME KEY=PERSON_ID QUERY=GetData And here is the search CFSEARCH COLLECTION=Directory NAME=SearchDirectory CRITERIA=%#Criteria#% ...all pretty straightforward - and searching is fine. I can search for John Doe, John, Doe, John AND Doe, John OR Mary, etc... But for some reason, I cannot search for %ohn or Jo* Anybody know if I am missing something? Thanks! -J ~~ 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: Put into Reverse
This should work. cfset str = .skrab dna riah tuo evael yehT .sgod etah I cfset newStr = cfloop to=1 from=#Len(str)# step=-1 index=i cfset newStr = newStr mid(str, i, 1) /cfloop cfoutput#newStr#/cfoutput -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 5:25 PM To: CF-Talk Subject: Put into Reverse I'm having difficulties reversing a long string that was written in backward hebrew. which means it was first written from right to left AND opposite (dont ask...) something like: skrab dna riah tuo evael yehT. sgod etah I. I want to get this string back to it's straight form (I hate dogs. They leave out hair and barks.). Reversing all the string won't help, neither will reversing each word and sticking it together (sentences won't be in order). I had limited success when trying to first split the sentences (. as the delimter), but no 100% solution. I know this is doable, because Internet Explorer uses the Visual Encoding, which acts the same (on the same text). ! pleH leahciM ~~ 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: Put into Reverse
I might've misunderstood your first request because I thought that the periods at the end of the reverse request was a typo. But I think I understand now, only the words are reversed and not sentence structure(periods)? Anyway, if they are, here is that code that will keep that in tact. Robert cfset str = skrab dna riah tuo evael yehT. sgod etah I. cfset sentences = arrayNew(1) cfset counter = 1 !--- Loop through Sentences --- cfloop list=#str# index=sentence delimiters=. cfset newStr = !--- Reverse Sentence --- cfloop to=1 from=#Len(sentence)# step=-1 index=i cfset newStr = newStr mid(sentence, i, 1) /cfloop !--- Add the delimiter back --- cfset newStr = trim(newStr) . !--- Add sentence to array --- cfset sentences[counter] = newStr cfset counter = counter + 1 /cfloop !--- Output the sentences --- cfloop from=1 to=#arrayLen(sentences)# index=i cfoutput#sentences[i]#/cfoutput /cfloop -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 5:25 PM To: CF-Talk Subject: Put into Reverse I'm having difficulties reversing a long string that was written in backward hebrew. which means it was first written from right to left AND opposite (dont ask...) something like: skrab dna riah tuo evael yehT. sgod etah I. I want to get this string back to it's straight form (I hate dogs. They leave out hair and barks.). Reversing all the string won't help, neither will reversing each word and sticking it together (sentences won't be in order). I had limited success when trying to first split the sentences (. as the delimter), but no 100% solution. I know this is doable, because Internet Explorer uses the Visual Encoding, which acts the same (on the same text). ! pleH leahciM ~~ 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: Put into Reverse
last one... sorry. change the order of the output of the sentences array. Like this. Robert. !--- Output the sentences --- cfloop to=1 from=#arrayLen(sentences)# step=-1 index=i cfoutput#sentences[i]#/cfoutput /cfloop then that should yield. I hate dogs. They leave out hair and barks. -Original Message- From: Hinojosa, Robert A [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 5:05 PM To: CF-Talk Subject: RE: Put into Reverse I might've misunderstood your first request because I thought that the periods at the end of the reverse request was a typo. But I think I understand now, only the words are reversed and not sentence structure(periods)? Anyway, if they are, here is that code that will keep that in tact. Robert cfset str = skrab dna riah tuo evael yehT. sgod etah I. cfset sentences = arrayNew(1) cfset counter = 1 !--- Loop through Sentences --- cfloop list=#str# index=sentence delimiters=. cfset newStr = !--- Reverse Sentence --- cfloop to=1 from=#Len(sentence)# step=-1 index=i cfset newStr = newStr mid(sentence, i, 1) /cfloop !--- Add the delimiter back --- cfset newStr = trim(newStr) . !--- Add sentence to array --- cfset sentences[counter] = newStr cfset counter = counter + 1 /cfloop !--- Output the sentences --- cfloop from=1 to=#arrayLen(sentences)# index=i cfoutput#sentences[i]#/cfoutput /cfloop -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 5:25 PM To: CF-Talk Subject: Put into Reverse I'm having difficulties reversing a long string that was written in backward hebrew. which means it was first written from right to left AND opposite (dont ask...) something like: skrab dna riah tuo evael yehT. sgod etah I. I want to get this string back to it's straight form (I hate dogs. They leave out hair and barks.). Reversing all the string won't help, neither will reversing each word and sticking it together (sentences won't be in order). I had limited success when trying to first split the sentences (. as the delimter), but no 100% solution. I know this is doable, because Internet Explorer uses the Visual Encoding, which acts the same (on the same text). ! pleH leahciM ~~ 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: javascript vars to cf vars?
here is a tuturial that allows for js vars to be sent to the server for processing, and CF vars back to the client for processing through the use of .gif's. http://www.vboston.com/DepressedPress/Content/ColdFusion/Essays/GIFAsPipe/In dex.cfm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 2:27 PM To: CF-Talk Subject: Re: javascript vars to cf vars? I'm trying to do the same thing, but I have a couple of issues that I can't get around. The big one is that we use frames and that seems to really screw things up. I want to do it passively every time someone views one of our clients pages. I've tried to do it in the application.cfm file, but with the redirects and the frames it messes it up so it doesn't work. Is there a way to gather the information via CF without using JS? Thanks all, Michael Corrigan Programmer Endora Digital Solutions www.endoradigital.com 630/942-5211 x-134 - Original Message - From: Michael Lugassy [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 16, 2001 7:01 PM Subject: javascript vars to cf vars? this might sound stupid but - is it possible to put js vars (like, screen width) into coldfusion vars? ~~ 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: JavaScript Function
HTH, Robert function chkDates(frm){ //get dates subtract 1 from the months. array 0-11 dDate1 = new Date(frm.year1.value, frm.month1.value-1, frm.day1.value); dDate2 = new Date(frm.year2.value, frm.month2.value-1, frm.day2.value); if (dDate1 dDate2){ alert(Your End Date can not be earlier than your start date!); return false; } else return true; } /script -Original Message- From: Jerry Staple [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 9:56 AM To: CF-Talk Subject: JavaScript Function Hi, Could anyone give me advice on the following function? Ive got 2 Select boxes with Years as the value for each,so that the user can pick dates from to etc. ie From select name=YearFrom 1999 up to 2030 to select name=YearTo1999 up to 2030 what i require is a function (Onsubmit) that makes sure that the year to is not less than the year from,throwing up an alert box. Many Thanks in Advance Jerry Staple Web Applications Developer BizNet Solutions 133 - 137 Lisburn Rd Belfast BT9 7AG Tel: +44 (0)28 9022 3224 Fax: +44 (0)28 9022 3223 www.biznet-solutions.com ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Credit Card Processing
Read this eCommerce quick faq to get a grasp on what you are going to need and the amount of time required. http://www.evolt.org/article/Credit_Card_E_Primer/18/12694/index.html Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 3:13 PM To: CF-Talk Subject: Credit Card Processing I have a client that wants to take orders on the internet. I have never done this. It works this way right? 1) Person orders stuff 2) CC info is passed to CC company via a plugin 3) CC company sends approval information back to web site 4) web site tells user if approved or not 5) if CC approved notify a user an order has gone through Then i would create a login application for the user to to collect the order information under SSL. Or i could email the order minus the CC information. How is step 2 encrypted? Does the plugin send the information to the CC company encrypted? The company is currently looking for a CC company to use for phone orders, and internet orders. Any suggestions? Thanks, Chad ~~ 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: CFSET error because of character
cfset dot =tr width=190td/td/tr -Original Message- From: nyon [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 8:40 AM To: CF-Talk Subject: CFSET error because of character Hi, I get an error when using the following statement. cfset dot =tr width=190td/td/tr Only when I remove the character does it work. Any solution ? Nyon ~~ 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: Brainbench certification
i say sure... why not? Personally, I hold merritt in the brainbench scores when interviewing. But don't think of it as a replacement to the macromedia cf exam, that's for sure. I say take them both. Robert -Original Message- From: Joel Parramore [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 1:28 PM To: CF-Talk Subject: Brainbench certification Hello folks, I was going over the Brainbench site and considering if it would be worth it to get their certification for ColdFusion. Any comments on how well-accepted/noticed/regarded/received/etc. (or not) Brainbench certification is? Regards, Joel Parramore ~~ 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: Help with try/catch
I hadn't tried removing the showError attribute. I guess instead of using the showerror attribute, i can simply display all of that information. But show error will close out of any tables and divs and stuff that need to be closed. I just don't understand why it would continue to process and simply not abort right after that. At least I feel better knowing that someone else was able to replicate the problem. Thanks! Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 -Original Message- From: Bryan Love [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 1:16 PM To: CF-Talk Subject: RE: Help with try/catch Interesting... have you noticed that it will work fine if you remove the showerror attribute of the cfabort tag? I assume this is because using SHOWERROR causes the CF server to display a CF page showing the error message, thus processing is not absolutely halted. Go figure :) Bryan Love ACP Internet Application Developer [EMAIL PROTECTED] -Original Message- From: Hinojosa, Robert A [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 9:33 AM To: CF-Talk Subject: Help with try/catch Help me understand this. It is my understanding that cf handles catching errors in a heiarchial manner, like in java or c++, where catching type=database|missingInclude|expression will be caught before type=any or any sitewide error handler. So this is my problem, I have two nested try/catch blocks, one around the include of a db template in the initial processing page catching type=any error, and one inside of the included page catching type=database errors. It seems to work as it's supposed to, well sort of... When the db statement fails, the nested catch statement does catch the error, sets the variables and calls the custom tag to log the error, BUT IT DOES NOT ABORT??? CF continues to process coming out of the template and then being caught by the top level catch typeany statement and then finally aborting. But my problem is trying to understand why it cf didn't abort in the nested catch statement? Am I missing something? Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 CODE: TEMPLATE 1; The initial processing template contains this code. cftry cfinclude template=queries/sql_enterprise_insert.cfm cfcatch type=Any !--- line that gets executed --- cfabort showerror=Application errorbr#cfcatch.message#br#cfcatch.detail# /cfcatch /cftry TEMPLATE 2; The included template contains this code. .. cftry cftransaction cfquery datasource=#request.DSN# name=qEnterpriseInsert INSERT STATEMENT. /cfquery /cftransaction cfcatch type=Database cfset message = Attempting to insert Enterprise row. cfset catch = #cfcatch.message#br#cfcatch.detail# cfset show= There was a problem with this database transaction. Please try again. cfmodule Template=/ct/logError.cfm Key=DATABASE Message=#message# Catch=#catch# !--- LINE IN QUESTION!!! WHY WONT THIS EXECUTE --- cfabort showerror=#show#br#catch# /cfcatch /cftry ~~ 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: resource for re's
There is an article at cfcomet, and there is another one at houseoffusion. cfcomet part I http://www.cfcomet.com/?ArticleID=F0A14065-EF7A-4A9E-AED5F28EF8C19D65 cfcomet part II http://www.cfcomet.com/?ArticleID=AA435AA7-E06A-4389-B34A7B9C818ADE8A Power point presentation at house of fusion. http://houseoffusion.com/RegEx.ppt These should get you started. Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 6:51 AM To: CF-Talk Subject: resource for re's Hi all, Sure this has been done before, but can anyone recommend a good url for learning about regular expressions?? Thanks Will ~~ 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
Help with try/catch
Help me understand this. It is my understanding that cf handles catching errors in a heiarchial manner, like in java or c++, where catching type=database|missingInclude|expression will be caught before type=any or any sitewide error handler. So this is my problem, I have two nested try/catch blocks, one around the include of a db template in the initial processing page catching type=any error, and one inside of the included page catching type=database errors. It seems to work as it's supposed to, well sort of... When the db statement fails, the nested catch statement does catch the error, sets the variables and calls the custom tag to log the error, BUT IT DOES NOT ABORT??? CF continues to process coming out of the template and then being caught by the top level catch typeany statement and then finally aborting. But my problem is trying to understand why it cf didn't abort in the nested catch statement? Am I missing something? Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 CODE: TEMPLATE 1; The initial processing template contains this code. cftry cfinclude template=queries/sql_enterprise_insert.cfm cfcatch type=Any !--- line that gets executed --- cfabort showerror=Application errorbr#cfcatch.message#br#cfcatch.detail# /cfcatch /cftry TEMPLATE 2; The included template contains this code. cftry cftransaction cfquery datasource=#request.DSN# name=qEnterpriseInsert INSERT STATEMENT. /cfquery /cftransaction cfcatch type=Database cfset message = Attempting to insert Enterprise row. cfset catch = #cfcatch.message#br#cfcatch.detail# cfset show= There was a problem with this database transaction. Please try again. cfmodule Template=/ct/logError.cfm Key=DATABASE Message=#message# Catch=#catch# !--- LINE IN QUESTION!!! WHY WONT THIS EXECUTE --- cfabort showerror=#show#br#catch# /cfcatch /cftry ~~ 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: view source tag
You can take a look at the source browser tag, it does a whole lot more than what you are wanting. It was written primarily for fusebox apps but will work with any. info: http://www.bjork.net/taggallery/index.htm demo: http://www.bjork.net/sourcebrowser/index.cfm Robert Hinojosa [EMAIL PROTECTED] 972.243.4343 x7446 -Original Message- From: stas [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 4:42 PM To: CF-Talk Subject: view source tag Hello all, I would like to make an on-demand view-source tag... basically something to include in a footer for debugging - a link that will reprocess the page with all the parameters that were passed to it and output HTML (not interpreted) to the window. The reason I want it is that a regular view-source returns a lot of garbage and doesn't have any color-coding in it. Does something similar exist already so that I can add features to it? 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: Can NOT get INSERT QUERY to work for the live of me!
If Birth_Date is a Date/Time datatype field, then its probably your problem. You can do something like this to correct it. cfset bMonth= Left(form.birth_date, 2) cfset bDay = Mid(form.birth_date, 3, 2) cfset bYear = Right(form.birth_date, 2) cfquery INSERT ... #CreateDate(bYear, bMonth, bDay )#, -- without the surrounding quotes . /cfquery HTH, Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] www.cirrus.com -Original Message- From: Jeremy Toevs [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 31, 2000 11:40 AM To: [EMAIL PROTECTED] Subject: Can NOT get INSERT QUERY to work for the live of me! I can not get my insert query to work, I get the following ERROR MESSAGE: *** Error Diagnostic Information ODBC Error Code = 22005 (Error in assignment) [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (18:1) to (18:44). Date/Time: 08/31/00 09:24:10 Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95) *** Everything in the form is spelled correctly and everything in the database correspondes with the query. So I don't know what is wrong. Here is my CFM page. -- html head titleYour Form Was Successfully Sent/title /head body bgcolor="#FF" link="#CC" vlink="#CC" alink="#CC" text="#FF" cftransaction cfif isdefined("Fashion")cfset Fashion=1cfelsecfset Fashion=0/cfif cfif isdefined("Print")cfset Print=1cfelsecfset Print=0/cfif cfif isdefined("Runway")cfset Runway=1cfelsecfset Runway=0/cfif cfif isdefined("Glamour")cfset Glamour=1cfelsecfset Glamour=0/cfif cfif isdefined("TV")cfset TV=1cfelsecfset TV=0/cfif cfif isdefined("Swimwear")cfset Swimwear=1cfelsecfset Swimwear=0/cfif cfif isdefined("Sportswear")cfset Sportswear=1cfelsecfset Sportswear=0/cfif cfif isdefined("None")cfset None=1cfelsecfset None=0/cfif cfquery datasource="#DSN#" name="AddPerson" INSERT into Person (First_Name, Last_Name, Address, City, State, Zip, Country, Phone, Email, Occupation, Registering_For, Birth_Date, Eye_Color, Hair_Color, Height, Weight, Chest_Size, Neck_Size, Waist_Size, Skin_Tone, Shoe_Size, Experience1, Fashion, Print, Runway, Glamour, TV, Swimwear, Sportswear, None, Agency1, Agency2, Additional_Information, Send_Picture) VALUES ('#Form.First_Name#', '#Form.Last_Name#', '#Form.Address#', '#Form.City#', '#Form.State#', '#Form.Zip#', '#Form.Country#', '#Form.Phone#', '#Form.Email#', '#Form.Occupation#', '#Form.Registering_For#', '#Form.Birth_Date#', '#Form.Eye_Color#', '#Form.Hair_Color#', '#Form.Height#', '#Form.Weight#', '#Form.Chest_Size#', '#Form.Neck_Size#', '#Form.Waist_Size#', '#Form.Skin_Tone#', '#Form.Shoe_Size#', '#Form.Experience1#', '#Fashion#', '#Print#', '#Runway#', '#Glamour#', '#TV#', '#Swimwear#', '#Sportswear#', '#None#', '#Form.Agency1#', '#Form.Agency2#', '#Form.Additional_Information#', '#Form.Send_Picture#') /cfquery /cftransaction cfquery datasource="#DSN#" name="ID" select max(Person_ID) as MaxPersonID from Person /cfquery cfmail from="#Form.Email#" to="[EMAIL PROTECTED]" subject="Registration Form" From #Form.First_Name#: GENERAL INFORMATION Person ID: #ID.MaxPersonID# Name: #Form.First_Name# #Form.Last_Name# Address: #Form.Address# City: #Form.City# State: #Form.State# Zip: #Form.Zip# Country: #Form.Country# Phone: #Form.Phone# Email: #Form.Email# Occupation: #Form.Occupation# Registering For: #Form.Registering_For# MEASUREMENTS AND STATS Birth Date: #Form.Birth_Date# Eye Color: #Form.Eye_Color# Hair Color: #Form.Hair_Color# Height: #Form.Height# Weight: #Form.Weight# Chest Size: #Form.Chest_Size# Neck Size: #Form.Neck_Size# Waist Size: #Form.Waist_Size# Skin Tone: #Form.Skin_Tone# Shoe Size: #Form.Shoe_Size# EXPERIENCE Level: #Form.Experience1# TYPES: Fashion: #Fashion# Print: #Print# Runway: #Runway# Glamour: #Glamour# TV: #TV# Swimwear: #Swimwear# Sportswear: #Sportswear# None: #None# Agency: #Form.Agency1# Agency Name: #Form.Agency2# Add Info: #Form.Additional_Information# Sending Pictures: #Form.Send_Picture# /cfmail Thank you for submitting your information. /body /html -- Well, I guess I need someones help. Thanks again, Jeremy Toevs -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe'
RE: Structures No? Cached Queries Yes?
Billy, Actually benchmark testing shows that it takes longer to set vars when using cfscript compared to when just using cfset. cfscript is only faster on the Development side of things. As for the second question, look at this thread... http://www.mail-archive.com/fusebox@houseoffusion.com/msg01168.html HTH, Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] www.cirrus.com -Original Message- From: Billy Cravens [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 31, 2000 12:31 PM To: [EMAIL PROTECTED] Subject: Re: Structures No? Cached Queries Yes? ewww... I hate long blocks of cfset's :) Use cfscript instead when you have all those cfsets.. that'll speed things up some more. Additionally, a question: I've never had any problems with just sticking data in a structure, but without "creating" the structure using StructNew().. does anyone know what the implications of this are? -- Billy Cravens [EMAIL PROTECTED] paul smith wrote: I got the difference down to 15% by eliminating CFSETs in the Structure version. (Structure still slower.) CFSET STTEMP = STRUCTNEW() !--- temporary structure --- CFSET APPLICATION.YPS = STRUCTNEW() !--- final structure for Headings --- CFLOOP QUERY="GetYPs" CFSET STTEMP["Class_ID"] = "#Class_ID#" CFSET STTEMP["Class_Name"] = "#Class_Name#" CFSET STTEMP["Pages"] = "#Pages#" CFSET STTEMP["NewPages"] = "#NewPages#" CFSET APPLICATION.YPS[STTEMP["Class_ID"]] = STRUCTCOPY(STTEMP) CFSET TMPVAR = STRUCTCLEAR(STTEMP) /CFLOOP -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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: IsDefined help
Just to let you know, if form.name is a text field, it will always pass that field as a parameter. However, it will be an empty string. So you can't check for it by isDefined("form.name") because it does exist, just as an empty string. Try this, cfif Not Len(form.name) CODE /cfif or you could do cfif form.name IS "" CODE /cfif HTH, Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] www.cirrus.com -Original Message- From: Jamie Keane [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 30, 2000 8:14 AM To: [EMAIL PROTECTED] Subject: Re: IsDefined help I don't think so. I know Form.FIELDNAMES is reserved, but that's about it, I think. -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Andy Ewings [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Date: Wednesday, August 30, 2000 8:56 AM Subject: RE: IsDefined help Just a thoughtis Form.name a reserved variable? Try renaming the control and see what happens. -Original Message- From: Jamie Keane [mailto:[EMAIL PROTECTED]] Sent: 30 August 2000 13:56 To: [EMAIL PROTECTED] Subject: Re: IsDefined help What method is the form using? To use the FORM scope a form must use the POST method. -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Joel Blanchette [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Tuesday, August 29, 2000 10:34 PM Subject: IsDefined help This is a multi-part message in MIME format. --=_NextPart_000_0005_01C01200.C3750520 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello everyoneI am having some stupid problems with a simple = command. I am to make a check on a form field and if it is not defined = to write something. i tried the following with no success...Hope = someone can help. CFIF NOT IsDefined("form.name") You forgot your name /CFIF I also tried CFIF IsDefined("form.name") EQ "FALSE" You forgot your name /CFIF but still with no success...Hope someone can help me out!!! Thanks... Joel --=_NextPart_000_0005_01C01200.C3750520 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTMLHEAD META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR STYLE/STYLE /HEAD BODY bgColor=3D#ff DIVFONT size=3D2Hello everyoneI am having some stupid problems = with a=20 simple command.nbsp; I am to make a check on a form field and if it is = not=20 defined to write something.nbsp; i tried the following with no = success...Hope=20 someone can help./FONT/DIV DIVnbsp;/DIV DIVFONT size=3D2lt;CFIF NOT IsDefined("form.name")gt;/FONT/DIV DIVFONT size=3D2nbsp;nbsp;nbsp; You forgot your name/FONT/DIV DIVFONT size=3D2lt;/CFIFgt;/FONT/DIV DIVnbsp;/DIV DIVFONT size=3D2I also tried/FONT/DIV DIVnbsp;/DIV DIVFONT size=3D2 DIVFONT size=3D2lt;CFIFnbsp;IsDefined("form.name") EQ=20 "FALSE"gt;/FONT/DIV DIVFONT size=3D2nbsp;nbsp;nbsp; You forgot your name/FONT/DIV DIVFONT size=3D2lt;/CFIFgt;/FONT/DIV DIVnbsp;/DIV DIVbut still with no success...Hope someone can help me out!!!/DIV DIVnbsp;/DIV DIVThanks.../DIV DIVnbsp;/DIV DIVJoel/DIV/FONT/DIV/BODY/HTML --=_NextPart_000_0005_01C01200.C3750520-- -- - --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ To
RE: IE for Macs and Solaris
you can cfinclude the next template instead of doing a cflocation, Or use Javascript window.location ="someURL". The template that sets the cookie must be process completely for the cookie to set. Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] www.cirrus.com -Original Message- From: Lou Pizzolatto [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 30, 2000 3:25 PM To: [EMAIL PROTECTED] Subject: IE for Macs and Solaris We are having a problem with the cfcookie tag on IE for Macs and Solaris. After creating a new cookie, we use the meta refrsh to load the next page, however Solaris doesn't process the meta tag and IE on the Mac loses the cookie. Any answers as to why this happens or how to get around it. Thanks Lou -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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: Dates
yes Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] www.cirrus.com -Original Message- From: Peter Benoit [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 24, 2000 10:22 AM To: '[EMAIL PROTECTED]' Subject: Dates If I use this? cfset todayDate = Now() cfset ttoday = #DateFormat(todayDate, "m/dd/yy")# Will months with 2 digits appear with 2 digits? IE 10/10/00? thanks, Pete -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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 QUESTION
Put the loop outside the query tag. cfloop list="#SI_Item_ID#" index="TheItem" cfquery name="qgetitems" datasource="#DSN#" SELECT * FROM SI_ITEMS2 WHERE SI_ITEM_ID = #TheITem# AND SI_Opsrpt_ID = #qgetsi.SI_Opsrpt_ID# /cfquery /cfloop Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] www.cirrus.com -Original Message- From: Kelly Matthews [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 10, 2000 12:14 PM To: '[EMAIL PROTECTED]' Subject: QUERY QUESTION Ok I have 2 queries I am running the first is: CFQUERY datasource="#DSN#" name="qgetsi" SELECT * FROM SelfInspection WHERE 0=0 CFIF (IsDefined("form.date1")) AND (IsDefined("form.Date2")) AND SI_dt BETWEEN #CREATEODBCDate(form.date1)# AND #CREATEODBCDate(form.date2)# /CFIF /CFQUERY This runs fine... Next one is: cfquery name="qgetitems" datasource="#DSN#" cfloop list="#SI_Item_ID#" index="TheItem" SELECT * FROM SI_ITEMS2 WHERE SI_ITEM_ID = #TheITem# AND SI_Opsrpt_ID = #qgetsi.SI_Opsrpt_ID# /cfloop /cfquery This seems to run fine but comes back with ONE record when it should come back with THREE: Results: qgetitems (Records=1, Time=0ms) SQL = SELECT * FROM SI_ITEMS2 WHERE SI_ITEM_ID = 19 AND SI_Opsrpt_ID = 5 SELECT * FROM SI_ITEMS2 WHERE SI_ITEM_ID = 13 AND SI_Opsrpt_ID = 5 SELECT * FROM SI_ITEMS2 WHERE SI_ITEM_ID = 15 AND SI_Opsrpt_ID = 5 It only appears to bring back ONE record however it should bring back 3 because ID 5 is in there with item id 19,15 and 13 but it seems to only pick up and display the first one Do I need to change my query Kelly -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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: Setting a Cookie and Redirecting the Browser
Just a thought... You could CFHTTP the content of the desired forwarded page so that the cookie can set. I have done this once, a long time ago, and I remember it working. Hope this helps, Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] -Original Message- From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 3:48 PM To: [EMAIL PROTECTED] Subject: RE: Setting a Cookie and Redirecting the Browser Again, we can't use a META refresh. See either of my earlier posts for an explanation as to why this solution will not work for us. FYI: Adding the HTTP header "Refresh" with the cfheader works well instead of the META refresh if you'd rather not have a page displayed at all. We found that even with a time of 0 that the META refresh was still noticeable because of connection and page rendering lags. Benjamin S. Rogers Web Developer, c4.net voice: (508) 240-0051 fax: (508) 240-0057 -Original Message- From: Brandon Behrens [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 4:34 PM To: [EMAIL PROTECTED] Subject: RE: Setting a Cookie and Redirecting the Browser Been there, done that. I wound up using a meta tag to refresh the page with a time of 0. That was the only way I could get it to work. Brandon Brandon Behrens The Internet Design Firm 512.451.5225 [EMAIL PROTECTED] http://www.theidf.com -Original Message- From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 3:18 PM To: [EMAIL PROTECTED] Subject: Setting a Cookie and Redirecting the Browser Has anyone come up with a plausible way of setting a cookie and redirecting the browser from within a ColdFusion 4.01 template using HTTP headers (as opposed to META tag redirects)? Specifically, we're trying to redirect an image call from the browser. The image fails to load when it comes upon a HTTP "Refresh" header, and the "Location" header seems to negate the setting of the cookie. Benjamin S. Rogers Web Developer, c4.net voice: (508) 240-0051 fax: (508) 240-0057 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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: Setting a Cookie and Redirecting the Browser
There were images on the page. I'm sure that you won't have any issues requesting a single image. It really isn't a burden if it's the cfhttp is done locally. Hope this helps, Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] -Original Message- From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 4:28 PM To: [EMAIL PROTECTED] Subject: RE: Setting a Cookie and Redirecting the Browser Were you able to do this with binary data (a.k.a an image)? We'd prefer not to place the burden of the transaction on ColdFusion, but if it works, then it's a solution. Benjamin S. Rogers Web Developer, c4.net voice: (508) 240-0051 fax: (508) 240-0057 -Original Message- From: Hinojosa, Robert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 5:03 PM To: '[EMAIL PROTECTED]' Subject: RE: Setting a Cookie and Redirecting the Browser Just a thought... You could CFHTTP the content of the desired forwarded page so that the cookie can set. I have done this once, a long time ago, and I remember it working. Hope this helps, Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] -Original Message- From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 3:48 PM To: [EMAIL PROTECTED] Subject: RE: Setting a Cookie and Redirecting the Browser Again, we can't use a META refresh. See either of my earlier posts for an explanation as to why this solution will not work for us. FYI: Adding the HTTP header "Refresh" with the cfheader works well instead of the META refresh if you'd rather not have a page displayed at all. We found that even with a time of 0 that the META refresh was still noticeable because of connection and page rendering lags. Benjamin S. Rogers Web Developer, c4.net voice: (508) 240-0051 fax: (508) 240-0057 -Original Message- From: Brandon Behrens [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 4:34 PM To: [EMAIL PROTECTED] Subject: RE: Setting a Cookie and Redirecting the Browser Been there, done that. I wound up using a meta tag to refresh the page with a time of 0. That was the only way I could get it to work. Brandon Brandon Behrens The Internet Design Firm 512.451.5225 [EMAIL PROTECTED] http://www.theidf.com -Original Message- From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 3:18 PM To: [EMAIL PROTECTED] Subject: Setting a Cookie and Redirecting the Browser Has anyone come up with a plausible way of setting a cookie and redirecting the browser from within a ColdFusion 4.01 template using HTTP headers (as opposed to META tag redirects)? Specifically, we're trying to redirect an image call from the browser. The image fails to load when it comes upon a HTTP "Refresh" header, and the "Location" header seems to negate the setting of the cookie. Benjamin S. Rogers Web Developer, c4.net voice: (508) 240-0051 fax: (508) 240-0057 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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: Setting a Cookie and Redirecting the Browser
Secure/Unsecure??? Depends on what content you are serving up. I personally would not authenticate using cookies, because they can be easily manipulated. I use cookies for tracking purposes only and client/session vars for mostly everything else. If the content is "sensitive", I would really recommend switching to session variables. If you are really uncomfortable using these variables, you can continue using cookies, however I would encrypt their loginID, either using something like #CFusion_Encrypt('#theID#' , 'theKey')#, I prefer this encryption technique rather than the Encrypt() function. You can use what you like. Hope this Helps, Robert Hinojosa WebDeveloper 512.912.3775 [EMAIL PROTECTED] www.cirrus.com -Original Message- From: Jake Hileman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 4:33 PM To: [EMAIL PROTECTED] Subject: Re: Setting a Cookie and Redirecting the Browser That will still let you set the cookie? Also, I'm using cookies for authentication.. once they are authenticated, it sets the cookie and the other pages check for the cookie, if it's not there, it sends them back. Is this a safe way to do things? The whole session, application.cfm thing confuses me... and I don't like the idea of it being stored in ram. Let me know, Jkae - Original Message - From: "Terry Bader" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 08, 2000 5:29 PM Subject: RE: Setting a Cookie and Redirecting the Browser you can also use: SCRIPTlocation="http://URL";/SCRIPT this help? Terry Bader Web Developer EDO Corp - Combat Systems (757) 424-1004 ext 361 [EMAIL PROTECTED] [EMAIL PROTECTED] icq: 5202487 aim: lv2bounce http://www.cs.odu.edu/~bader -Original Message- From: Brandon Behrens [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 4:34 PM To: [EMAIL PROTECTED] Subject: RE: Setting a Cookie and Redirecting the Browser Been there, done that. I wound up using a meta tag to refresh the page with a time of 0. That was the only way I could get it to work. Brandon Brandon Behrens The Internet Design Firm 512.451.5225 [EMAIL PROTECTED] http://www.theidf.com -Original Message- From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 3:18 PM To: [EMAIL PROTECTED] Subject: Setting a Cookie and Redirecting the Browser Has anyone come up with a plausible way of setting a cookie and redirecting the browser from within a ColdFusion 4.01 template using HTTP headers (as opposed to META tag redirects)? Specifically, we're trying to redirect an image call from the browser. The image fails to load when it comes upon a HTTP "Refresh" header, and the "Location" header seems to negate the setting of the cookie. Benjamin S. Rogers Web Developer, c4.net voice: (508) 240-0051 fax: (508) 240-0057 -- -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.mail-archive.com/cf-talk@houseoffusion.com/ 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.