RE: re[2]: [ACFUG Discuss] CSS question

2006-08-21 Thread Dusty Hale
Here is another interesting technique. A tag. Example: . I have not personally used this before but I know it exists. I ran a google search on "spacer tag" and got a lot of info on it. Dusty -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mischa Uppelsch

RE: re[2]: [ACFUG Discuss] CSS question

2006-08-21 Thread Dusty Hale
Also one other thought. Did you try experimenting with the bottom "margin" rather than "padding" using CSS? Dusty -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mischa Uppelschoten ext 10 Sent: Monday, August 21, 2006 6:02 PM To: discussion@acfug.org Sub

RE: re[2]: [ACFUG Discuss] CSS question

2006-08-21 Thread Dusty Hale
The technique for the spacer image is to make a 1px by 1px transparent image and save as a .gif file then using the image tag, experiment with the width and height till desired spacing is achieved. Hope this helps and best of luck. Dusty -Original Message- From: [EMAIL PROTECTED] [mailto:

Re: re[2]: [ACFUG Discuss] CSS question

2006-08-21 Thread Steven Ross
Yeah you can always use the hack for ie/mozilla... html>body #id ie won't read the above line... so you set it normally in ie and reset it for the mozilla browsers. and as always turn on your background colors so you can "see" whats going on On 8/21/06, Mischa Uppelschoten ext 10 <[EMAIL PROTE

re[2]: [ACFUG Discuss] CSS question

2006-08-21 Thread Mischa Uppelschoten ext 10
Thanks for your replies! Using an   as an exact spacer will mess things up for me when a user comes along with a browser set to non-standard font size. Bottom padding seems to work differently in FF and IE as well :( I'll experiment with the spacer graphic. Thx! /m > I see now which block. As

RE: [ACFUG Discuss] CSS question

2006-08-21 Thread Dusty Hale
You may also want to try putting some bottom margin on it through CSS. The tranparent gif though would likely be sure thing if you could live with the old school technique J From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne Sent: Monday, August 21, 2006

Re: [ACFUG Discuss] CSS question

2006-08-21 Thread Teddy Payne
I see now which block.  As Dusty said, a transparent gif is one way.  You could put   into the div to give it a space for text.  You could possibly put a padding bottom on the element above it to push it down or a padding bottom on the outer div.  I would start there.TeddyOn 8/21/06, Dusty Hale <[

RE: [ACFUG Discuss] CSS question

2006-08-21 Thread Dusty Hale
I'm not sure of an immediate solution using CSS but on these occasions I sometimes revert back to old school techniques like a tranparent spacer image or sometimes even write browser specific code. Maybe you could use the transparent gif technique just for firefox? Dusty -Original Message---

re[2]: [ACFUG Discuss] CSS question

2006-08-21 Thread Mischa Uppelschoten ext 10
> Are you referring to your search box? No, sorry, see below for clarification. On 8/21/06, Mischa Uppelschoten ext 10 <[EMAIL PROTECTED] > wrote: I have a div of a certain height in pixels. I have four items I need placed in there: - homepage button (=black and white logo), full height, far l

Re: [ACFUG Discuss] CSS question

2006-08-21 Thread Teddy Payne
Are you referring to your search box?TeddyOn 8/21/06, Mischa Uppelschoten ext 10 <[EMAIL PROTECTED] > wrote:I have a div of a certain height in pixels. I have four items I need placed in there: - homepage button, full height, far left- graphical buttons, top left, adjacent to home page button- piec

[ACFUG Discuss] CSS question

2006-08-21 Thread Mischa Uppelschoten ext 10
I have a div of a certain height in pixels. I have four items I need placed in there: - homepage button, full height, far left - graphical buttons, top left, adjacent to home page button - piece of text, top right - combination of graphical buttons and table based menu system, bottom left, adjace

RE: re[2]: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
That indeed may be true. I did run the code through the 'CF Code Compatibility Analyzer" in the MX administrator without exception. The parsers are in fact much more robust in MX and therefore I assume that it could distinguish between the query name and a column name of the same. Thanks again t

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread West, Jason
Outstanding! Good to here that he found the resolve on this.   Thanks   Jason From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne Sent: Monday, August 21, 2006 12:15 To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Embedded CF in _javascript_

RE: re[2]: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Charlie Arehart
Well, just to be clear: variables are NOT case sensitive in CFMX (even though it's built on java). It would just appear to be a difference in the CFML parser. There were many such little changes as of the new release. Some of them would be caught by the CFML Code Compatibility Analyzer in the Admin

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
Jason,I believe that Greg found the issue in the previous email with naming his query differently from the name of the columns defined in the query.TeddyOn 8/21/06, West, Jason <[EMAIL PROTECTED]> wrote: But the error said it could not find the query, would this be the cause of the

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread West, Jason
But the error said it could not find the query, would this be the cause of the error with defining the boundaries?   -JLW   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne Sent: Monday, August 21, 2006 11:30 To: discussion@acfug.org Subject: Re: [A

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread West, Jason
Greg,   This might be a stupid question but have you tried moving the Category query above the DOCTYPE tag?  I don’t think this has to do with the version of the server but rather the way includes are being called.  I only say that because the initial error message you sent out gave some

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Did you try renaming the query named “Category”? I’m not sure about this but it could just be a reserved word in CF5 but not in CFMX.   Dusty From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of McTure, Greg Sent: Monday, August 21, 2006 10:46 AM To: discussion@acfu

re[2]: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Mischa Uppelschoten ext 10
Check this thread: http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:10974 Highly likely because you have a field with the name "Category" and the query itself is called "category". /m > Here are the parts of my code that the error is referring to. Be mindful that this functio

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Many thanks Charlie. I’m an old school CFer and don’t get to do so much coding these days so I was a little unsure of my repsonse. I’m soon to resign though from my position in a different industry with aspirations of possibley getting back into the CF job market. Thanks again for the res

RE: re[2]: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
Thank you all for your insight. This indeed is exactly the issue and resolution. I simply changed the name of the query (since a column in the query had the same name as the query name) and it worked fine on CF5. I suspect the reason this was never an issue to begin with in CFMX is likely do the

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Good answer and I should have mentioned that. I sometimes use CF to dynamically populate JS arrays or variable values. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne Sent: Monday, August 21, 2006 10:40 AM To: discussion@acfug.org Subject: Re: [ACFUG

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
It is also a good practice to prefix your queries.  Mischa made a good point.  A query named category with a category column can cause coding legibility and sometimes forgotten mistakes.  I tend to prefix my queries with "qry", for example: This way you can call qryCategory.category, which looks be

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
You do not have to define the boundaries of the query when using cfloop. Teddy On 8/21/06, McTure, Greg <[EMAIL PROTECTED]> wrote: Here are the parts of my code that the error is referring to.  Be mindful that this functionality and code works nicely as intended on all three CFMX ma

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
Be mindful that this functionality and code works nicely as intended on all three CFMX machines but not on the lone CF5 machine.   The code is simply for dependent select drop-downs.  The first drop down displays the major categories form the database and the 2nd and 3rd drop down equally

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
Here are the parts of my code that the error is referring to.  Be mindful that this functionality and code works nicely as intended on all three CFMX machines but not on the lone CF5 machine.   The code is simply for dependent select drop-downs.  The first drop down displays the major cat

Re: re[2]: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
If you want to use JS files with CF, I would recommend not changing the mapping of .js.  I would rename file.js to file.js.cfm and then use On 8/21/06, Mischa Uppelschoten ext 10 <[EMAIL PROTECTED]> wrote: If you're using .js files, have you mapped the .js extension to the CF engine?Have you tried

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Gerrey . Mary-Catherine
If you comment out the _javascript_ part and leave just the loops, does the page execute without error? mcg "McTure, Greg" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 08/21/2006 10:52 AM Please respond to discussion@acfug.org To discussion@acfug.org cc Subject RE: [ACFUG D

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Charlie Arehart
Nope, that's a good perspective to have, Dusty.  I had in fact asked the same question in a reply to the list, but it's just not yet been received for some reason.   /charlie http://www.carehart.org/blog/   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dusty HaleSent: Monda

re[2]: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Mischa Uppelschoten ext 10
If you're using .js files, have you mapped the .js extension to the CF engine? Have you tried changing the name of the query to something that you know can never be a reserved word? /m > The query does exist and specifically it is the very first piece of code on the page. Ive sent the code an

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Charlie Arehart
Also, by "embedded CFML code in _javascript_" do you mean simply CFML code that's building _javascript_ in a .cfm template. In that case, it doesn't really matter if it's creating JS or HTML. The error just reflects a problem in the code or config. That said, I can't say I've ever seen "cann

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
Greg,Well, we cannot really help Greg without seeing where the query is set code wise.Teddy  On 8/21/06, McTure, Greg < [EMAIL PROTECTED]> wrote: The query does exist and specifically it is the very first piece of code on the page.  I've sent the code and the CFLOOP is simply to loop

Re: [ACFUG Discuss] group count ability

2006-08-21 Thread Scott Caillier
In practice, I've not seen using count(1) instead of count(*) to make any actual difference.  It may be how our databases are configured (Oracle 9i).  We're moving to 10g soon, so I'm looking forward to see if that makes a difference. I would encourage you to test and compare the two before just ch

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
The query does exist and specifically it is the very first piece of code on the page.  I’ve sent the code and the CFLOOP is simply to loop through the query return of major categories to populate a dependent secondary drop down with the corresponding sub-categories.  Again, this works witho

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
You can have ColdFusion generate _javascript_.  So as long as the JS code is between script tags, you can use CF to create JS arrays, embed variables into _javascript_s...you get the point.  The error specifically is referring to a CF error of a missing or TeddyOn 8/21/06, Dusty Hale <[EMAIL PROTE

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Not sure if this is a great answer and I am sure some of the more experienced ACFUGers may have a better answer.   _javascript_ is usually done on the client side so I don’t believe it is even possible to embedd CFML code into _javascript_. Someone please correct me here if I am wrong.

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
We would need to see the code that the error is referring to.TeddyOn 8/21/06, McTure, Greg <[EMAIL PROTECTED] > wrote: This is a general question to see if anyone has ran into issues with embedded CFML code in _javascript_ with a page working in CFMX and not in CF5?  The code I have wor

[ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
This is a general question to see if anyone has ran into issues with embedded CFML code in _javascript_ with a page working in CFMX and not in CF5?  The code I have works as intended in CFMX but I get the following error on CF5?  Any suggestions that anyone may have on the cause and/or reso