Reply to Re: AJAX without server scripts?

Your name:

Reply:


Posted by Steve Pugh on 02/22/07 21:22

"Platonistos" <cassius.z@gmail.com> wrote:

>I have been developing with HTML and the XML suite (which I am still,
>still learning: there is a lot to XML!) for some time now. My
>ultimate goal is to be able to make web-based apps using AJAX
>technology, but it is a level of complexity seemingly quite far above
>the more-or-less simple DHTML I am used to.
>
>My question is this: every instruction in AJAX I have seen seems to
>imply that server-side scripting (i.e. PHP) is required for AJAX
>applications to work. My question is, is it at all possible to do
>AJAX-style operations (i.e. using JavaScript embedded in an XSLT
>stylesheet) without having to learn server-scripting - or, if I want
>AJAX, do I need to know server-scripting first?
>
>If it *is* possible to do AJAX-style things without server-scripting,
>what is the "trick" to it?

There's no trick at all. All AJAX does is make a normal HTTP request
to the server and act on the response. The server can respond with a
static resource or a dynamic one, the JavaScript at the browser end
will never know the difference.

However, there are probably very few actual cases where this would
really be useful, but as a learning exercise to familiarise yourself
with the JavaScript end of the AJAX, give it a try.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация