Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Ajax: Introduction

Loading...

Sign in or sign up now!
24,165
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 1, 2008

Load pages dynamically with pure javascript and html. No php needed.

Prelude Code: http://www.gorilla3d.com/v4/js/ajax.js

Conclusion Code: http://www.gorilla3d.com/v4/files/ajax.zip

Firebug
https://addons.mozilla.org/en-US/firefox/addon/1843

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (gorilla3d)

  • I see. Good to know that it affects your SEO.

    Search engine results won't matter though for just adding small dynamic elements to your page. So I mostly view Ajax as something for adding dynamic functionality to a page, not loading pages within pages.

    For example, on YouTube when you click the "Playlists" link below the video and suddenly an area with a drop-down menu appears... that's Ajax, right?

  • Correct, the playlist is "ajax" . As far as SEO google may still cache ajax content however if its not loaded when the rest of the page is there i.e have to click something first google wont find it

  • Could you explain why this works in FF but not in IE? Something about ActiveX? and does it help to put the js in the body?

  • Yeah an issue I overlooked it wont work in ie6 maybe it works in ie7. I've rewritten it so it works in both I'll post it up.

  • Ok I've added the javascript ajax.js to work in both IE and Firefox

  • what plugins for eclipse are you using?

  • Aptana

Top Comments

  • excellent, thanks so much for doing this and all your screencasts, please continue as long as possible, and please...MORE AJAX

  • Thx, this was very helpfull, keep it up

see all

Video Responses

This video is a response to Ajax: Json
see all

All Comments (34)

Sign In or Sign Up now to post a comment!
  • pls give the code link

  • FIX YOUR LINKS! PLEASE!

  • For those interested in the IDE (text editor) he is using, it is Aptanta Studio. Google it. It is available on Linux distros, as well through the software centre. It is a very good and sexy IDE.

  • please can you copy and paste here the functions you are used in ajax, the links up there doesn't work :s

  • Very helpfull, but can you talk like depressed :S

  • There are two php files: country.php and state.php.

    Country .php has country list fetched from database and state.php has state list fetched/retrieved from state.php. Through echo "select" and echo"option" method.

    How to write a AJAX code so that when user click any country from drop down menu state drop down menu for that country populates again in drop down menu, which was previously not present. without th entire page getting refreshed...

  • What code editor are you using?

  • where i can get that 20 lines code.....

  • pleezz reply someone. Waths the editor he uses??

  • good job

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more