<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Ajax URLs - Need help understanding them.</title>
		<link>https://www.cotonti.com</link>
		<description>Последние сообщения в теме</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 20 Apr 2026 17:45:54 -0000</pubDate>

		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>Thank you for your help Macik. </p>
]]></description>
			<pubDate>пт, 15 ноя 2013 11:00:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7585&d=0#post38474]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>All Cotinti Ajax helper functions is coded for user actions like click for «ajaxed» link or «ajaxed» form submit.</p>

<p><span style="line-height:1.6em;">So better way to implement your function</span><span style="line-height:1.6em;"> is to write own JS code and bind it to select change event. Something like that (should works only with jQuery and Ajax setting enables in Admin panel):</span></p>

<pre class="brush:jscript;">
$('#mySelect').change(function() { 
    ajaxEnabled &amp;&amp; ajaxSend({
            method: 'GET',
            url: 'url/to/your/app',
            divId: 'targetBlockID'
        });
});</pre>

<p>Or something like this in native JS — should work (but not tested) without jQuery and Ajax enabled settings.</p>

<pre class="brush:jscript;">
var mySelect = document.getElementById('mySelectBoxId');
mySelect.onchange = function() {
  var xhr = new XMLHttpRequest(); 
    xhr.open('GET', '/url/of/your/app', true); 
    xhr.onreadystatechange = function() {  
      if (xhr.readyState != 4) return; 
      outputElem.innerHTML = xhr.responseText; 
    }
    xhr.send(null); 
}

</pre>

<p>[By the way - this native code is not actually crossbrowser.]</p>
]]></description>
			<pubDate>ср, 13 ноя 2013 22:53:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7585&d=0#post38471]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>Hello, I'm looking for more information on better understanding how to render ajax urls from Cotonti's core functionality. </p>

<p>I understand cot_pagenav() works really well on creating ajax friendly page navigation, but I am struggling to understand how (if possible) to achieve a similar ajax friendly url using cot_url(). I understand for ajax to work you need to include class="ajax" and have a rel=" -- ajax or hash url here --" but I am struggling to clearly understand hot to achieve this. </p>

<p> I am currently trying to use a dropdown select box to refresh the plugin (and only the plugin, instead of the whole page) like found in the user list part of the frame work, except without refreshing the enitre page.</p>

<p>Luke.</p>
]]></description>
			<pubDate>ср, 13 ноя 2013 17:30:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7585&d=0#post38469]]></link>
		</item>
	</channel>
</rss>