FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Javascript include file..?





Diablosblizz
It seems that I am unable to include javascript files by the following code:

Code:
<script src="javascript/some_file.js" type="text/javascript"></script>


I can't even do it without the text/javascript files. The file I am trying to get working on my site is:

http://hotelmario.net/version6/javascript/iframe.js

Which is a iframe extender. It works fine when the code is on the index page (where the iframes are) but that makes a mess of the code.

Does anybody know why?

P.S.: If this isn't a technical problem, please move it accordingly. Thanks!!
Peterssidan
The first thing I noticed is that first in the js file they have <script type="text/javascript"> and at the bottom they have </script>. If you are using an js file the script html tag should not be there. I don't know if that is enough to make it not work.
Diablosblizz
Well I feel just increasingly stupid. Thanks a ton!
Related topics
Dynamic User Customizable Sites. CSS + PHP = Awesome!
waar halen jullie je inspiratie voor een site
Hoe mijn site volledig zichtbaar maken via google
Wonders of the include() in PHP.
Frames
Server Side Includes
need help building a switch/case dynamically w/ a loop &
.txt file to .php Lined to tables
Load scripts from another file
Shout box script
How can i make anonymous need to registered to before...
Changing internal data with scripting.
Want Help from Experts in HTML
including javascript in php file
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.