Re: html standards

2002-01-18 Thread Billy Cravens

There's actually a custom tag (by Steve Nelson) called cf_HTMLHead that does
this - I use it on most of my applications:

http://www.fusebox.org//download/tags/htmlhead.zip

- Original Message -
From: "Kevin Bridges" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 12:19 PM
Subject: RE: html standards


> That cfhtmlhead tag is pretty sweet ... However, can someone please
> pass on
> to Macromedia that it makes zero sense to call it like so:
> 
> It should be called like this:
> 
>
> Now if we want to start using cfhtmlhead we have to go through all of
> our js
> code and make sure the quotes are escaped and don't conflict with the
> type
> of quote you use in "".
>
> ::: -Original Message-
> ::: From: Dave Watts [mailto:[EMAIL PROTECTED]]
> ::: Sent: Friday, January 18, 2002 10:36 AM
> ::: To: CF-Talk
> ::: Subject: RE: html standards
> :::
> :::
> ::: > Were developing a rather large applciation/intranet where
> ::: > there is a fair bit of code in application.cfm and in header
> ::: > files and such. The  blah blah 
> ::: > section is in a file called dsp_header. In some pages, much
> ::: > of the javascript gets included with the form as a simple
> ::: > script block outside the  tags. Also, we've
> ::: > recently put some javascript code in the application.cfm
> ::: > file.
> :::
> ::: The short answer is, no, current browsers don't care where
> ::: your JavaScript
> ::: is, as long as functions and objects are defined before
> ::: they're referenced.
> ::: However, standards compliance is a good thing, all other
> ::: things being equal,
> ::: and future browsers may care.
> :::
> ::: Fortunately, you can deal with this using the CFHTMLHEAD
> ::: tag, which writes a
> ::: string to the HTML HEAD of the document. By itself, it's
> ::: difficult to use
> ::: with strings containing JavaScript, so you can build
> ::: yourself a little
> ::: four-line custom tag to automatically escape the strings:
> :::
> ::: 
> ::: 
> ::: 
> ::: 
> :::
> ::: Dave Watts, CTO, Fig Leaf Software
> ::: http://www.figleaf.com/
> ::: voice: (202) 797-5496
> ::: fax: (202) 797-5444
> ::: 
> ::: __
> ::: Dedicated Windows 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=coldfusiona
> ::: 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
> 
__
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: html standards

2002-01-18 Thread Kevin Bridges

That cfhtmlhead tag is pretty sweet ... However, can someone please 
pass on
to Macromedia that it makes zero sense to call it like so:

It should be called like this:


Now if we want to start using cfhtmlhead we have to go through all of 
our js
code and make sure the quotes are escaped and don't conflict with the 
type
of quote you use in "".

::: -Original Message-
::: From: Dave Watts [mailto:[EMAIL PROTECTED]]
::: Sent: Friday, January 18, 2002 10:36 AM
::: To: CF-Talk
::: Subject: RE: html standards
::: 
::: 
::: > Were developing a rather large applciation/intranet where 
::: > there is a fair bit of code in application.cfm and in header 
::: > files and such. The  blah blah  
::: > section is in a file called dsp_header. In some pages, much 
::: > of the javascript gets included with the form as a simple 
::: > script block outside the  tags. Also, we've 
::: > recently put some javascript code in the application.cfm 
::: > file.
::: 
::: The short answer is, no, current browsers don't care where 
::: your JavaScript
::: is, as long as functions and objects are defined before 
::: they're referenced.
::: However, standards compliance is a good thing, all other 
::: things being equal,
::: and future browsers may care.
::: 
::: Fortunately, you can deal with this using the CFHTMLHEAD 
::: tag, which writes a
::: string to the HTML HEAD of the document. By itself, it's 
::: difficult to use
::: with strings containing JavaScript, so you can build 
::: yourself a little
::: four-line custom tag to automatically escape the strings:
::: 
::: 
::: 
::: 
::: 
::: 
::: Dave Watts, CTO, Fig Leaf Software
::: http://www.figleaf.com/
::: voice: (202) 797-5496
::: fax: (202) 797-5444
::: 
::: __
::: Dedicated Windows 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=coldfusiona
::: 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
__
Get Your Own Dedicated Windows 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=coldfusionb
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: html standards

2002-01-18 Thread Kreig Zimmerman

Andre,

The main difference in the placement of the  tags is this...

..you place JS functions in the <head> which are called from within the
document/by other functions.

When you place <script> tags within the <body> you are usually just
creating in-line JS; e.g. if you want a certain function called, the
browser exexutes the call when it gets to that point in the
body.--likesay, on one site I worked on, we place an inline script that
made a call to the function which created out DHTML menu at the bottom,
right before the closing </body> tag because the menu was dependent on
where elements had been drawn by the browser.

It doesn't really matter if you place <script>s within the <body>...  it
just allows you to invoke certain things after a certain section of the
document has been written by the browser itself.

- Original Message -
From: "Andre Turrettini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 11:56 AM
Subject: html standards


> Hey Gang, this is an odd one.  Maybe some people here have had issues
with
> this and if so, I'd love to know.
>
> Were developing a rather large applciation/intranet where there is a
fair
> bit of code in application.cfm and in header files and such.  The
> <html><head> blah blah </head><body> section is in a file called
dsp_header.
> In some pages, much of the javascript gets included with the form as a
> simple script block outside the <head></head> tags.  Also, we've
recently
> put some javascript code in the application.cfm file.  So, now the
code
> looks schematically like this:
>
> <script>blah blah blah
> 
> 
> blah blah blah
> 
> 
> blah blah blah
> blah blah blah
> blah blah blah
> 
> 
>
> Ideally and probably according to w3c recomendations, it should look
like
>
> 
> 
> blah blah blah
> 
> 
> blah blah blah
> 
> 
>
> But I've seen it like the first example in many places and it seems to
work
> fine.  So, its certainly not xml compliant but has anybody run into
any
> problems doing this?  Opinions? Thoughts?
>
> Andre Turrettini
> Application Engineer
> Collect America
> [EMAIL PROTECTED]
> 
__
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: html standards

2002-01-18 Thread Dave Watts

> Were developing a rather large applciation/intranet where 
> there is a fair bit of code in application.cfm and in header 
> files and such. The  blah blah  
> section is in a file called dsp_header. In some pages, much 
> of the javascript gets included with the form as a simple 
> script block outside the  tags. Also, we've 
> recently put some javascript code in the application.cfm 
> file.

The short answer is, no, current browsers don't care where your JavaScript
is, as long as functions and objects are defined before they're referenced.
However, standards compliance is a good thing, all other things being equal,
and future browsers may care.

Fortunately, you can deal with this using the CFHTMLHEAD tag, which writes a
string to the HTML HEAD of the document. By itself, it's difficult to use
with strings containing JavaScript, so you can build yourself a little
four-line custom tag to automatically escape the strings:






Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Dedicated Windows 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=coldfusiona
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: html standards

2002-01-18 Thread Craig Dudley

You could use the cfhtmlhead tag if you did run into problems.

-Original Message-
From: Andre Turrettini [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2002 16:57
To: CF-Talk
Subject: html standards


Hey Gang, this is an odd one.  Maybe some people here have had issues 
with
this and if so, I'd love to know.

Were developing a rather large applciation/intranet where there is a 
fair
bit of code in application.cfm and in header files and such.  The
 blah blah  section is in a file called 
dsp_header.
In some pages, much of the javascript gets included with the form as a
simple script block outside the  tags.  Also, we've 
recently
put some javascript code in the application.cfm file.  So, now the code
looks schematically like this:

blah blah blah


blah blah blah


blah blah blah
blah blah blah
blah blah blah



Ideally and probably according to w3c recomendations, it should look 
like 



blah blah blah


blah blah blah



But I've seen it like the first example in many places and it seems to 
work
fine.  So, its certainly not xml compliant but has anybody run into any
problems doing this?  Opinions? Thoughts?

Andre Turrettini
Application Engineer
Collect America
[EMAIL PROTECTED]

__
Dedicated Windows 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=coldfusiona
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: html standards

2002-01-18 Thread Bryan Stevenson

I don't know if you do any DHTML, but I've run into problems with JavaScript and DHTML 
when the JS
code wasn't accompanied by a BODY tag (i.e. after an opening BODY tag).  Other than 
that I have used
JS in and out of head or body tags with no problems (but if something weird 
happens...look there)
;-)

HTH

Bryan Stevenson
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
p. 250.920.8830
e. [EMAIL PROTECTED]
-
Macromedia Associate Partner
www.macromedia.com

- Original Message -
From: "Andre Turrettini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 8:56 AM
Subject: html standards


> Hey Gang, this is an odd one.  Maybe some people here have had issues with
> this and if so, I'd love to know.
>
> Were developing a rather large applciation/intranet where there is a fair
> bit of code in application.cfm and in header files and such.  The
>  blah blah  section is in a file called dsp_header.
> In some pages, much of the javascript gets included with the form as a
> simple script block outside the  tags.  Also, we've recently
> put some javascript code in the application.cfm file.  So, now the code
> looks schematically like this:
>
> blah blah blah
> 
> 
> blah blah blah
> 
> 
> blah blah blah
> blah blah blah
> blah blah blah
> 
> 
>
> Ideally and probably according to w3c recomendations, it should look like
>
> 
> 
> blah blah blah
> 
> 
> blah blah blah
> 
> 
>
> But I've seen it like the first example in many places and it seems to work
> fine.  So, its certainly not xml compliant but has anybody run into any
> problems doing this?  Opinions? Thoughts?
>
> Andre Turrettini
> Application Engineer
> Collect America
> [EMAIL PROTECTED]
> 
__
Dedicated Windows 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=coldfusiona
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



html standards

2002-01-18 Thread Andre Turrettini

Hey Gang, this is an odd one.  Maybe some people here have had issues with
this and if so, I'd love to know.

Were developing a rather large applciation/intranet where there is a fair
bit of code in application.cfm and in header files and such.  The
 blah blah  section is in a file called dsp_header.
In some pages, much of the javascript gets included with the form as a
simple script block outside the  tags.  Also, we've recently
put some javascript code in the application.cfm file.  So, now the code
looks schematically like this:

blah blah blah


blah blah blah


blah blah blah
blah blah blah
blah blah blah



Ideally and probably according to w3c recomendations, it should look like 



blah blah blah


blah blah blah



But I've seen it like the first example in many places and it seems to work
fine.  So, its certainly not xml compliant but has anybody run into any
problems doing this?  Opinions? Thoughts?

Andre Turrettini
Application Engineer
Collect America
[EMAIL PROTECTED]
__
Get Your Own Dedicated Windows 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=coldfusionb
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