|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Ajax?
Could anyone tell me what ajax is about and show me a good example?
Regards Mikael |
|
#2
|
||||
|
||||
|
Ajax actually falls under javascript and google is your friend.
__________________
Making teachers cry like babies since 2006. --nicky paper/xerox/staples zine distro/press - Support the first ammendment. Support independent publishing. Stupid Things I've Done |
|
#3
|
|||
|
|||
|
Do you have any example of pages based on ajax?
Quote:
|
|
#4
|
||||
|
||||
|
There are plenty on the web. Have a google.
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#5
|
|||
|
|||
|
Quote:
Or just go to Google... ![]() Let's see... Gmail, Personalize Homepage, the new Calendars, Google Maps....
__________________
Digg my software! TagManage Means Easy Intranet Blogging New Startup Announces Enterprise Bookmarking and Blogging Tool |
|
#6
|
|||
|
|||
|
Quote:
Damn, cool this i will have to learn ![]() So do anyone have any link to tutorials where i can learn to move object? like in http://www.google.com/ig |
|
#7
|
||||
|
||||
|
That's just javascript, not ajax.
It stores the configuration in a cookie too. |
|
#8
|
|||
|
|||
|
Hmm, so what can i do with ajax that i can't with javascript?
|
|
#9
|
||||
|
||||
|
Okay, let me explain what ajax is
you have a javascript on your page. then you click a link with a url like "javascript:query('blah');" That calls your function 'query' which uses ajax. what ajax does here is make a connection to a specified page, and returns the result to your script. you can then use that result, for example, to modify the content on the page apropriately via script. The special thing is that instead of loading a whole new page, the work is done in the background and you can still view the page. |
|
#10
|
||||
|
||||
|
AJAX is primarily about making HTTP requests from inside the webpage without having the entire webpage refresh. This way you can send smaller amounts of information back and forth and have webpages dynamically change.
Before AJAX, people would use hidden frames to send background HTTP requests. I think Gmail may do this b/c it uses a hidden frame. With AJAX, instead of just refreshing the entire hidden frame, you can use the hidden frame as a large session scratch pad since you can store a lot more information there than in a cookie. You can do AJAX by calling XMLHttpRequest yourself or by using an AJAX JS library. Some popular libraries include:I've used Prototype which is nice but I'm looking into moving to Dojo because it has built-in JSON support (nicer than hacking it on to Prototype). Prototype drops the response into a specified element's innerHTML which is quick and dirty but designed to update just one client object so you may end up with more AJAX requests than you need/want. JSON stands for JavaScript Object Notation and lets you send multiple data items to the client in a format JavaScript understands. Yahoo! Mail beta also an interesting application of AJAX. It's like using MS Outlook in a web browser. Instead of clicking through pages of mail (like Gmail) you scroll through the entire list, kind of like how Google Maps lets you scroll around a map. Last edited by Conundrum : May 11th, 2006 at 12:36 PM. |
|
#11
|
||||
|
||||
|
Quote:
|
|
#12
|
||||
|
||||
|
Quote:
|
|
#13
|