It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Loading js file from a filehost.

Loading js file from a filehost.

Postby FriddleDev on Mon Jun 30, 2008 2:58 pm

Hello! :D
I'm totally new at javascript... and I've encountered a problem.

I wanted to use this script on my site but because of some reasons I can't host the js and css file on my own site.

So I tried uploading the files onto a filehost and replaced the original script
<script style="text/javascript" src="file.js"></script>
with this
<script style="text/javascript" src="http://filehost.com/file.js"></script>
And it doesn't work.

So is there a way to load my js file from an external filehost and not from the localhost?

And if there is no way to do that, where should I place the script and css?

Thanks in advance! :D
FriddleDev
 
Posts: 0
Joined: Mon Jun 30, 2008 2:48 pm

Postby rangana on Tue Jul 01, 2008 12:42 am

You can't host it? Weird enough for me to say.

Where do you host your page? You could have done it, ahm...indeed difficult to explain, what's your directory structure...we can't really help, not unless we're on your shoe.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 3 guests