I'm not sure why you get a blank page.
document.write('#JSStringFormat(now())#');
writes a timestamp to the page for me.
as far as including CF code in a .js file..yes, you should be able to include a line of code like:
and if test.cfm
Would there be a concern with caching using this option?
- Calvin
- Original Message -
From: Ketan Patel
To: CF-Talk
Sent: Friday, November 07, 2003 11:34 AM
Subject: _javascript_ CF question
Hi All,
I have a question related to _javascript_. I have some dynamic articles
Hi Charlie,
My caller page has following code
Test110.cfm code
src="">
and Test111.cfm code is
document.write('#JSStringFormat(now())#');
nothing comes blank. Now my question is can I call a extrnal .cfm page using
_javascript_ when I rename to .js and throw in bunch of text it works, I
document.write('#JSStringFormat(now())#');
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funct148.htm
hth,
Charlie
- Original Message -
From: Bert Dawson
To: CF-Talk
Sent: Friday, November 07, 2003 11:19 AM
Subject: RE: _javascript_ CF question
What do you
What do you see if you browse to http://www.mysite.com/test111.cfm and view the source?
Is it all valid js?
e.g. example becomes:
document.write('{ts '2003-11-07 18:15:34'}');
and js ain't gonna like all those apostrophes...
Bert
>
If I understand your quest directly,
when they load your JS file you then want the JS file to write to their web
document on the fly.
Since you can't tell the structure of the doc then you want to create a div
with position absolute elements,
position it, then write your data to it and make it visi
7 matches
Mail list logo