Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Loading js file from a filehost.



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
FriddleDev



Joined: 30 Jun 2008
Posts: 1

PostPosted: Mon Jun 30, 2008 3:58 pm    Post subject: Loading js file from a filehost. Reply with quote

Hello! Very Happy
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! Very Happy
Back to top
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 546
Location: Cebu City Philippines

PostPosted: Tue Jul 01, 2008 1:42 am    Post subject: Re: Loading js file from a filehost. Reply with quote

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.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap