<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>selfoss support forum - Ajax update</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Ajax update (reply)</title>
<content:encoded><![CDATA[<p>Working perfectly ! Thank you very much !<br />
Maybe add a commit on the git ? <img src="https://forum.selfoss.aditu.de/images/smilies/wink.png" alt=";-)" /></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=496</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=496</guid>
<pubDate>Fri, 31 May 2013 13:58:23 +0000</pubDate>
<dc:creator>frankynov</dc:creator>
</item>
<item>
<title>Ajax update (reply)</title>
<content:encoded><![CDATA[<p>AWESOME!! I  used the &quot;read.png&quot; image &amp; inverted it to make my &quot;check.png&quot; In case someone was interested :)<br />
Here is the image I used: <img src="https://forum.selfoss.aditu.de/images/uploaded/20130521020818519ad712158d3.png" alt="[image]" /></p>
<p>I realize the the image above is effectively hidden. Due to the white background of the forums, you can't see it. But if you right-click in the area just to the right on the colon (&quot;:&quot;) you should be able to &quot;save image as...&quot;</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=457</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=457</guid>
<pubDate>Tue, 21 May 2013 01:58:51 +0000</pubDate>
<dc:creator>matt_sawyers</dc:creator>
</item>
<item>
<title>Ajax update</title>
<content:encoded><![CDATA[<p>Add an update button to refresh your feeds</p>
<p>in templates/home.phtml :</p>
<p>after line 29 <span style="color:#339;">&lt;link rel=&quot;stylesheet&quot; href=&quot;all.css&quot; /&gt;</span> add this script :</p>
<p>        <span style="color:#339;">&lt;script type=&quot;text/javascript&quot;&gt;<br />
  // Fonction effectuant la requête AJAX<br />
  function update_rss(){<br />
   var xhr = null;<br />
   document.getElementById(&quot;loader_update&quot;).innerHTML='&lt;div style=&quot;margin-left: 15px;margin-right: 15px;margin-top: 10px;&quot;&gt;&lt;center&gt;&lt;img src=&quot;public/images/ajax-loader-big.gif&quot; height=&quot;16px&quot;&gt;&lt;/center&gt;&lt;/div&gt;';<br />
   if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari<br />
     xhr = new XMLHttpRequest();<br />
   }<br />
   else{// code for IE6, IE5<br />
     xhr = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
   }<br />
   xhr.open('GET', 'your_url/update', true);<br />
  <br />
   xhr.onreadystatechange = function() {<br />
       if(xhr.readyState == 4){<br />
        document.getElementById(&quot;loader_update&quot;).innerHTML='&lt;div style=&quot;margin-left: 15px;margin-right: 15px;margin-top: 10px;&quot;&gt;&lt;center&gt;&lt;img src=&quot;public/images/check.png&quot; height=&quot;16px&quot;&gt;&lt;/center&gt;&lt;/div&gt;';<br />
       }  <br />
   } <br />
   <br />
   xhr.send(null);<br />
  }<br />
 &lt;/script&gt;</span></p>
<p>you need to have a check.png in your &quot;images&quot; folder.<br />
after go to the body, juste after <span style="color:#339;">&lt;div id=&quot;nav-mark&quot;&gt;&lt;?PHP echo \F3::get('lang_markread')?&gt;&lt;/div&gt;</span> add this :</p>
<p><span style="color:#339;">&lt;div style=&quot;margin-left: 15px;margin-right: 15px;margin-top: 10px;&quot;&gt;&lt;button style=&quot;padding:10px;color: #d7d7d7;background: #3d6d69;font-weight: 600;font-size: 0.9em;text-align: center;-moz-border-radius: 2px;-webkit-border-radius: 2px;-khtml-border-radius: 2px;border-radius: 2px;cursor: pointer;-webkit-appearance:none;border:none;width:100%;size:18px;&quot; type=&quot;button&quot; onclick=&quot;update_rss()&quot;&gt;Update&lt;/button&gt;&lt;span style=&quot;color:#FFFFFF;&quot; id=&quot;loader_update&quot;&gt;&lt;/span&gt;&lt;/div&gt;</span></p>
<p>before <span style="color:#339;">&lt;ul id=&quot;nav-filter&quot;&gt;</span>.</p>
<p>you can now update your rss feed just by a click.<br />
i work to reload the content div after the update. if you have an issue <img src="https://forum.selfoss.aditu.de/images/smilies/wink.png" alt=";-)" /> </p>
<p>(sorry for my bad english) ... <img src="https://forum.selfoss.aditu.de/images/smilies/tongue.png" alt=":-P" /></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=432</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=432</guid>
<pubDate>Wed, 15 May 2013 10:16:22 +0000</pubDate>
<dc:creator>kiwii</dc:creator>
</item>
</channel>
</rss>
