The purpose of this post is to try to explain AJAX the way I understand it. To me,
AJAX is not some complicated technology that you need to go out and buy books to
learn. Rather, it is simply two or more web pages, and a couple of simple Javascript
functions.I have come to hate the term AJAX. It seems every time I mention AJAX, either
developers get nervous, or account managers get excited. Neither situation benefits me.
Actually, I’ve pretty much stopped using the term at all. Depending on my audience, I’ll
make up different terms. Like when I’m talking to Java developers, I’ll say “we need to do
a back end call” and that doesn’t freak them out, but telling them we need to do an AJAX
call makes them sweat.

Hopefully, if enough people read posts like this, the mystery and glamor will be removed
from the term AJAX. So, lets get to the de-mystification.

First, lets dissect the name itself. A.J.A.X.

A = Asynchronous

J = Javascript

A = And


Most developers reading this will feel pretty comfortable with the Javascript part.
It’s the asynchronous and the XML parts that make most people nervous. They really
shouldn’t. I’ll briefly describe each, then we’ll put it all together.

Asynchronous simply means “lets open another URL without changing or reloading the page.”
Picture it like this… You are reading a blog post, and you come across a link to another page.
You don’t want to stop reading, so you right click the link and open it in a new window or another
tab right? Now you continue reading the page you were on. Asynchronous simply means we are doing
something else without disturbing the page we are viewing.

Javascript, we all know what that is I hope. If you don’t, then you should probably be reading
some other sites first (intro to Javascript).
Now, the purpose of this post is to make AJAX easy to write, and easy to understand, so we are
going to use Javascript tools that make our job a lot easier. Whenever I write AJAX code, I always use
the Prototype Javascript framework.
Go ahead and download it, we’ll talk more about it later, just know that it has most of the Javascript
we will need built in.

Before I get into XML, and what it is, I would like to note that AJAX doesn’t even need XML to work.
For those who can’t or won’t use XML, don’t worry, you can still write useful AJAX code without it, but
please continue reading and maybe you will decide that you can use XML after all. It does make AJAX a
lot easier, but like I said, it’s not necessary.

XML shouldn’t be scary, but many people just don’t know what it is. If you’ve got this far and you
aren’t totally confused, then you probably know how to write HTML. HTML and XML should not necessarily
be compared, but they are similar in how they are written. XML is written using ‘tags’ similar to HTML.
And XML tags need to be “balanced” just like HTML should be. Following is some simple HTML:


Most people will recognize this as the most basic of HTML code, but what you may not know is that
this could also be valid XML code as well. I mentioned the word “balanced” earlier. In the sample
above, you will notice that each tag has a corresponding ending tag like <html></html>.
That is what balanced means. That is probably the most important concept in XML. Unlike HTML, we don’t
necessarily use XML for presentation, XML is normally used more like a database. For example, if the
code above were an XML file, and we wanted to think of it as data, we could say that the <html>
section could be the database itself, the <head> section could represent a table in that database,
the <title> section could represent a column in that table and the word “sample” would be the value
of that column. If it were a database, we could query it something like this…

select title
from html.head

We could spend a great deal of time explaining XML, but lets just says that its basic function is to
store data and to define what that data means. So, in the example above, the word “sample” means, and
we know this because of the XML tags we use to surround it, it is the ‘title’ of the ‘head’ of the ‘html’ file.

I’ll write one more sample XML just for clarification because I think I’ve spent too much time on
this subject already, but I think one more sample will be helpful in describing just how easy XML is.
Lets say we want to get a list of books. We could represent that list of books with XML.

    <title>The Shining</title>     
    <author>Stephen King</author>     
    <title>Fahrenheit 451</title>     
    <author>Ray Bradbury</author>     

From that example, XML should be pretty self explanatory. And that is the real point of XML.

That concludes “AJAX Fast and Easy – part one”. In part two, we will build a basic HTML file
and make an AJAX call to another basic HTML file, leaving the XML part out of the equation.


Ajax Fast and Easy – part two is now available


Tags: , , , , , , , , ,

Trackback URL | Comments RSS

6 Responses to “AJAX Fast and Easy – part one”

Very insightful…I feel like I can code!

Matt Levy wrote on February 20th, 2008 at 3:47 pm


[…] AJAX Fast and Easy – part one […]


[…] AJAX Fast and Easy – part one […]


[…] In AJAX Fast and Easy – part one, we defined AJAX and decided it wasn’t really that complicated. In AJAX Fast and Easy – part two, we created an index.html file, a backendHTML.html file and we downloaded the Prototype Javascript framework. We put them all together and made some ajax magic happen. However, in part 2 we left out all the junk about XML, and all we really did was display the ajax results as an alert. Not too useful, but it proved the point and it was pretty fun. […]


[…] AJAX Fast and Easy – part one » position:relative – a Web and Now blog Hopefully, if enough people read posts like this, the mystery and glamor will be removed from the term AJAX. So, lets get to the de-mystification. […]


[…] AJAX Fast and Easy – part one » position:relative – a Web and Now blog Hopefully, if enough people read posts like this, the mystery and glamor will be removed from the term AJAX. So, lets get to the de-mystification. […]


  • download asha bhosle song rab rakha
  • seagate 1tb treiber download
  • karten download nokia 5230
  • metodos de contrabaixo download
  • download topu meye mp3
  • jailbreakme download for iphone
  • download lagu soundtrack orang pinggiran trans7
  • download jesse stone death in paradise
  • prologue of ft island download
  • 802.11 n wlan treiber download vista
  • ladrA?o de coraAAes download
  • download good enough lifehouse
  • cook n software free download
  • download ohne anmeldung kostenlos
  • gm auto book update download
  • restaurant vouchers to download
  • 50 cent game download pc free
  • download hamachi gratis italiano
  • download price movie songs
  • free download mudhal kanave song
  • metroid prime 2 echoes download
  • download kon banega crorepati 2
  • download alto preAo festival promessas
  • bzn blue eyes download zippy
  • cd insert template download
  • download wmp for windows 8
  • download bloomberg on ipad
  • download alem do cidadA?o kane
  • download top chef season 8
  • ego trippin part 2 download
  • minecraft download zip line mod
  • download xp icon sets
  • download simran hot video songs
  • download caruso lara fabian mp3
  • download 2012 5 day camping tickets
  • nuvvu naaku nachav ringtones download
  • dell streak download skype
  • kansas the wall download mp3
  • driving my life away download
  • download office 2007 rut gon
  • download puya o data pe luna
  • download 100 virus free games
  • download 91 assistant iphone
  • download tnt a minecraft parody
  • usb serial ch 340 driver download for windows 7
  • download nokia 2730 free games
  • download jackass o filme gratis
  • iphone fw where download
  • download bartpe to usb
  • simcat 1 2012 download
  • download cazuza sA? pro meu prazer
  • download ray lamontagne gossip in the grain album
  • download dff editor gta sa
  • qr code .jar download
  • download mp3 ar rahman songs
  • download black ops soundtrack
  • download unlock apple iphone free
  • nvu download mac 10.7
  • agente 86 download dublado rmvb
  • free mp3 download 2 chainz spend it
  • download darkorbit uridium hack v12.1
  • download album sum 41
  • download free 180 telugu songs
  • download naruto shippuden 279 bahasa indonesia 3gp
  • optical flares bundle download mac
  • download driver toshiba satellite c660 a235
  • download robin b hood english
  • download seu astral mp3
  • download warcraft 3 1.22
  • microsoft dynamics ebook download
  • download supernatural 5 temporada dublado
  • download bank of america statements to quickbooks
  • download filme guardioes do tesouro dublado
  • download shafiq mureed mp3 songs
  • download chegamos ao fim
  • kodek xvid fourcc download
  • gungame mod mw2 download on pc
  • download windows update manually xp
  • xpi simulation police driving download
  • download filme tres porquinhos gratis
  • cajun dance party amylase download mp3
  • download dhanush uthama puthiran songs
  • download chat java for mobile
  • the haunting 1999 download free
  • download 1 to 100 counting
  • download jogo dante's inferno ps2
  • nike plus sportband software download
  • installing sap 4.7 guide download free
  • u3 launchpad installer download
  • splinter cell download android
  • free castleville download for android
  • afrikaanse bybel download for blackberry
  • download coffee shop all time low
  • wwigo download for nokia n73
  • 6.66 ai download map
  • to download skype for free for windows 7
  • dvd nani azevedo excelA?ncia download
  • avm 7390 firmware 84.05.05 download
  • zameen songs download mp3
  • dot hack zero download
  • download wwe 3d games pc
  • download sekirei pure engagement blu ray
  • download o coronel e o lobisomem
  • franz ferdinand album download 2004
  • download proshow producer 5 with crack
  • supernatural 6o temporada download avi
  • dj antoine the beatshakers download free
  • download party don't stop yamapi mp3
  • download martin light jockey for mac
  • free download of tvc full version
  • chrome download from youtube
  • download songs aankhen 2002 songs pk
  • haath ki safai mp3 download
  • download game hp sony ericsson w100i
  • download yeah yeah yeahs project x
  • just cause 2 key download
  • download community 2o temporada
  • download java 7 x86
  • download private peaceful audio book
  • allah 99 names video download
  • ps jailbreak download 3.56
  • download brunner tratado de enfermagem
  • music download 30 seconds to mars
  • download milioane de flori
  • download nicoleta guta amintirea ta
  • lingashtakam free download by spb
  • vigilante 8 iso download psx
  • download one piece 466 indo
  • download mp3 kaca yang berdebu
  • oi velox 3g download
  • download ung dung doi duoi video
  • oracle ocp exam download
  • download fw nokia c6
  • download getjar apps uc browser
  • agps for windows mobile download
  • rizzle kicks couch potato download
  • download mp3 akim janji
  • download me voy julieta venegas free
  • download cd novo cbjr
  • download ratchet and clank for pc
  • download free gym class heroes stereo hearts
  • vlc 1.1.11 download mac
  • download pokemon chaos black gba rom
  • download aplicativos galaxy ace
  • mchek application download for android
  • download la fouine banlieue sale
  • mfi multiloader latest version download
  • download gta 4 savegame
  • download kung ako ba siya khalil ramos
  • download prorat latest version
  • sound engineering book download
  • download kumpulan rumus fisika smp
  • download metric help i'm alive free
  • download geforce go 7400 windows 7
  • transformers 1 download dublado hd
  • download thooral ninnu pochu songs
  • talent management morenci download
  • 30h 3 mp3 download
  • s4 league wont download
  • cd pegada santa download
  • blackberry 8520 software download
  • gece bar mp3 download
  • publisher download portugues gratis
  • lossless audio player download
  • qual site paga por download
  • visual studio 2012 download size
  • hawaii 5 0 download saison 1
  • yer so bad download
  • download famous rajasthani songs
  • download denisa nu pierde iubirea mea
  • download buku ipa kelas 4
  • vpn client download uni dA?sseldorf
  • download mp3 gratis iwa peye
  • download kanhaiya kisko kahega tu maiya song
  • espansioni neverwinter nights 2 download
  • funk carioca download 2012
  • download flute ringtone of rhtdm
  • download kid cudi maui waui
  • chevelle rose mp3 download
  • download cs 1.6 versao fnatic
  • download musicas eduardo costa
  • download tone loc wild thing mp3
  • sks manual gabriele download
  • download 64 bit vlc
  • download aidonia badman a step
  • jackass download 2.5 dublado
  • kuroko no basket download anime
  • samsung gt c3303 applications download
  • demi lovato unbroken download za darmo
  • download xilinx ise design suite 12.4
  • battle royale audiobook download
  • download kiem rong ban full
  • towa no quon movie download
  • download marian de ce ai plecat
  • wiki wiki wisin yandel download
  • dragon ball z season 8 download free
  • download online pc games
  • download mp3 tepatnya malam minggu
  • cscs test 2011 download
  • serato dj effects download
  • mrbayes download page on sourceforge
  • download epson nx420 printer
  • internet explorer 5 x download
  • download doller zombie survival guide
  • download joker mp3 songs
  • download sub indo oh my lady
  • download method man da rockwilder
  • open office mac 10.4 11 download
  • free download formatted data recovery software
  • toro y moi free download album
  • download nhac cho dien thoai
  • honey singh balatkari download mp3
  • raj brar songs download mp3
  • crucified barbara download in distortion we trust
  • tribe called quest download
  • jce policy 7 download
  • migliore app download musica iphone
  • download canvas rider free for pc
  • download estilo de vida calibre 50
  • download document viewer for blackberry
  • milionerzy download na telefon chomikuj
  • download umax astra 1220s software
  • download misfits opening song
  • free sony psp2 games download
  • cidades do sims 3 download
  • holograf download cat de departe
  • download gta moldova tbp
  • download songs high heels
  • download cd sertanejo universitario junho 2012
  • download hyperdesk for windows xp
  • download radio 1 stream
  • download fight ippo bahasa indonesia
  • atube charter download per windows 7
  • download skype galaxy s1
  • download driver genius keygen
  • download land transaction return form
  • download free delhi belly songs
  • download tintin game for pc
  • download lagu kawan makan kawan
  • download cf phien ban moi
  • free download maging sino ka man
  • iserial reader 2.0.9 mac download
  • half life download
  • jre 6 ubuntu download
  • warcraft legends 3 download
  • download leonard cohen songs
  • best of giggs 3 download free
  • download modern warfare 2 mod box v5.5
  • download wings daesung mp3
  • download dublado transformers 2
  • quicken download sign in
  • download driver epson dx6000
  • download song of mere brother ki dulhan
  • download sertifikat nokia 2630
  • download bittersweet super junior mp3
  • download sonar 4 full
  • download bubble bobble hero 2 game
  • sony ericsson vivaz realplayer download
  • download programa ler texto
  • o mensageiro download legendado
  • download desperate housewives theme song
  • mumford sons download album
  • 3 little pigs download
  • download hack map dota 6.76c
  • lmfao champagne shower video download
  • pes 5 download softonic
  • download facebook new version for blackberry
  • hans zimmer injection download free
  • download filme cinco vezes favela
  • download mian phA la??c viat ta Aia?n
  • download temi omnia 2
  • legend of korra download 3
  • download the corrs only when i sleep mp3
  • juntos pelo acaso download gratis
  • download lagu pia utopia lentera hati
  • download symphony of psalms
  • mercenaries 2 direct download
  • puerto rico de luxe download
  • sims 3 download lots houses
  • download perry mystique fire in the hole
  • fathom blue descent 4 download
  • download windows 7 90 day trial
  • download yeah yeah yeahs it's blitz
  • download aching dreams 2 full
  • sims medieval guide download
  • download type of fonts
  • directx 9 download microsoft xp
  • hypnotize clean mp3 download
  • download mfe for n97
  • download photoshop cs3 32bit
  • download yugioh 5ds episode 16
  • nanban songs free download with lyrics
  • download snowbreeze 2.3 for windows
  • shark007 codecs download 64 bit
  • download madden on xbox live
  • download nine and half weeks
  • download nursery rhyme videos
  • download nq mobile security symbian
  • naruto council ds download
  • breathe carolina idgaf download mp3
  • download bounce to you christina aguilera
  • where'd you go free mp3 download
  • download i follow u
  • download music 7th band
  • download fada do dente dvdrip
  • notfall cd 3.0 download
  • download smoke two joints
  • download bobby bola games
  • itunes match download library to new computer
  • download firefox arabic 3.6
  • download igi v1.0 trainer
  • hp c7280 printer download
  • vengeance essential clubsounds 3 download
  • free download intel celeron vga driver
  • download giochi nintendo 64 ita
  • a fera download uploaded
  • opera mini 3.10 download java
  • download blogspot family guy
  • suse sles 11 iso download
  • attakathi hd songs download
  • el dorado mp3 download elton john
  • terceira temporada heroes download
  • bengali bhooter golpo download
  • download music rafet el roman senden sonra
  • fatboy slim cacao beach download
  • download phoca guestbook joomla 1.5
  • download phan mem host shield
  • download file form submit php
  • frets on fire download 1 link
  • download the fair lady
  • download saga molusco anoitecer
  • download song what comes around goes around
  • feel good dubstep download
  • download webex on iphone
  • wavelab 7 pc download
  • download cong thuc toan trong word 2003
  • vampiros se mordam download dublado
  • download yaar bina chain kahan re
  • no download bots for rs
  • maximum the hormone ootori download
  • bfd2 drum software download
  • deewana songs download free mp3
  • hitachi camera download software
  • smokin on juicy j download
  • download tara jala junoon mp3
  • les temps des cathedrales download free
  • download ayat qursi mp3
  • download video aula photoshop cs4
  • download elements of seo
  • free download of nkjv audio bible
  • free download of veera telugu songs
  • solver download for mac excel 2011
  • download anbil avan song
  • pingwiny z madagaskaru download precyl
  • moviestarplanet download for blackberry
  • cheat engine 5.5 download icy tower
  • lucenzo mami te quiero download
  • rig n roll download for free
  • download pirates and caribbean 4
  • final destination 1 free download
  • supernatural 07x09 download rmvb
  • kanashimi twilight mp3 download
  • zuma deluxe szybki darmowy download
  • download hp laserjet 1020 xp
  • one piece download yibis
  • download season 7 of bones
  • download pc suite nokia 3210 classic
  • popular songs download 2010
  • download resistance retribution psp 1 link
  • maine pyar kiya download ringtone
  • deewanapan deewangi song download
  • download bonus rpk zachowanie podle
  • rage update 1 skidrow download
  • download south park episodes to your phone
  • pujian sejati bobby mp3 download
  • itunes how to download songs you've purchased
  • download dynasty dada life
  • mario kart 1 download
  • download bogdan de la ploiesti pana la capatul lumii fileshare
  • enfuse plugin download for lightroom
  • download hwmonitor pro gratis
  • 5 vezes favela download gratis
  • mundo estranho download grA?tis
  • free download anari mp3 songs
  • mera naam chun chun mp3 download
  • download emp3 english songs
  • download vista aero theme
  • download cnet flv player
  • download kaante hindi movie free
  • bAblia de estudo download grA?tis
  • download imatch to iphone
  • download groove coverage the last unicorn
  • download yong hwa because miss you
  • download emotikony do gg
  • download eternity warriors 2 hack android
  • download 64 bit itunes free windows 7
  • paranormal agency hd download
  • zero no tsukaima ps2 download
  • sap gui 720 download free
  • taetiseo twinkle mp3 download free