How To Create List View Page For Blogger

T&T Top

Infolinks

Featured post

Download From SonyLive, Youtube, Dailymotion, Facebook, DittoTv, Ozee, Twitter, &Tv, Zee Tv

Hello Friends, I know like me you are also a big fan of SonyLive, Youtube, Dailymotion, Facebook, DittoTv, Ozee, Twitter, &Tv, Zee Tv ...

8 March 2017

How To Create List View Page For Blogger

Hello friends 
A List View is nothing but a list of all your posts in your website on a single page. List View helps Visitors to view all your posts on single page without clicking next or more posts button again and again if you have large number if posts on your blog. As a blogger you might find it difficult to create a list view because there is no code available in blogger. In this post let’s see how to create List view  for Blogger blog
Hi here i Find best solution
Make HTMl JAVA/SCript widget
and simple post the code, it works great

<div><ul id="postList12"></ul></div>

<script type="text/javascript">

var startIndex = 1;
var maxResults = 100;

function sendQuery12()
{
   var scpt = document.createElement("script");
   scpt.src = "/feeds/posts/summary?alt=json&callback=processPostList12&start-index=" + startIndex + "&max-results=" + maxResults;

   document.body.appendChild(scpt);
}

function processPostList12(root)
{
   var elmt = document.getElementById("postList12");
   if (!elmt)
      return;

   var feed = root.feed;

   if (feed.entry.length > 0)
   {
      for (var i = 0; i < feed.entry.length; i++)
      {
         var entry = feed.entry[i];

         var title = entry.title.$t;

         for (var j = 0; j < entry.link.length; j++)
         {
            if (entry.link[j].rel == "alternate")
            {
               var url = entry.link[j].href;

               if (url && url.length > 0 && title && title.length > 0)
               {
                  var liE = document.createElement("li");

                  var a1E = document.createElement("a");
                  a1E.href = url;
                  a1E.textContent = title;

                  liE.appendChild(a1E);

                  elmt.appendChild(liE);
               }

               break;
            }
         }
      }

      if (feed.entry.length >= maxResults)
      {
         startIndex += maxResults;
         sendQuery12();
      }
   }
}

sendQuery12();

1 comment:

  1. http://www.ozee.com/shows/zindagi-ki-mehek/video/zindagi-ki-mehek-episode-150-april-14-2017-full-episode.html

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...