I started this thread, and since then I've looked at a few CF/JS custom
tags, such as CF_DoubleBox. Observations:
* They are called from the body of a document.
* They write HTML directly into the body.
* They write JS directly into the body, surrounding it with
<script></script> tags.
* The JS includes CFML variables (example below) and CFML code:
document.#attributes.form#.SelectedFields#attributes.name#.options[i].sel
ected = false;
So you'd get something like this, where the output of the custom tag is
shown in UPPERCASE:
<html>
<head></head>
<body>
<form>
HTML CODE
<SCRIPT>
JAVASCRIPT CODE
</SCRIPT>
HTML CODE
</form>
</body>
</html>
I wrote my CF/JS custom tag using CFHTMLHEAD to put the JavaScript
functions into the doc's head, not into the body.
-David
On Thu, 26 Oct 2000 10:58:51 -0400 [EMAIL PROTECTED]
(Carol Bluestein) writes:
> Hi all.
> Not sure if this is OT or not. With respect to CF code and JS, the
> CF tag
> THREESELECTS intertwines CF and JS inbewteen script tags. I'd like
> to know more
> about how this works. so I could use it in the code that I do.
>
> Carol
>
> Carol L. Bluestein
> Senior Programmer
> NYS Office of Real Property
> 518-486-6335
> [EMAIL PROTECTED]
>
> ____________________Reply Separator____________________
> Subject: RE: Custom Tag w/JS functions
> Author: [EMAIL PROTECTED]
> Date: 10/26/00 2:17 PM
>
> Do you know something, you're right.
>
> I did some code a while back and I couldn't get CF to do what I
> wanted in
> the javascript. It makes sense that you should be able to. I can't
> remember exactly what it is (I left that job) but I do remember that
> it
> didn't work.
>
> Oh well, I look stupid!
>
> Thanks
> Paul
>
> > -----Original Message-----
> > From: Rob Keniger [mailto:[EMAIL PROTECTED]]
> > Sent: 26 October 2000 13:25
> > To: CF-Talk
> > Subject: Re: Custom Tag w/JS functions
> >
> > on 10/26/00 10:15 PM, Paul Johnston at
> [EMAIL PROTECTED] wrote:
> >
> > > bear in mind that no cfcode within <script></script> tags will
> get
> > > processed.
> >
> > Hmmm. Works fine for me, always has...
> >
> > Rob Keniger
> > big bang solutions
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]