Re: CFEclipse Setup Question

2007-02-04 Thread Charlie Griefer
it on. i'm a creature of habit, and have gotten used to Eclipse/CFE as is :) -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you

Re: CFEclipse Setup Question

2007-02-03 Thread Charlie Griefer
1) not sure 2) add the pane (perspective) to the fast view...this will minimize it to an icon on the side of the screen (not sure which side by default, but I end up dragging it to the left side). clicking the icon will open it. clicking anywhere else (like back in the editor after you've opened

Re: error in cfscript

2007-02-02 Thread Charlie Griefer
all var scoped variables must be at the top of a function. you're var'ing the_type, then you're doin ga conditional...then more var'ing. that conditional either has to come after the vars...or var everything to an empty string (or 0) at the top...then set later. On 2/2/07, daniel kessler [EMAIL

Re: problems with cfscript functions

2007-02-02 Thread Charlie Griefer
you do know there's a built-in daysInMonth() function, yes? :) On 2/2/07, daniel kessler [EMAIL PROTECTED] wrote: I made two cfscript functions. I cfinclude them. They seem to work fine, but now that I have them where I want them, I'm receiving an error that didn't previously show:

Re: problems with cfscript functions

2007-02-02 Thread Charlie Griefer
altho the built in function takes a full date object as an argument (so as to handle february months...needs the year to be able to determine leap year or not). On 2/2/07, Charlie Griefer [EMAIL PROTECTED] wrote: you do know there's a built-in daysInMonth() function, yes? :) On 2/2/07, daniel

Re: previous date

2007-02-01 Thread Charlie Griefer
dateAdd('d', -1, now()) day(dateAdd('d', -1, now())) On 2/1/07, Orlini, Robert [EMAIL PROTECTED] wrote: I using #DateFormat(Now(),dd)-1# to get a previous date. However, using it today it gives me the previous date of 0 as opposed to 31. How do I get it to generate the previous date as the

Re: EQ vs IS

2007-01-31 Thread Charlie Griefer
On 1/31/07, Rick Root [EMAIL PROTECTED] wrote: I must be backwards, because I use is for numeric comparisons and eq for all others. dude that's just wrong. :) -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand

Re: Referring to a specific field in a query

2007-01-30 Thread Charlie Griefer
alias one (or both of) the column names in the query. CF knows nothing about the tables (so you can't do #queryname.tablename.column#). On 1/30/07, Nathan C. Smith [EMAIL PROTECTED] wrote: Hi All, I have two queries that have some overlapping names that I am using in a cfoutput together (CF

Re: odd query issue returning 0 results in CFMC 7.2

2007-01-30 Thread Charlie Griefer
how are you sure it's the same query? are there variables involved in the CFMX code? are you sure those variables are evaluating to what you expect? On 1/30/07, Steve Dworman [EMAIL PROTECTED] wrote: i have a query that returns results when using sqlplus. however, when i run the same query

Re: odd query issue returning 0 results in CFMC 7.2

2007-01-30 Thread Charlie Griefer
d'oH! :) On 1/30/07, Steve Dworman [EMAIL PROTECTED] wrote: problem solved. forgot to commit new database changes. well...i took a look at the query in the debugging info. then i took that query, which has the coldfusion variables parsed already, and ran it on the command line. so

Re: CFset problem

2007-01-30 Thread Charlie Griefer
wrap qryHighestNum.highestNumber in a val() in the event that the argument is an empty string, val() will it as a zero. so: cfset nextReqNumber = val(qryHighestNum.HighestNumber) + 1 / On 1/30/07, Melissa Weber [EMAIL PROTECTED] wrote: I've very new to ColdFusion and need some help. I've

Re: JS Assistance

2007-01-30 Thread Charlie Griefer
in the popup (on the form's action page). [ code to insert stuff into database ] script type=text/javascript opener.reload(); self.close(); /script On 1/30/07, Bruce Sorge [EMAIL PROTECTED] wrote: Hello all, I suck at JS and need a little assistance. I have an edit form that checks

Re: JS Assistance

2007-01-30 Thread Charlie Griefer
ah wait... need to get information from the popup form into the opener... will reloading the opener show the new info? On 1/30/07, Charlie Griefer [EMAIL PROTECTED] wrote: in the popup (on the form's action page). [ code to insert stuff into database ] script type=text/javascript

Re: Quick Question: Should I lock Session Scope Reads in MX 7

2007-01-30 Thread Charlie Griefer
If race conditions shouldn't be a problem, there's no reason to lock. Pre-MX, yes. Aside from race condition issues there were issues of memory corruption. Nowadays, you kids have it easy :) (not sure how about determining if the automatic locking is enabled...but assuming i'm not totally off

Re: Quick Question: Should I lock Session Scope Reads in MX 7

2007-01-30 Thread Charlie Griefer
well now we went and gave him conflicting info :) i'm under the impression that, as of MX+, locking is only necessary in instances where race conditions could occur. he had originally stated that race conditions shouldn't be a concern here. am I understanding incorrectly (don't get me

Re: DailyRazor hosting comments?

2007-01-30 Thread Charlie Griefer
eat a LOT, and some people only eat a small amount. But you can be sure that a restaurant manager would cut someone off were they to make trip after trip. -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies

Re: EQ vs IS

2007-01-30 Thread Charlie Griefer
they're the same. both are comparison operators and since CF is a typeless language, at the CF level it doesn't matter which you use. i do use IS for comparing strings and EQ for anything else, but that's just a matter of preference and has nothing to do with performance. On 1/30/07, David

Re: Odd error when inserting records

2007-01-29 Thread Charlie Griefer
my guess is that the single quote is coming from the first character (the single quote) within the cftry block. what's being caught is the variable value in # signs...but the literal preceding it is not. try this out: cftry cfoutputThis is a #variables.test#!!/cfoutput

Re: cfif vs cfswitch

2007-01-29 Thread Charlie Griefer
be curious to know myself :) -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince with a swift warning

Re: Insert Current Date/Time into SQL DB (CF101)

2007-01-25 Thread Charlie Griefer
)). no need to make CF do any thinking :) -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince

Re: Insert Current Date/Time into SQL DB (CF101)

2007-01-25 Thread Charlie Griefer
to do the insertion. -Original Message- From: Charlie Griefer To: CF-Talk Sent: Thu Jan 25 17:50:02 2007 Subject: Re: Insert Current Date/Time into SQL DB (CF101) On 1/25/07, Tim Claremont [EMAIL PROTECTED] wrote: I have been doing this wrong for years and getting by with it. What

Re: Insert Current Date/Time into SQL DB (CF101)

2007-01-25 Thread Charlie Griefer
to make CF do any thinking :) -- Charlie Griefer ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http

Re: Insert Current Date/Time into SQL DB (CF101)

2007-01-25 Thread Charlie Griefer
On 1/25/07, Paul Hastings [EMAIL PROTECTED] wrote: Charlie Griefer wrote: I've not done much with i18n, so I'm not really familiar with the pros/cons of using getUTCDate() vs getDate(). Could you throw out a few bullet points? using UTC datetimes isn't really i18n. it's used if you need

Re: Best resource for learning Flex?

2007-01-25 Thread Charlie Griefer
i've not made it all the way thru yet, but i think this is a great resource: http://www.totaltraining.com/prod/adobe/flex2_ria.asp On 1/25/07, Doug Brown [EMAIL PROTECTED] wrote: Any suggestions? Doug B. ~| Upgrade to

Re: SOT - Google Map API

2007-01-24 Thread Charlie Griefer
On 1/24/07, Bruce Sorge [EMAIL PROTECTED] wrote: Anyone use the Google Map API yet? I am getting ready to integrate it into a site I am working on and was wondering if anyone has used it and what they though. check out http://tutorial397.easycfm.com/ -- Charlie Griefer

Re: CFEclipse / Eclipse question

2007-01-23 Thread Charlie Griefer
out his blog: http://carehart.org/blog/client/index.cfm/fusiondebug -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger

Re: Image size

2007-01-23 Thread Charlie Griefer
CFX tags go back quite a ways. In the pre-MX days (when CF was written on C++), they were generally compiled C++ code. On 1/23/07, Chad Gray [EMAIL PROTECTED] wrote: It depends on the CFX. You can load CFXs in 4.5 but it does not mean that all CFXs will run on 4.5. -Original

Re: CFSELECT Question

2007-01-23 Thread Charlie Griefer
cfselect query=qStates display=state_abv value=state_id selected=#qUserInfo.State_ID# i'm not a cfform user, so i'm not sure about the pound sign usage there. On 1/23/07, Bruce Sorge [EMAIL PROTECTED] wrote: Hello list, With the HTML SELECT tag, I can populate the option with a query (for

Re: Inserting current date into a data table

2007-01-23 Thread Charlie Griefer
. creating bind variables to increase performance is another :) -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener

Re: Inserting current date into a data table

2007-01-23 Thread Charlie Griefer
On 1/23/07, Judah McAuley [EMAIL PROTECTED] wrote: Charlie Griefer wrote: don't forget that preventing SQL injection attacks is only one benefit of cfqueryparam. creating bind variables to increase performance is another :) Fair enough, although I believe that this is true only

Re: Problems with a query

2007-01-22 Thread Charlie Griefer
the value coming from the form if the user chooses all states or does not choose a state? -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must

Re: CFML IDE's

2007-01-18 Thread Charlie Griefer
Eclipse/CFEclipse (plus JSEclipse + the Aptana plugin Eclipse is nothing if not extensible) :) On 1/18/07, John Sterrett [EMAIL PROTECTED] wrote: Does anyone have any recommendations for Coldfusion IDE's on Windows platform other than Dreamweaver?

Re: CFML IDE's

2007-01-18 Thread Charlie Griefer
Ballot-box stuffing. Andy's disqualified. Please disregard his response. :) On 1/18/07, Andy Matthews [EMAIL PROTECTED] wrote: www.Editplus.com www.Editplus.com www.Editplus.com www.Editplus.com www.Editplus.com www.Editplus.com www.Editplus.com :) -Original Message- From:

Re: Teratech emails

2007-01-18 Thread Charlie Griefer
they're being posted to cf-talk. personally, i kinda think that if i wanted the teratech weekly newsletter, i'd have subscribed to it. but hey...there's enough civil unrest on cf-talk right now, y'know :) On 1/18/07, Chris Ditty [EMAIL PROTECTED] wrote: Is anyone else getting teratech email

Re: database function

2007-01-18 Thread Charlie Griefer
well you'd be returning a recordset (albeit with one record)...so you can't simply output it. try cfdump var=#getSubpages(3)# / On 1/18/07, Chad Gray [EMAIL PROTECTED] wrote: Hello, I am new to cfc's, functions etc... I have a query that will be used many times and would like to keep the

Re: Advanced Search

2007-01-18 Thread Charlie Griefer
i assume if they select all states then you don't want AND s.stateid=#form.stateid# in the query. so that should be surrounded by a conditional. On 1/18/07, Pete [EMAIL PROTECTED] wrote: Oh just in case anyone is interested - here is a link to the development site:

Re: Multiple DISTINCT

2007-01-17 Thread Charlie Griefer
for! Thank you so much! It just needed to be changed to ... SELECT DISTINCT MONTH(recw_assign_month) AS month, YEAR(recw_assign_month) AS year FROM dbo.tbl_recipe_monthly_winner WHERE (recw_assign_month '') -- Charlie Griefer

Re: Coldfusion array, ArrayFind using built in java methods?

2007-01-15 Thread Charlie Griefer
Not sure about searching the goog, but here's the article in question: http://coldfused.blogspot.com/2007/01/extend-cf-native-objects-harnessing.html good stuff. i bookmarked it :) On 1/15/07, Andy Matthews [EMAIL PROTECTED] wrote: I read something from the FullasaGoog feed on Friday, but now

Re: Required Fields

2007-01-15 Thread Charlie Griefer
give anybody here a lot to go on. -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince with a swift

Re: passing values to cfc's in a dot notation

2007-01-11 Thread Charlie Griefer
it's the order in which the arguments are passed. you can also use name/value pairs: bAuthorized = objSecurity.authorize(user=form.user,groupID=form.groupID); there's also the argumentscollection struct, which is a handy way to do it at times. On 1/11/07, Richard Cooper [EMAIL PROTECTED] wrote:

Re: Any way to specify image size in this code?

2007-01-11 Thread Charlie Griefer
also, try img.width = 200px; not sure...just grasping at straws...but i'm fairly certin that Adrian was right in suggesting the .width and .height properties. now it's just a matter of finding the proper syntax for the values :) On 1/11/07, Josh Nathanson [EMAIL PROTECTED] wrote: Could be

Re: Any way to specify image size in this code?

2007-01-11 Thread Charlie Griefer
googling also suggests that you can specify the height and width as arguments in the new Image() call itself. myFoo = newImage(100,200); http://docs.sun.com/source/816-6408-10/image.htm On 1/11/07, Charlie Griefer [EMAIL PROTECTED] wrote: also, try img.width = 200px; not sure...just grasping

Re: Open a Web Page

2007-01-11 Thread Charlie Griefer
assuming the CFC returns a URL to the calling page... on the calling page, after the CFC call... script type=text/javascript cfoutput window.open('#YOUR_CFC_RESULT_HERE#', 'title', 'new_window_attributes_here'); /cfoutput /script opening a new window is going to be client side JS

Re: Any way to specify image size in this code?

2007-01-11 Thread Charlie Griefer
that should have worked from everything i've been reading. can you copy/paste the resulting JS code from a view source in the browser? On 1/11/07, Rick Faircloth [EMAIL PROTECTED] wrote: Nope... that didn't work, either... -Original Message- From: Charlie Griefer [mailto:[EMAIL

Re: Any way to specify image size in this code?

2007-01-11 Thread Charlie Griefer
also...you're using firebug in mozilla for debugging this, right? RIGHT??? :) On 1/11/07, Charlie Griefer [EMAIL PROTECTED] wrote: that should have worked from everything i've been reading. can you copy/paste the resulting JS code from a view source in the browser? On 1/11/07, Rick

Re: how to make code display as text

2007-01-10 Thread Charlie Griefer
look up HTMLEditFormat() in the docs. Under string functions. On 1/10/07, Daniel Kessler [EMAIL PROTECTED] wrote: I have a web page where I describe how to use bits of code. I don't want the code to enact, but to just display the actual line of code. I thought that changing the file to .html

Re: how to make code display as text

2007-01-10 Thread Charlie Griefer
but that's exactly what HTMLEditFormat() does. it escapes the brackets. can you clarify didn't get that to work? On 1/10/07, daniel kessler [EMAIL PROTECTED] wrote: well I didn't get that to work, at least not right away. But it got me thinking and this did work: lt;cfinclude

Re: GoDaddy Hosting Issue

2007-01-09 Thread Charlie Griefer
that seems...odd. can you just throw a template up there with a cfdump var=#cgi# just for shits and giggles? On 1/9/07, Bruce Sorge [EMAIL PROTECTED] wrote: If anyone plans on using GoDaddy for CF hosting, be careful There are some tags that they do not suport, like CFDUMP. I have in my

Re: GoDaddy Hosting Issue

2007-01-09 Thread Charlie Griefer
cfdump var=#arguments#? see if that works and if so, what it displays. should the variable be spelled exception (as opposed to exeption)? On 1/9/07, Bruce Sorge [EMAIL PROTECTED] wrote: So if I comment out the CFDUMP tag, then all works fine. If I put the #Arguments.Exeption# in a CFOUTPUT, I

Re: JS and Radio Button Issue

2007-01-09 Thread Charlie Griefer
few things i can see would be a problem. you have multiple elements with ids with and without (the radio buttons and the divs). the code below should work. script language=JavaScript function toggle(divToShow) { if (document.getElementById) { if

Re: Output not what I expect

2007-01-05 Thread Charlie Griefer
using a group attribute)? -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince with a swift warning

Re: strange - stumped - need a 2nd pari of eyes

2007-01-04 Thread Charlie Griefer
wow. an image of a rotating baby. cool. so i take it that #id# is supposed to be evaluated, but you're getting the literal string #id? On 1/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All, I've got this form ... FORM action=rotating_baby_image_preview.cfm?id=##id#img=respreview=1

Re: Interesting Date Problem

2007-01-04 Thread Charlie Griefer
gonna need more to go on, i think. using CFMX 7, the following code outputs 1945: cfoutput#createDate(45, 1, 22)#/cfoutput On 1/4/07, Les Mizzell [EMAIL PROTECTED] wrote: Form field requesting a birth date. Person enters 1/22/45 Coldfusion returns 1/22/2045 How can I insure it returns

Re: Issue with not of type numeric when sending value to CFC

2007-01-04 Thread Charlie Griefer
hi dan... just posted to your blog. readers digest version: seems you need to add the record position in the query where you're looping over the query to populate the struct. you had: cfset testStruct[col] = rs[col] / which, for some reason, does not create simple values for the struct

Re: Issue with not of type numeric when sending value to CFC

2007-01-04 Thread Charlie Griefer
Chris: no, he's passing the arguments properly using the argumentCollection. it's a special kind of argument (there's probably a better way to phrase it...) that, when passed in as a struct, is deconstructed into individual argument variables inside the method. On 1/4/07, Christopher Jordan

Re: Issue with not of type numeric when sending value to CFC

2007-01-04 Thread Charlie Griefer
use it to your heart's content (yes, it's available in MX 6) :) On 1/4/07, Christopher Jordan [EMAIL PROTECTED] wrote: Well, that's cool! Is it limited to CF7? or can us lowly CF6 folks make use of it too? -- Charlie Griefer ...All the world

Re: Using Eclipse/CFEclipse

2007-01-03 Thread Charlie Griefer
plugin for CSS, and JSEclipse for JavaScript). Takes getting used to, but I think it's well worth the investment. -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you

Re: Pulling my hair out on a query

2007-01-03 Thread Charlie Griefer
heh. this exact question was posted on the Adobe forums. apparently, 'password' is a reserved word in Access. i couldn't find it on the reserved word list, but the original poster said after enclosing the word Password in square brackets, the query worked. INSERT INTO clients (Client_Name,

Re: Combo Box in CF

2007-01-02 Thread Charlie Griefer
Wouldn't really be a CF thing (unless you do an AJAX implementation, in which case it'd just be CF on the server returning the appropriate options). Also, it's been done using JS and/or AJAX. If you want to do one as a learning experiment, that's cool. But if you're just looking to have one

Re: Combo Box in CF

2007-01-02 Thread Charlie Griefer
Hi Varun: Well, the examples you found may not behave like a true combobox simply because that exact control doesn't exist in HTML. Especially if you're going to be loading 650 options :) I don't know that any of the links I could provide would be any different than anything you saw. Most were

Re: Help with cfx_imagecr3

2007-01-02 Thread Charlie Griefer
just curious, have you checked with eflare? i've used their stuff in the past and found that their support was always second-to-none. On 1/2/07, Doug Brown [EMAIL PROTECTED] wrote: I have the following, but cannot seem to get it to work. Images do not resize. Any help is appreciated.

Re: Help with cfx_imagecr3

2007-01-02 Thread Charlie Griefer
k. not trying to dodge the question...i've just found that when people are having problems with 3rd party software, the 3rd party is usually the best place to get answers since they're the ones that wrote the code. so...not getting an error, but the image isn't resized? On 1/2/07, Doug Brown

Re: Combo Box in CF

2007-01-02 Thread Charlie Griefer
Varun: well, looks like the most options came back with a google search for DHTML Combobox (as opposed to HTML combobox, AJAX combobox, etc). this one looks promising: http://webfx.eae.net/dhtml/combobox/combobox.htm ? On 1/2/07, Varun Dixit [EMAIL PROTECTED] wrote: Brian, Apologies for not

Re: Date Comparison

2006-12-28 Thread Charlie Griefer
http://livedocs.macromedia.com/coldfusion/7/htmldocs/0440.htm On 12/28/06, Nick G [EMAIL PROTECTED] wrote: What is the syntax of finding the difference in years between two date fields? For example I'm selecting a field from a database and trying to find the difference between that and

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
select name=Comments#getLineItems.CurrentRow# onchange=updateText(#getLineItems.currentRow#, 'this.value'); script type=text/javascript function updateText(n, selOpt) { if (selOpt == OUT OF STOCK) { document.formName.elements[QTYShipped + n].value = 0; }

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
just noticed something... change 'this.value' to 'this.options[this.selectedIndex].value' (please) :) On 12/28/06, Che Vilnonis [EMAIL PROTECTED] wrote: Geez. That was fast. Thanks... Testing now... -- Charlie Griefer ...All the world shall

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
...if you're going to use the document.formName notation, make sure you use the actual name of the form instead of 'formName' :D On 12/28/06, Che Vilnonis [EMAIL PROTECTED] wrote: Hmmm. Not working... Does selOpt need another name, dynamic name? -- Charlie Griefer

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
sorry. my bad. remove the quotes from the 'this.options[this.selectedIndex].value' i was having you pass that literal string :\ On 12/28/06, Che Vilnonis [EMAIL PROTECTED] wrote: Hmmm. Not working... Does selOpt need another name, dynamic name? -- Charlie Griefer

Re: Javascript and Dynamic CF Forms

2006-12-28 Thread Charlie Griefer
javascript function. Hope this makes sense? Che -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince

Re: Damnitt!!!! Was CFIF?

2006-12-22 Thread Charlie Griefer
#, /cfif cfif #Trim(arguments.price_option)# eq offer OR #Trim(arguments.price_option)# eq free OR #Trim(arguments.price_option)# eq no_price price = NULL, /cfif -- Charlie Griefer ...All the world shall be your enemy, Prince

Re: openid cfc

2006-12-21 Thread Charlie Griefer
http://openid.net/ On 12/21/06, Christopher Jordan [EMAIL PROTECTED] wrote: What do you mean by openid? I've got a cfc method that obtains the next id for a given table and then either inserts the next record or just returns the id based on a passed in parameter. Is that the sort of thing

Re: Javascript help

2006-12-21 Thread Charlie Griefer
That should work cross-browser, no? it's pretty standard JS syntax. onfocus=statement1; statement2; statement3... as long as each is separated by a semi-colon it should be ok? On 12/21/06, loathe [EMAIL PROTECTED] wrote: No it won't. For that you'll need a function and you'll need to write

Re: Javascript help

2006-12-21 Thread Charlie Griefer
, but will calling the field that way work cross browser? I don't know, I still write it using different techniques. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 4:09 PM To: CF-Talk Subject: Re: Javascript help That should work

Re: grouped output and Mod 2

2006-12-21 Thread Charlie Griefer
set a counter var and increment it inside the inner cfoutput cfoutput group=foo cfset counter = 0 / cfoutput !--- begin inner cfoutput --- cfset counter = counter + 1 / cfif counter MOD 2 EQ 0 do stuff cfelse do other stuff

Re: CFIF?

2006-12-21 Thread Charlie Griefer
try a trim() as well. cfif len(trim(arguments.asking1)) GT 0 or len(trim(arguments.asking2)) GT 0 cfif len(trim(arguments.asking1)) GT 0 AND len(trim(arguments.asking2)) EQ 0 ... (etc) also, just out of curiousity... your first 2 radio buttons aren't named, so aren't passing

Re: evaluating according to a string and a variable

2006-12-20 Thread Charlie Griefer
findNoCase() maybe? On 12/20/06, paul zanini [EMAIL PROTECTED] wrote: I am trying to find for a city name which is stored in a variable (city) (looping thru a list) in a document. The difficulty I have is that I like to add to the variable I am searching for a double quotation that

Re: time/date format in Access

2006-12-20 Thread Charlie Griefer
btw this: cfset month = #dateformat(now(),mm)# cfset year = #dateformat(now(),)# cfset year2 = #dateformat(now(),)# cfset month2 = #dateformat(now(),mm)# cfset day = #dateformat(now(),dd)# cfset day2 = DateFormat(Now(),dd)-1 is easier done as: cfset month1 = month(now()) / cfset month2

Re: evaluating according to a string and a variable

2006-12-20 Thread Charlie Griefer
find(#city#, doc) (or findNoCase()) :) On 12/20/06, paul zanini [EMAIL PROTECTED] wrote: the problem is passing at the same time a string that contains a variable encapsulated with characters. Sure someones has done that before...

Re: time/date format in Access

2006-12-20 Thread Charlie Griefer
forget. As soon as I get this thing running I will revise my poor code habits on this and remember it for future reference. I know some names I'm using would crash SQL. -- Charlie Griefer ...All the world shall be your enemy, Prince

Re: button Values passed different in IE and Firefox??

2006-12-20 Thread Charlie Griefer
try it like so: button name=sub1 type=submit id=sub1 value=1 label=General Information / (move the text inside the tag using the label attribute) On 12/20/06, Les Mizzell [EMAIL PROTECTED] wrote: I have a row of buttons at the top of a form. Depending on which one clicked, a different action

Re: button Values passed different in IE and Firefox??

2006-12-20 Thread Charlie Griefer
Mizzell [EMAIL PROTECTED] wrote: Charlie Griefer wrote: try it like so: button name=sub1 type=submit id=sub1 value=1 label=General Information / Not sure that's going to work because of needed HTML formatting of the text. The text is sized with CSS and centered with CSS as well. Like label

Re: button Values passed different in IE and Firefox??

2006-12-20 Thread Charlie Griefer
!! Looking like it might be better to style a DIV with a link that uses javascript to submit the form, and passes a URL value at the same time to cover the various actions. -- Charlie Griefer ...All the world shall be your enemy, Prince

Re: Best practice to time out application

2006-12-20 Thread Charlie Griefer
wouldn't that just be the applicationTimeout value? On 12/20/06, Bruce Sorge [EMAIL PROTECTED] wrote: Hey, Can anyone tell me what the best way is to time out an application? I have some sites that I want to be able to log the user out after X minutes of inactivity. I recall seeing at a job I

Re: Best practice to time out application

2006-12-20 Thread Charlie Griefer
dammit. i meant sessionTimeout :) On 12/20/06, Dave Watts [EMAIL PROTECTED] wrote: Can anyone tell me what the best way is to time out an application? I have some sites that I want to be able to log the user out after X minutes of inactivity. That's how session variables work, by

Re: Two questions

2006-12-20 Thread Charlie Griefer
On 12/20/06, Richard Colman [EMAIL PROTECTED] wrote: 1) if I want to do a replace where the character to be replaced is a forward or backward angle bracket or then I assume that this will not work: cfset name = replace(#string1#, ,, ALL) why assume? did you try it? -- Charlie Griefer

Re: button Values passed different in IE and Firefox??

2006-12-20 Thread Charlie Griefer
: button value=1 onclick=this.form.mysteryText.value=this.value; this.form.submit();Foo/button button value=2 onclick=this.form.mysteryText.value=this.value; this.form.submit();Bar/button On 12/20/06, Les Mizzell [EMAIL PROTECTED] wrote: Charlie Griefer wrote: sounds like more of a reason to go

Re: Disregard last email

2006-12-19 Thread Charlie Griefer
On 12/19/06, Bruce Sorge [EMAIL PROTECTED] wrote: Hello all, I googled looping through ColdFusion structs but it is still not making sense. http://livedocs.macromedia.com/coldfusion/7/htmldocs/0296.htm -- Charlie Griefer ...All the world

Re: remove time element

2006-12-19 Thread Charlie Griefer
you could keep it in... just set it to 11:59 pm on the oneday variable. cfset today = createDate(year, month, day) / cfset oneday = createDateTime(year2, month2, day2, 23, 59, 59) / (btw, if year, month, and day are your CF variable names...i'd rename those. those are built in functions in CF

Re: OT: javascript to prevent a normal link from working

2006-12-19 Thread Charlie Griefer
return false in your a href tag. a href=# onclick=doFunction(args); return false;foo/a On 12/19/06, Joshua Cyr [EMAIL PROTECTED] wrote: I am playing with YUI and spry and have a fun task of having content from other pages load into a tab system in spry. All is working well so far. Next I

Re: Disregard last email

2006-12-19 Thread Charlie Griefer
missed any? :o) CGI Arguments Attributes Cookie ? -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner

Re: Disregard last email

2006-12-19 Thread Charlie Griefer
On 12/19/06, Charlie Griefer [EMAIL PROTECTED] wrote: On 12/19/06, Christopher Jordan [EMAIL PROTECTED] wrote: It's probably worth mentioning then, that *ALL* of the ColdFusion scopes are structures. Server, Application, Client, Variables, This (in CFCs), Form

Re: Who fixed it so ya can't set a var inside cfswitch?

2006-12-19 Thread Charlie Griefer
why wouldn't you set your variable inside a cfcase? if the variable setting isn't dependent on one of the cfcase values...why are you trying to set it inside of the cfswitch anyway? :) On 12/19/06, Will Tomlinson [EMAIL PROTECTED] wrote: I just tried looping inside a cfswitch and setting some

Re: cfloop: strange error

2006-12-18 Thread Charlie Griefer
#dirlist# is a query object (it's the name you gave your cfdirectory. you need to make a specfic reference to the 'size' column returned by the cfdirectory call. You also need to reference a particular row. you can do cfset file.filesize = dirlist.size /, which will always give you the size of

Re: Disregard last email

2006-12-18 Thread Charlie Griefer
so, just out of curiousity...why do you need this array? you also don't need the evaluate(). you can simply do form[i] (which is -exactly- what you're doing in your conditional where you're testing len(form[i]).). On 12/18/06, Bruce Sorge [EMAIL PROTECTED] wrote: OK, I figure it out so please

Re: CFScript inside a CFC

2006-12-18 Thread Charlie Griefer
, because it's closer in resemblance to the byte code that ColdFusion ultimately parses. Phillip just stated better than I could have. -- Charlie Griefer ...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you

Re: Disregard last email

2006-12-18 Thread Charlie Griefer
) AND LEN(form[i]) and it gets all of the fields with phone just fine, but when I add other fields to it, nothing happens. So since I know the other two fields are not dynamic, how can I exclude them from this so I get only the information I need? Bruce On 12/18/06, Charlie Griefer [EMAIL

Re: Why datediff

2006-12-18 Thread Charlie Griefer
don't believe you need the dateFormat() either. dateDiff doesn't particularly care what format a date's in. cfset number = dateDiff('d', createDate(2006, 12, 12), now()) / On 12/18/06, Jake Churchill [EMAIL PROTECTED] wrote: 1: you don't need # inside cfset unless you're in a string. 2: you

Re: Disregard last email

2006-12-18 Thread Charlie Griefer
missing something basic? On 12/18/06, Charlie Griefer [EMAIL PROTECTED] wrote: cfif ((i IS NOT static_field1) OR (i IS NOT static_field2)) AND (len(form[i]) GT 0) ? On 12/18/06, Bruce Sorge [EMAIL PROTECTED] wrote: Not sure really. What I have are a total of five dynamically named

Re: CFScript inside a CFC

2006-12-16 Thread Charlie Griefer
create myFunction outside of someFunction, but call it from within. CFComponent Name=SomeName CFFunction Name=SomeFunction Output=False ReturnType=String !--- here's where you call it insted of creating it --- cfset myVar = myFunction(someArgument) / /CFFunction

Re: Certification

2006-12-15 Thread Charlie Griefer
On 12/15/06, Neil Middleton [EMAIL PROTECTED] wrote: Does anyone have any opinions on the best ways to prepare for the CFMX certification exams? forta's cfmx exam guide book centrasoft's cf exam buster software only 2 tools you'll need. -- Charlie Griefer

<    5   6   7   8   9   10   11   12   13   14   >