<cfoutput>
     document.write('#JSStringFormat(now())#');
</cfoutput>

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 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

  > <script type="text/_javascript_"  language="_javascript_1.2"
  > src="">
  > test111.cfm does not works
  >
  > <!-- Begin
  >
  > document.write('<cfoutput>#now()#</cfoutput>');
  >
  > // End -->


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to