FunLanka.com funlanka  

.:: FunLanka.com ::. Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List DownloadsDownloads Social GroupSocial Group
Go Back   FunLanka.com > Computers & Internet > Web Development
Join FunLanka.com Register Search Search Today's Posts Today's Posts Mark Forums Read

How To Host Javascript Or .js files on Blogger Itself

How To Host Javascript Or .js files on Blogger Itself

this thread has 3 replies and has been viewed 71 times

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-23-2010, 12:12 AM
Rohantha's Avatar
Rohantha Rohantha is offline
Junior Member
Points: 85, Level: 1
Points: 85, Level: 1 Points: 85, Level: 1 Points: 85, Level: 1
Activity: 99.2%
Activity: 99.2% Activity: 99.2% Activity: 99.2%
 
 Location: Giriulla
 Posts: 20
 Join Date: Apr 2010
  Send a message via Skype™ to Rohantha
11 How To Host Javascript Or .js files on Blogger Itself

How To Host Javascript Or .js files on Blogger, yes as blogger supports javascript which makes blogger support all the possible hacks in this platform, but the problem we bloggers face in using this is , where to host this javascript on blogger.As blogger doesn't provide any source to host javascript for blog like it has provided picasa for images.As of before we all were using googlepages to upload the .js files but google closed this service and switched to google sites.As still we can upload these .js files to google sites but just upload it with file extension .txt instead of .js and it start working.

But still,we can face any problem in future with it.The best solution is to have paid server to host your files for unlimited bandwidth, but bloggers using this free platform dont like spending on it.







I also provided you with the list of some servers to upload your javascript files but the problem was bandwidth which was very less.

So i will provide you the best solution to host your javascript on blogger itself and enjoy unlimited bandwidth.

Now just see the below codes.

Code:
<script src='http://Your-Script-Url/file.js' type='text/javascript'/>


Whenever you are trying to implement some hack making use of javascript you would have mostly been asked to download the .js file and upload to your own server,get its url and then replace it with red link in above codes shown above,and then place the whole above codes in blogger html before closing of head tag.The Problem we all face is getting an free server with unlimited bandwidth to host these javascripts.

So why don't we upload these javascripts to blogger itself.Just what you have to do is,whenever you are asked to do this kind of above stuff while implementing any hack.

Just use below code in place of above one i showed you.






Code:
<script type='text/javascript'>
//<![CDATA[
<--Paste all code here from .js file -->
//]]>
</script>



Just in place of red line in above code what you have to do is just open the .js file (which you are asked to download or upload to your own server) in notepad or on your browser , copy its code and paste it in place of above red line.And your javascript codes are now ready which are now hosted on blogger itself instead of hosting to third party server.
__________________
Reply With Quote
  #2  
Old 04-23-2010, 09:24 PM
KDR's Avatar
KDR KDR is offline
Chief Moderator(VIP)
 6 month star
Points: 29,068, Level: 24
Points: 29,068, Level: 24 Points: 29,068, Level: 24 Points: 29,068, Level: 24
Activity: 100.0%
Activity: 100.0% Activity: 100.0% Activity: 100.0%

 
 Location: Colombo
 Posts: 10,871
 Join Date: Dec 2009
  Send a message via Skype™ to KDR Send a message via MSN to KDR Send a message via Yahoo to KDR
Thanks for sharing
__________________
---------- KDR ----------
Reply With Quote
  #3  
Old 04-24-2010, 10:28 AM
Dr Dre's Avatar
Dr Dre Dr Dre is offline
Super Moderator
 6 month star
Points: 17,133, Level: 19
Points: 17,133, Level: 19 Points: 17,133, Level: 19 Points: 17,133, Level: 19
Activity: 99.9%
Activity: 99.9% Activity: 99.9% Activity: 99.9%

 
 Location: Lion's Land
 Posts: 5,212
 Join Date: Nov 2009
nice...........
__________________


Reply With Quote
  #4  
Old 07-29-2010, 11:51 AM
Selina Selina is offline
Junior Member
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 99.0%
Activity: 99.0% Activity: 99.0% Activity: 99.0%
 
 Posts: 5
 Join Date: Jul 2010
It is some what confusing and u did not tell me how to change county in ad sense to India from Pakistan as i did it it is not accepting.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +5.5. The time now is 08:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 2009-2010 FunLanka.com @ EeeAgle