Executing a function that is on a external .js file RRS feed

  • Question


    I am working with CRM4 and i have a external JS file and i'm using

    to load (via OnLoad) the external javascript i'm using


        var httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
        httpRequest.open("GET", "/javascript/SiteSurvey.js", false);
        httpRequest.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");


    i assume that it loads file fine

    The function i want to run, i have it setup as the following on the JS

    variable_name = function()





    and to call that i am trying to do



    i am getting the following error:


    field: <field that the eval code is in>

    event: onchange

    error: '<variable_name>' is underfined


    what am i doing wrong.


    please help

    Monday, January 28, 2008 9:02 PM


All replies