Feedback
Fill out my online form.

4 Jan 2013

Host Javascript Or .js files on Blogger

Host Javascript Or .js files on Blogger ItselfHow To Host Javascript Or .js files on Blogger, yes as blogger supports javascript which makes blogger support all the possible hacks in this platform, where to host this javascript on blogger.The Problem we all face is getting an free server with unlimited bandwidth to host these javascripts. 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 .OR we can upload .js files to Google Code


The best solution to host your javascript on blogger itself
For External Javascript the code is
<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.
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.
<script type='text/javascript'>
//<![CDATA[

<--Paste all code here from .js file -->

//]]>
</script>
Just in place of “<–Paste all code here from .js file –>” 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.
 

People

My Photo
We are also on Facebook We are on Twitter Home Page
Hello friends i am Jaskaran SH SD from Amritsar (Punjab) India. I love blogging. First I started a blog on science in 2010. Now I handle only this blog. I like to share the things which I know. I learn many things through blogging. I always try to make different that's why I learn many things. 

About Blog

Construct Internet is one of dedicated source for Internet, Computer and technology tutorials and development. It is Started in Oct 21 2012. We provide a professional tools for websites and blogging, along with a wide range of tutorials, How to fix etc. for computers and other technology development. Social news, Business and Social Science like topics are also followed in our blog.

We 'r Social

2012-2013 Construct Internet. Copying Without Permission is Strictly Prohibited.