26 April 2010

Upload/host Javascript Or .js files to Google Sites?

Advertisements

We already know how to Upload/host all Javascript or .js files on Blogger with unlimited bandwidth.

But we can not upload all the scripts in that way directly on blogger. Like in case of  Numbered Page Navigation for blogger script.

Then you can upload such scripts on Google Sites. Using it you can upload and share your scripts.

So let's start.

First login to G mail account. Then go to the link http://sites.google.com/?pli=1

Enter password of G Mail and sign in. Click on Create Site.
Choose Blank Template. Give a name to your site and hit create site.

Then click on Create Page > File Cabinet. Give a name and create page. You will be directed to following type of page.

http://2.bp.blogspot.com/_tbHfaj1A058/S9VHEaSt8GI/AAAAAAAAKIc/wvm9rXCOajw/s1600/Uploadhost+Javascript+Or+js+files+to+Google+Sites.JPG

To upload script click on ADD FILE. Select your file and upload it. After the file is uploaded it will be present in the files list. Below each file you will see Download link.

Like that-

http://sites.google.com/site/freebloggerhelpbiz/freebloggerhelp/Popularpostsbyfree-blogger-help.blogspot.com.txt?attredirects=0&d=1

But you can't use this link directly as it will give error. To use it correctly just remove the Question mark (?) and all the text after that question mark. Then the correct link will be

http://sites.google.com/site/freebloggerhelpbiz/freebloggerhelp/Popularpostsbyfree-blogger-help.blogspot.com.txt

You can now use this script in your template. Do the same with all other scripts.

Related Posts

2 comments

November 22, 2010 at 2:56 AM

This works in Chrome, but I get an error on IE8:

Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://sites.google.com/site/abc/bloggerfiles/sample.js

January 11, 2011 at 12:33 AM

Use Firefox/Chrome

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More