<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Interactieve Webapplicaties on Netsensei</title>
    <link>https://www.netsensei.be/tags/interactieve-webapplicaties/</link>
    <description>Recent content in Interactieve Webapplicaties on Netsensei</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>nl-NL</language>
    <managingEditor>matthias@netsensei.nl (Matthias Vandermaesen)</managingEditor>
    <webMaster>matthias@netsensei.nl (Matthias Vandermaesen)</webMaster>
    <lastBuildDate>Sun, 25 Sep 2005 09:28:24 +0000</lastBuildDate><atom:link href="https://www.netsensei.be/tags/interactieve-webapplicaties/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>AJAX</title>
      <link>https://www.netsensei.be/2005/09/25/ajax/</link>
      <pubDate>Sun, 25 Sep 2005 09:28:24 +0000</pubDate>
      <author>matthias@netsensei.nl (Matthias Vandermaesen)</author>
      <guid>https://www.netsensei.be/2005/09/25/ajax/</guid>
      <description>&lt;p&gt;Ik zag daarjuist bij &lt;a href=&#34;http://www.7seconden.be/archives/2005/09/21/8-seconden/&#34; title=&#34;7 seconden&#34;&gt;7 seconden&lt;/a&gt; de term AJAX opduiken. Dat is niet de
eerste keer de laatste dagen dat ik die zag passeren. Het intrigeerde mij. Wie
of wat is AJAX en wat doet het? Een speurtocht op Wikipedia leverde mij
&lt;a href=&#34;http://en.wikipedia.org/wiki/Ajax_%28programming%29&#34; title=&#34;wikipaedia&#34;&gt;deze uitleg&lt;/a&gt; op. En een definitie:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Asynchronous JavaScript and XML, or Ajax, is a web development technique for
creating interactive web applications using a combination of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HTML (or XHTML) and CSS for presenting information&lt;/li&gt;
&lt;li&gt;The Document Object Model manipulated through JavaScript to dynamically display and interact with the information presented&lt;/li&gt;
&lt;li&gt;The XMLHttpRequest object to exchange data asynchronously with the web server. (XML is commonly used, although any format will work, including preformatted HTML, plain text, JSON and even EBML)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Like DHTML, LAMP, or SPA, Ajax is not a technology in itself, but a term that
refers to the use of a group of technologies together. In fact,
derivative/composite technologies based substantially upon Ajax, such as AFLAX
are already appearing.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Fascinating! Het komt erop neer dat de client niet voor elke interactie terug
moet naar de server. Zoals bijvoorbeeld bij PHP het geval is. Neen. De
afhandeling van de input en output wordt deels afgehandeld door een zogenaamde
AJAX engine en wanneer nodig stuurt die eventueel een HTTP request (onder de
vorm van XML) naar de server. Door een deel van het werk clientside te laten
afhandelen vermijd je een pak overhead. Daardoor wordt je applicatie een pak
responsiever. Beschouw volgende schemaatjes. (overgenomen van J.J. Garret
&lt;a href=&#34;http://www.adaptivepath.com/publications/essays/archives/000385.php&#34; title=&#34;&#34;&gt;Ajax: A New Approach to Web Applications&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;http://www.adaptivepath.com/images/publications/essays/ajax-fig1.png&#34; alt=&#34;schema 1&#34;&gt;  &lt;img src=&#34;http://www.adaptivepath.com/images/publications/essays/ajax-fig2_small.png&#34; alt=&#34;schema 2&#34;&gt;&lt;/p&gt;
&lt;p&gt;Toch zijn er ook een aantal (klassieke) nadelen aan AJAX verbonden:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Je moet je Javascript uitgebreid testen op crossbrowser-compatibility&lt;/li&gt;
&lt;li&gt;Je kan niet meer betrouwen op de “back” button van je browser om
naar de vorige staat te gaan. Browsers gaan er immers vanuit dat een pagina in
zijn geheel wordt geladen en niet in stukjes zoals bij AJAX het geval is. Een
oplossing bestaat momenteel uit kunst en vliegwerk met iFrames.&lt;/li&gt;
&lt;li&gt;Hetzelfde geldt voor het bookmarken van pagina’s.&lt;/li&gt;
&lt;li&gt;Aangezien HTTP verkeer binnen een AJAX framework asynchroon moet je als
ontwikkelaar de latency tussen actie en http request goed in het oog houden.
Of het resultaat is juist het omgekeerde van wat je voor ogen had: je
interface reageert een pak trager op interactie.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Wie gebruikt er nu AJAX? Een aantal groten implementeren deze technologie reeds.
Bijvoorbeeld &lt;a href=&#34;http://www.flickr.com&#34; title=&#34;&#34;&gt;Flickr&lt;/a&gt; en &lt;a href=&#34;http://gmail.google.com&#34; title=&#34;&#34;&gt;Google GMail&lt;/a&gt; of &lt;a href=&#34;http://maps.google.com/&#34; title=&#34;&#34;&gt;Google Maps&lt;/a&gt;. Het is
allesinds een technologie om in het oog te houden. De voordelen zijn immers
legio en de mogelijkheden onbeperkt.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>