A
Altman
I have created an ascx control and I am calling
registerclientscriptblock. The path to the js file is relative to the
aspx page and not the ascx file. The function runs fine in IE7 but in
Firefox the error console says that the function is not defined. I
tried making a very basic js file to get it to work and I am having
the same problem. My js file is as follows
function testjs()
{
alert("test fired");
}
I look at the page source in Firefox and it looks correct
<script src="/JavaScript/test.js" type="text/jscript"></script>
My page that i am running is /test.aspx and the js file is located in /
JavaScript/test.js. I put an <input> on with onclick="testjs();" and
firefox says testjs is not defined. I am at a loss as to why this
won't work but works fine in IE. I am not doing any specific IE
functions.
registerclientscriptblock. The path to the js file is relative to the
aspx page and not the ascx file. The function runs fine in IE7 but in
Firefox the error console says that the function is not defined. I
tried making a very basic js file to get it to work and I am having
the same problem. My js file is as follows
function testjs()
{
alert("test fired");
}
I look at the page source in Firefox and it looks correct
<script src="/JavaScript/test.js" type="text/jscript"></script>
My page that i am running is /test.aspx and the js file is located in /
JavaScript/test.js. I put an <input> on with onclick="testjs();" and
firefox says testjs is not defined. I am at a loss as to why this
won't work but works fine in IE. I am not doing any specific IE
functions.