<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Core AJAX support</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 04 May 2026 04:55:36 -0000</pubDate>

		<item>
			<title>Orkan</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;p=1317#1317">#</a> <strong>Trustmaster :</strong>
Well, I'm quite skeptic about this idea, because it means that there will be at least 2 kinds of links to the same page: traditional and hash-based. It makes things easy to be messed for both devs and users.<br />
</blockquote>
<br />
no, the &quot;hash&quot; part will only define the &quot;page state&quot;. For example, if you have an ajax driven gallery, the hash part will define which photo you are currently viewing, so you can use this link later and share with others. <br />
This is nothing new. I will implement this on my <a href="http://tr.im/otu5" rel="nofollow">Star Rating widget</a> Demos tab soon, where I have two nested ajax tabs. There is a jQuery plugin to handle this easily: <a href="http://tr.im/otsb" rel="nofollow">jQuery Address</a><br />
<br />
<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;p=1356#1356">#</a> <strong>medar :</strong>
<br />
# Adding the appropriate logical switches and layout control, depending on presence of AJAX flag in script parameters, in the core PHP scripts.<br />
<br />
It is too big task, we will write it very long.<br />
</blockquote>
<br />
there is a spacial Header sent with all ajax calls, which can be used as a &quot;logical switch&quot;, <br />
eg. to exclude header.php from parsing in ajax call:<br />
<br />
<div class="highlight"><pre class="php">if(empty($_SERVER&#091;'HTTP_X_REQUESTED_WITH'&#093;)) {
 require_once $cfg&#091;'system_dir'&#093; . '/header.php';
}</pre></div>
<br />
plugins can use the same technique to modiffy the output as required<br />
<br />
Most, well designed PHP frameworks, utilizes &quot;heplers&quot; to package and abstract JavaScript behaviors into small PHP functions. To use it you dont even need to know JavaScript.<br />
<div class="highlight"><pre class="php">echo javascript_tag(
  remote_function(array(
    'update'  =&gt; 'myDivId',
    'url'     =&gt; sed_url('users', 'm=edit&amp;id='.$urr&#091;'user_id'&#093;),
  ))
);</pre></div>
<br />
The helpers deal with browser consistency, complex limit cases, extensibility, and so on, so the amount of JavaScript code they contain can be quite impressive. They also create an abstraction layer over a JavaScript library you are currently using. So it's possible to switch to YUI instead of jQuery without modiffing a single line in your plugin.]]></description>
			<pubDate>Ma, 15 Jun 2009 05:18:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post13220]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[I wonder how phpQuery helps, because we don't actually need CSS3 selectors for XTemplate files :D<br />
<br />
As for AJAX mode, I it's much easier than you may think and I'm sure some of us have already done it before ;)]]></description>
			<pubDate>Wo, 29 Okt 2008 01:50:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1363]]></link>
		</item>
		<item>
			<title>medar</title>
			<description><![CDATA[May be now integrate phpQuery to core Seditio-N ? (http://code.google.com/p/phpquery)<br />
Easy jQuery manipulation and Ajax interface..<br />
<blockquote># Adding the appropriate logical switches and layout control, depending on presence of AJAX flag in script parameters, in the core PHP scripts.</blockquote>
It is too big task, we will write it very long.]]></description>
			<pubDate>Di, 28 Okt 2008 22:39:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1356]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Well, I'm quite skeptic about this idea, because it means that there will be at least 2 kinds of links to the same page: traditional and hash-based. It makes things easy to be messed for both devs and users.]]></description>
			<pubDate>Za, 25 Okt 2008 03:30:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1317]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;amp;p=1299#1299">#</a> <strong>Trustmaster :</strong>
As far as I know, you can't update the address bar without reloading the page.<br />
</blockquote>
<br />
You can modify location.hash without reloading the whole page, eg: <a href="http://lvlworld.com/" rel="nofollow">http://lvlworld.com/</a>]]></description>
			<pubDate>Vr, 24 Okt 2008 21:49:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1312]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[You guys have skipped something. Nobody says switching Seditio to AJAX. We talk of special response mode for AJAX and optional features for those who want to make sites partially or entirely with AJAX.]]></description>
			<pubDate>Vr, 24 Okt 2008 03:12:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1306]]></link>
		</item>
		<item>
			<title>oc</title>
			<description><![CDATA[I agree with medar.<br />
<br />
We need to use AJAX only needed, like, maybe, post editing/login process vs.vs.<br />
<br />
And, AJAX will be outdated too, so we should not build this cms on AJAX.]]></description>
			<pubDate>Vr, 24 Okt 2008 01:16:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1305]]></link>
		</item>
		<item>
			<title>medar</title>
			<description><![CDATA[I think no need ajaxing all links on site. <br />
Ajax must be used only for interactive response, for changing elements of page but not for reload entire page. <br />
<br />
API for AJAX features (using jQuery) - enough.]]></description>
			<pubDate>Vr, 24 Okt 2008 00:26:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1303]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[As far as I know, you can't update the address bar without reloading the page.]]></description>
			<pubDate>Thu, 23 Okt 2008 23:46:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1299]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[<blockquote><strong>Trustmaster:</strong><hr />And as for browsers, AJAX mode will be enabled only if available.</blockquote>
This is rather easy to implement by constructing links as follows:<br />
<br />
<div class="highlight"><pre class="html">&lt;a href=https://www.cotonti.com/&quot;forums.php?m=topics&quot; onclick=&quot;$.get('forums.php?m=topics&amp;ax=1', ...); return false&quot;&gt;Topics&lt;/a&gt;</pre></div>
<br />
Also note, we need a way to update the address bar so each ajax call can be bookmarked :)]]></description>
			<pubDate>Thu, 23 Okt 2008 19:11:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1294]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<blockquote><strong>Lombi:</strong><hr />page changing without reloading and it's effects on the publishers that are funded by PPC companies like google/yahoo/adbrite/whatever</blockquote>
This means that you will have to put your PPC ads into page bodies rather than header/footer on AJAX websites.<br />
<br />
<blockquote><strong>Dayver:</strong><hr />If I understood it to perform this function in Seditio-N plans to implement the switch that will be available to visitors to the site (more so is it for him) to switch between AJAX / &quot;traditional full path&quot;? Or, this switch will be automatic that reacts to the &quot;inclusion&quot; JavaScript on the client side (and/or the fact whether the visitor search bot)?<br />
I think the switch should be automatic </blockquote>
Yes, it will be automatic. Crawlers and other javascript-less machines won't even know that the site can act in AJAX mode. And as for browsers, AJAX mode will be enabled only if available.]]></description>
			<pubDate>Thu, 23 Okt 2008 13:08:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1289]]></link>
		</item>
		<item>
			<title>Dayver</title>
			<description><![CDATA[If I understood it to perform this function in Seditio-N plans to implement the switch that will be available to visitors to the site (more so is it for him) to switch between AJAX / &quot;traditional full path&quot;? Or, this switch will be automatic that reacts to the &quot;inclusion&quot; JavaScript on the client side (and/or the fact whether the visitor search bot)? <br />
<br />
I think the switch should be automatic]]></description>
			<pubDate>Thu, 23 Okt 2008 03:44:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1283]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[This sounds awesome. The only things I'm worried about is:<br />
<br />
- crawler compatibility (which you already covered)<br />
- page changing without reloading and it's effects on the publishers that are funded by PPC companies like google/yahoo/adbrite/whatever]]></description>
			<pubDate>Thu, 23 Okt 2008 02:46:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1280]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[The modern Web 2.0 tendencies require that more and more actions on site can be performed without reloading the page: navigating between pages, sending forms and viewing results.<br />
<br />
On the other hand, most of websites must be easy to crawl for a search engine. And some users have JavaScript switched off for security. So it is also a must to have a normal, synchronous requests available for them.<br />
<br />
Combining both, CMS architects have come up to the idea of duality in CMS behavior, so that there are 2 methods to get the same page: in a traditional full-HTML way and in AJAX contents-only. Of course, it requires much more changes on a client side and the changes are not so dramatic in the core.<br />
<br />
Implementing this feature in Seditio-N contains 3 parts:<br />
[list=1]<br />
<li>Adding the appropriate logical switches and layout control, depending on presence of AJAX flag in script parameters, in the core PHP scripts.</li>
<li>Providing strong core JavaScript API for this AJAX feature (using jQuery).</li>
<li>Making skins with support of this feature, utilizing the API.</li>
</ul>
<br />
As Seditio layout templates are not XML-based and all the generated output is (X)HTML, such formats as XML or JSON would require massive changes of all the existing code to support AJAX. That is why I think the output format should stay the same (XHTML), what's different is that the core invokes and returns only those parts of the page which are expected to change.<br />
<br />
I would call this feature experimental and I'm going to implement it on a live site first during November and then merge a working version of it into the core.<br />
<br />
And now let the brainstorm begin.]]></description>
			<pubDate>Thu, 23 Okt 2008 00:44:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=501&d=0#post1278]]></link>
		</item>
	</channel>
</rss>