Page 1 of 1

JS finding functions in other files

Posted: Fri Apr 06, 2007 6:16 pm
by tennis_blues
hi,
i wrote a utils.js file.

i reference it with
<script src="./js/utils.js"></script>


and later in my html file, i call one of the functions that is defined in that file.

for 99% of my users, their browser can find the function no problem....but i have one user who is on a PC using both IE 6 and IE 7, cannot find the functions in the utils.js file

does anyone have any idea why? he must have some setting on his browser, but i have no idea what :(

thanks so much for any help!

Posted: Fri Apr 06, 2007 6:21 pm
by Christopher
Not sure what you mean by "find the functions" but perhaps that user has Javascript disabled.

Posted: Fri Apr 06, 2007 6:53 pm
by tennis_blues
hi,, thanks for the reply

he doesnt have javascript disabled because if a function is defined on that page, then his browser doesnt give an error - and executes the code. but as soon as there is function call to a function defined somewhere else (like in utils.js), then he gets an error on that line

but no one else has that problem (so far)...

make sense?

thanks so much!

Posted: Tue Apr 10, 2007 1:04 pm
by guitarlvr
seems is though there is a setting blocking his ability to import the .js file. I have looked through the internet options for a setting that might cause this and googled it but couldn't find anything. the only thing remotely close would be file downloads are disabled as it caches imported files. Sorry i couldn't help further.

Wayne

Posted: Tue Apr 10, 2007 5:16 pm
by RobertGonzalez
How is the reference to the javascript file called in the markup?