/    Sign up×
Community /Pin to ProfileBookmark

external javascript file

[quote]

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

[/quote]

Above external link works fine on my computer but it doesn’t on hosting. Is it bcoz of syntax? Cuz I have checked file name and path and its correct. ?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMaySep 18.2006 — Is the js file in the same directory as the file referencing it? If not the src needs to be changed to reflect.
Copy linkTweet thisAlerts:
@toicontienSep 18.2006 — Two things to check on:

1) Make sure the file name is spelled exactly in the src attribute as you have it named on the server, this includes uppercase and lowercase letters.

2) Since it's a relative path, make sure the JS file is located in the same directory as the HTML file that imports it.

If these two things aren't the cause, can you post the full HTML and JavaScript? It may be something else.

EDIT: Drat! ? TheBearMay beat me to it!
Copy linkTweet thisAlerts:
@homer_j_simpsonauthorSep 18.2006 — I'll make sure for that. Currenlty my hosting's ftp is down and couldn't browse.
×

Success!

Help @homer_j_simpson 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.20,
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,
)...