How To Create Table Of Content Using AJAX Feed

Posted by Lasantha Bandara on June 7th, 2009 File Under : feeds, gadget, google, widget0 Comment

Follow below steps to create nice Table Of Content for your blog.

1.First sign up for your Google API Key.

2.Now copy your AJAX Feed API key to notepad.

3.Now Login to your blogger dashboard--> layout- ->Page Elements

4.Click on 'Add a Gadget'.

5.Select 'HTML/Javascript' and add the code given below.

<!-- ++Begin Dynamic Feed Wizard Generated Code++ -->
// Created with a Google AJAX Search and Feed Wizard

// The Following div element will end up holding the actual feed control.
// You can place this anywhere on your page.
<div id="feed-control">
<span style="margin:10px;padding:4px;">Loading...</span>

<!-- Google Ajax Api
<script src=">>"

<!-- Dynamic Feed Control and Stylesheet -->
<script src=""
<style type="text/css">
@import url("");

<script type="text/javascript">
function LoadDynamicFeedControl() {
var feeds = [
{title: 'Table of Contents',
url: ''
var options = {
stacked : true,
horizontal : false,

new GFdynamicFeedControl(feeds, 'feed-control', options);
// Load the feeds API and set the onload callback.
google.load('feeds', '1');

<!-- ++End Dynamic Feed Control Wizard Generated Code++ -->

6.Now Replace,

YOUR-AJAX-FEED-API-KEY with your real key.

YOURBLOG with your real blog name.

YOUR-BLOG-TITLE with your real blog title.

7.Now click SAVE and you are done.Look at the picture below.

File Under : feeds, gadget, google, widget

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.