Forum Moderators: open

Message Too Old, No Replies

'cbool' doesn't work with javascript?..

         

yaelede

7:26 am on Nov 3, 2003 (gmt 0)

10+ Year Member



I have a customer service chat code in javascript. I wanted to insert it to SOME of my product pages. Since all my product pages are generated from one asp file, I have made a new checkbox entry in my AccesDB named "chat", I selected the appropriate products and then I put the following lines in my asp file:
<% if cbool(chat) then %>
<script language="Javascript" src="/mychatfolder/mychat.asp"></script>
<% end if %>

This code works well with inserting html elements, but it doesn't seem to work with javascript. I'm not the programmer (I can't reach him now..), so I would appreciate any help.

korkus2000

1:47 pm on Nov 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is the asp file really a javascript file? Why are you doing a javascript include on a .asp file?