JS finding functions in other files

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
tennis_blues
Forum Newbie
Posts: 21
Joined: Sun Oct 20, 2002 8:30 am

JS finding functions in other files

Post 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!
Last edited by tennis_blues on Fri Apr 06, 2007 6:48 pm, edited 1 time in total.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Not sure what you mean by "find the functions" but perhaps that user has Javascript disabled.
(#10850)
tennis_blues
Forum Newbie
Posts: 21
Joined: Sun Oct 20, 2002 8:30 am

Post 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!
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

How is the reference to the javascript file called in the markup?
Post Reply