4 Replies Latest reply on Aug 16, 2007 11:08 AM by WestSide

    CFDOCUMENT and Javascript

    WestSide Level 1

      I am trying to call javascript function that lives outside the <cfdocument> wrapper. The code that calls my javascript function IS within the <cfdocument> tags, but its not working for some reason. I also tried puttin the actual javascript function WITHIN the <cfdocument> tags, but to no avail. It seems I can't call a js function within a <cfdocument> wrapper.

      Previously this was just a standard .cfm page and my js worked fine of course. I have this function that gets called after the page is loaded that calculates some values client side and writes them to form fields. I am trying to do something similar here as mentioned above.

      Maybe I am just doing it wrong, but it appears it just does not work for me.

      Any ideas?