<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Ajax help.</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 15 Apr 2026 05:33:33 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>Have a look at <a href="http://www.cotonti.com/extensions/community-social/Users_recent_posts">userposts</a>, it has a Siena version.</p>
]]></description>
			<pubDate>Thu, 16 May 2013 07:31:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37512]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>I think working example is in user's wall plugin... but i don't remember if it's siena or not. Also admin panel is pretty ajaxified, when you set category page limit to a lower value, category tree in admin panel gets paginated, as far as I remember.</p>
]]></description>
			<pubDate>Thu, 16 May 2013 06:55:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37511]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>Thank you Trustmaster I will give this a go!</p>
<p><strong>Added 4 days later:</strong></p><p>All I seem to get is: AJAX Error: objectobject ?</p>
<p><strong>Added 2 hours later:</strong></p><p>Is there a working example in the Cotonti Siena source code any where?</p>
]]></description>
			<pubDate>Fri, 10 May 2013 18:50:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37478]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>I think you should make an AJAX part in your plugin that would output the exact piece of HTML that you want and link to it instead, e.g.:</p>

<pre class="brush:php;">
$pagenav = cot_pagenav('plug', 'r=pagesbyuser&amp;id=' .$id . '&amp;c=' .$c, $d, $totalitems, $cfg['plugin']['pagesbyuser']['pages_perpage'], 'd', '', true, 'pagesbyuser');</pre>

<p>You might also want to replace 'd' with something else in the variable name to avoid conflicts with other plugins.</p>
]]></description>
			<pubDate>Fri, 10 May 2013 18:38:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37477]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>Okay awesome, so I still hook into the users module so the tags work there?</p>
]]></description>
			<pubDate>Fri, 10 May 2013 18:16:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37476]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>That is a correct example, though pagination above links to users?m=details&amp;id=123 rather than a 3rd-party plugin, so it loads the output of the users module.</p>
]]></description>
			<pubDate>Fri, 10 May 2013 18:04:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37475]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>When you say an AJAX handler, do you mean like this:</p>

<pre class="brush:php;">
if (COT_AJAX)
{
    // AJAX-specific code here
}
else
{
    // Normal mode code here
}
 
// Common code here</pre>

<p> </p>
]]></description>
			<pubDate>Fri, 10 May 2013 09:40:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37474]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>If you want to paginate a smaller block, you need to make an AJAX handler that would do it on the server side. AJAX helpers are rather primitive, they only paginate entire "content" area by default.</p>
]]></description>
			<pubDate>Fri, 10 May 2013 06:55:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37473]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>Sorry I wasn't very clear. It doesn't include the header or footer just repeats the page contents inside that div. </p>
]]></description>
			<pubDate>Thu, 09 May 2013 21:47:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37472]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>Normally it should not include header/footer in the response if the request was sent with AJAX, regardless of what the pagination links look like. Does AJAX pagination work correctly in other areas?</p>
]]></description>
			<pubDate>Thu, 09 May 2013 17:34:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37471]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>Hey guys, trying to learn how to use ajax pagination properly following this: http://www.cotonti.com/docs/devel/ajax_helpers</p>

<p>However, when I use a div where I would like the list to load for each page of items it re-loads the whole page inside the div (so you see the whole page twice). Can anyone provide a little more information on what I could be doing wrong?</p>

<pre class="brush:php;">
$pagenav = cot_pagenav('users', '&amp;m=details&amp;id=' .$id . '&amp;c=' .$c. '&amp;s=' .$s. '&amp;w='.$w, $d, $totalitems,
        $cfg['plugin']['pagesbyuser']['pages_perpage'], 'd', '', true, 'pagesbyuser');</pre>

<p> </p>
]]></description>
			<pubDate>Thu, 09 May 2013 13:55:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7426&d=0#post37468]]></link>
		</item>
	</channel>
</rss>