FRIHOST • FORUMS • SEARCH • FAQ • TOS • BLOGS • COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


A use for Ajax?





Texas Al
So I keep hearing all this intriguing stuff about Ajax. And I keep thinking, there's got to be something really cool I could do with it.

Basically, it could replace Flash, right? A free, fast, open alternative to Flash?

Does anybody here know enough about Ajax to comment on this?
RA
Ajax isn't anything special. Its just using JavaScript to modify an XML page in almost the same way you use JavaScript to modify an HTML page. So, basically AJAX and DHTML are the same thing, but applied to different styles of documents.

You could replace Flash with AJAX, but you could replace flash with DHTML as well. You could even write an entire database, or even an OS, if you have enough time.
foggy
I would have to disagree with you, RA. AJAX is simply a name for a design technique that uses the javascript function XMLhttprequest. It can be used in conjunction with DHTML to update the page with data from the server in real time without refreshing the entire page. I'm currently using something like AJAX on a page I am developing, I haven't gotten to that part yet, so I'll let you know how it plays out.

In the meantime you can read this tutorial on XMLHttpRequest if you are interested: http://www.webpasties.com/xmlHttpRequest/
RA
I've used XmlHttpRequest multiple times doing page updates and such. I didn't know that was all it took to be "using" AJAX. Why did they even come up with the acronym AJAX in the first place? It looks to me like some marketing gimmic. Oh well.
Texas Al
Okay, dumb question, and I think I might know the answer already but...

...this really doesn't apply in any way to how you would use Javascript to dynamically resize layout elements when someone resizes the window or anything like that, right? Since you don't need to get additional information from the server to do that?
foggy
You've got it, texas al. That's just regualar client-side stuff.
homer09001
i was wodering how the hell you could replace flash with Ajax cause i use it at work to clean chrome surfaces LaughingVery Happy
boringest
lol...

anyway, to see what AJAX can do look at the following website:

http://www.clearnova.com/ajax/
Related topics
AJAX tutorial
AJAX based 5 star rating script
AJAX - asynchronous JavaScript and XML
A Ajax tutorial
AJAX?
[TUTORIAL] Ajax para quem só ouviu falar
AJAX web coding
Help making an AJAX messaging system
AJAX
The origin of AJAX
AJAX or servlets?
importing a .txt
AJAX tutorial [2nd part now updated]
AJAX load ??
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.