/    Sign up×
Community /Pin to ProfileBookmark

IE7 does not see an include javascript file

Hi,
I have a JSP page which contains a javascript include file as follows:

<script type=”text/javascript” src=”../scripts/javascript.js”></script>

The javascript code in the JSP page calls a function located in the file javascript.js
It works fine in IE6 but in IE7 it returns an “object expected” error because it does not see the function.
When I moved the function to the JSP page, it works fine.

The problem is: this function is an utility function therefore it is used everywhere so I don’t want to repeat it in each single jsp page that uses it.

Is there a simple solution for that?

Thanks in advance!!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangApr 04.2009 — Can we see the page?
Copy linkTweet thisAlerts:
@siomatarnaauthorApr 04.2009 — Thanks for the reply; unfortunely it is an intranet page; not accessible from outside my network.

Would you be able to give some tips as what to check?

Thank you much!
Copy linkTweet thisAlerts:
@FangApr 05.2009 — Check for all JavaScript errors, even check with Firefox or other browsers, assuming it's not MS specific code.
×

Success!

Help @siomatarna spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...