<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Loading Div Content &#8211; Sibeesh Passion</title>
	<atom:link href="https://mail.sibeeshpassion.com/tag/loading-div-content/feed/" rel="self" type="application/rss+xml" />
	<link>https://mail.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 05 Aug 2015 08:48:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>Loading Div Content &#8211; Sibeesh Passion</title>
	<link>https://mail.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Loading or refreshing a div content uisng JQuery</title>
		<link>https://mail.sibeeshpassion.com/loading-or-refreshing-a-div-content-uisng-jquery/</link>
					<comments>https://mail.sibeeshpassion.com/loading-or-refreshing-a-div-content-uisng-jquery/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 05 Aug 2015 00:40:22 +0000</pubDate>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Loading Div Content]]></category>
		<category><![CDATA[refresh div contents]]></category>
		<category><![CDATA[Refresh div contents in time interval]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=7161</guid>

					<description><![CDATA[In this post, we will discuss how we can load or refresh some contents to our container div in a particular interval of time. To do this we will be using normal setInterval in JQuery. We will create an element which is to be considered as our container div. And by using setInterval , we will refresh the content which we creates dynamically to our container div. I hope you will like this. Using the code To work with, load your jQuery reference first. I am using following version of JQuery. [js] &#60;script src=&#34;http://sibeeshpassion.com/content/scripts/jquery-2.0.2.min.js&#34;&#62;&#60;/script&#62; [/js] Create a container div [html] [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post, we will discuss how we can load or refresh some contents to our container div in a particular interval of time. To do this we will be using normal <em>setInterval </em> in JQuery. We will create an element which is to be considered as our container div. And by using <em>setInterval </em>, we will refresh the content which we creates dynamically to our container div. I hope you will like this.</p>
<p><strong>Using the code</strong></p>
<p>To work with, load your jQuery reference first. I am using following version of JQuery.</p>
<p>[js]<br />
&lt;script src=&quot;http://sibeeshpassion.com/content/scripts/jquery-2.0.2.min.js&quot;&gt;&lt;/script&gt;<br />
[/js]</p>
<p><em>Create a container div</em></p>
<p>[html]<br />
&lt;div id=&#8217;container&#8217;&gt;&lt;/div&gt;<br />
[/html]</p>
<p>So now we can do our script part.</p>
<p><em>Implementation</em></p>
<p>Please find the below scripts.</p>
<p>[js]<br />
$(document).ready(<br />
function() {<br />
setInterval(function() {<br />
var randomnumber = Math.floor(Math.random() * 20);<br />
    var html=&#8221;;<br />
    for(i=0;i&lt;randomnumber;i++)<br />
    {<br />
        html+='&lt;p&gt;&#8217;+ randomnumber+ &#8216;&lt;/p&gt;&#8217;;<br />
    }<br />
    $(&#8216;#container&#8217;).html(html);<br />
}, 1000);<br />
});</p>
<p>[/js]</p>
<p>As you can see, we are creating some random numbers which is less than 20.<br />
[js]<br />
var randomnumber = Math.floor(Math.random() * 20);<br />
[/js]</p>
<p>And assigning the random value to the dynamically crated p tag.</p>
<p>[html]<br />
html+='&lt;p&gt;&#8217;+ randomnumber+ &#8216;&lt;/p&gt;&#8217;<br />
[/html]</p>
<p>Now we need to style our p tag as follows.</p>
<p>[css]<br />
p {<br />
  border: 1px solid #ccc;<br />
  border-radius: 5px;<br />
  height: 18px;<br />
  width: 18px;<br />
  padding: 5px;<br />
  text-align: center;<br />
  background-color: #999;<br />
  color: #fff;<br />
  float: left;<br />
}<br />
[/css]</p>
<p>That is all, it is time to run our code.</p>
<p>jsfiddle link: <a href="http://jsfiddle.net/sibeeshvenu/2t7fac89/" target="_blank">Loading or refreshing a div content jsfiddle</a></p>
<p><strong>Output</strong></p>
<p><img decoding="async" src="http://sibeeshpassion.com/wp-content/uploads/2015/07/LoadOrRefreshContentsDivUsingJQuery.gif" alt="" /></p>
<p><strong>Conclusion</strong></p>
<p>I hope you liked this article. Please share me your valuable feedback. Thanks in advance.</p>
<p>Kindest Regards<br />
<a href="http://sibeeshpassion.com" target="_blank">Sibeesh Venu</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/loading-or-refreshing-a-div-content-uisng-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Loading Div Content One by One Using Pure jQuery</title>
		<link>https://mail.sibeeshpassion.com/loading-div-content-one-by-one-using-pure-jquery/</link>
					<comments>https://mail.sibeeshpassion.com/loading-div-content-one-by-one-using-pure-jquery/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Mon, 29 Dec 2014 19:21:27 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Contents one by one using Jquery]]></category>
		<category><![CDATA[Load Div Content]]></category>
		<category><![CDATA[Loading Div Content]]></category>
		<category><![CDATA[Loads Contents]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=621</guid>

					<description><![CDATA[Introduction This article explains how to load div content one by one. You can do this by adding some plug-ins, but it is always better to avoid the unwanted plug-ins. So I have found how to do it and thought to share it with you all. Background I have been working with my website (www.sibeeshpassion.com) for the past few days and I have the need to show only one item (quote) of many (quotes) at a time in a div. Please provide your valuable suggestions for improvement. Using the Code First of all we need the contents. So you can [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>This article explains how to load div content one by one. You can do this by adding some plug-ins, but it is always better to avoid the unwanted plug-ins. So I have found how to do it and thought to share it with you all.</p>
<p><strong>Background</strong></p>
<p>I have been working with my website (<a href="http://sibeeshpassion.com/index.html">www.sibeeshpassion.com</a>) for the past few days and I have the need to show only one item (quote) of many (quotes) at a time in a div.</p>
<p>Please provide your valuable suggestions for improvement.</p>
<p><strong>Using the Code</strong></p>
<p>First of all we need the contents. So you can get the contents as follows.<br />
[html]<br />
&lt;div id=“fades”&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “Welcome to &lt;b&gt;Sibeesh|Passion&lt;/b&gt;. Thanks a lot for visiting. Come again!!!”<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Sibeesh Venu<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “If debugging is the process of removing software bugs, then programming must be<br />
            the process of putting them in. “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Edsger Dijkstra<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “Walking on water and developing software from a specification are easy if both<br />
            are frozen. “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Edward V Berard<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “It’s not at all important to get it right the first time. It’s vitally important<br />
            to get it right the last time.”<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Andrew Hunt and David Thomas<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “First, solve the problem. Then, write the code. “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – John Johnson<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “Should array indices start at 0 or 1? My compromise of 0.5 was rejected without,<br />
            I thought, proper consideration. “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Stan Kelly-Bootle<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “Always code as if the guy who ends up maintaining your code will be a violent psychopath<br />
            who knows where you live. “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Rick Osborne<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “Any fool can write code that a computer can understand. Good programmers write<br />
            code that humans can understand. “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Martin Fowler<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “Software sucks because users demand it to. “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Nathan Myhrvold<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            “Beware of bugs in the above code; I have only proved it correct, not tried it.<br />
            “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Donald Knuth<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
    &lt;div&gt;<br />
        &lt;h3&gt;<br />
            ” There is not now, nor has there ever been, nor will there ever be, any programming<br />
            language in which it is the least bit difficult to write bad code. “<br />
        &lt;/h3&gt;<br />
        &lt;p style=“text-align: right;”&gt;<br />
            – Flon’s Law<br />
        &lt;/p&gt;<br />
    &lt;/div&gt;<br />
&lt;/div&gt;<br />
[/html]</p>
<p>Now it is time for the action, our jQuery function.<br />
[js]<br />
&lt;script type=“text/javascript”&gt;<br />
    $(document).ready(function () {<br />
        $(“body”).floatingShare();<br />
        // First hide them all<br />
        $(“#fades div”).hide();<br />
        function fades($div, cb) {<br />
            $div.fadeIn(10000, function () {<br />
                $div.fadeOut(10000, function () {<br />
                    var $next = $div.next();<br />
                    if ($next.length &gt; 0) {<br />
                        fades($next, cb);<br />
                    }<br />
                    else {<br />
                        // The last element has faded away, call the callback<br />
                        cb();<br />
                    }<br />
                });<br />
            });<br />
        }<br />
        function startFading($firstDiv) {<br />
            fades($firstDiv, function () {<br />
                startFading($firstDiv);<br />
            });<br />
        }<br />
        startFading($(“#fades div:first-child”));<br />
    });<br />
&lt;/script&gt;<br />
[/js]</p>
<p>Please note that you need to load the jQuery first. You can get it from the CDN or from your server.</p>
<p>[js]<br />
&lt;script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”&gt;&lt;/script&gt;<br />
[/js]</p>
<p><strong>Points of Interest</strong></p>
<p>jQuery, CSS, HTML</p>
<p><strong>History</strong></p>
<p>First version: 01-Dec-2014</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/loading-div-content-one-by-one-using-pure-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
