Couple things I forgot to mention:
1) Yeah, books are boring, but Ben's book is outstanding and you can learn a
lot from it.  It is laid out very well, and covers things you really need to
know (like this.)

2) You're including the header inside of cfoutput that is query driven -
this will generate multiple  <head> tag blocks... Probably a BAD idea,
unless you know you're going to only have one record coming back from the
query - still probably a bad idea.  Looking again at the code, you'll
probably not run into multiple records coming back as you specified a where
statement in your SQL, but, it's a bad practice to get in.

3) Try to keep what's inside a cfoutput block to a minimum, everything
inside a <cfoutput> block, as the server has to parse everything inside of
that and it will slow your application down.

-Bill
www.brainbox.tv

----- Original Message -----
From: "Gina K. Anderson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 3:19 PM
Subject: Newbie-CF trying to process Hex numbers :-)


> Hi all,
>
> Have been learning CF, and going through the book ColdFusion 4.0 Web
Application
> Construction Kit. Short story is I got bored with white background and
black
> text, and started doing my own app instead of the example in the book,
using
> background colors, text colors, and CSS, etc.
>
> Okay, now I have a problem ;) CF is trying to process my hex numbers, and
I
> can't figure out how to fix it. I am trying to update records, using
> #Trim(ColumnName)#. My code can be found here:
>
> http://www.sitediva.com/code.txt
>
> When I passed the ContactID to this page through a link on another page, I
got
> this error:
>
> ---------------------------------
> Error Diagnostic Information
> Just in time compilation error
>
> Invalid parser construct found on line 38 at position 23. ColdFusion was
looking
> at the following text:
>
> "
> Invalid expression format. The usual cause is an error in the expression
> structure.
> The last successfully parsed CFML construct was static text occupying
document
> position (29:28) to (38:15).
>
> The specific sequence of files included or processed is:
> C:\AddressBook\update_biz_form.cfm
> -----------------------------------
>
> So I go to the line, and it's the <body bgcolor="#FFFFFF" text="#000000">
tag,
> the " after the first hex number. I stripped out the hex numbers, then it
gets
> stuck on the next one, <tr bgcolor="#990000"> ...
>
> I can't find anything in the book that talks about this, can anyone help?
>
> Thanks,
> Gina
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to