Miscellaneous
  Home arrow Miscellaneous arrow Page 4 - Quick and Dirty AJAX Tutorial
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Forums Sitemap 
Dedicated Servers  
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MISCELLANEOUS

Quick and Dirty AJAX Tutorial
By: notepad
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 14
    2006-11-14

    Table of Contents:
  • Quick and Dirty AJAX Tutorial
  • AJAX Basics
  • A More Advanced Approach
  • Things to Consider

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Quick and Dirty AJAX Tutorial - Things to Consider


    (Page 4 of 4 )

    There is still at least one distinct problem with the code in my examples which you should be aware of. AJAX doesn't appear to work well with sessions, at least not out of the box. If you're updating content and losing session data, don't be suprised. The easiest (or laziest) thing to do is to only work with content that doesn't rely on session data. You can read an in-depth article on the problem here: http://www.chipmunkninja.com/article/asyncsessions

    If you're looking to push information to a webpage, rather than constantly polling with AJAX then there are two solutions which might interest you. Flash (actionscript) has 2 built-in capabilities: it can open XML sockets and it can call JavaScript functions. You could for example push data from an XML socket server (say, written in java) to a flash applet which can call JavaScript to update a div when it recieves data. There is also an easier way, but it's more of an ugly hack: http://www.obviously.com/tech_tips/slow_load_technique

    If you're open to using third-party code to help ease development, there are many libraries available specifically for AJAX. Have a look at: http://prototype.conio.net/

    If you're looking for a good book on the subject, check out: Foundations of AJAX

    Have fun.

    About the Author

    Hi, I'm notepad.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    MISCELLANEOUS ARTICLES

    - Stopping CSRF Attacks in Your PHP Applicatio...
    - Quick and Dirty AJAX Tutorial
    - Flickr Puzzle Mashup
    - The PAVISE of Security
    - Creating a CAPTCHA with PHP
    - Sending SMS Thru HTTP
    - The Postal Fix - Part 2
    - Adding Mail with Exim
    - The Postal Fix - Part 1
    - Create Your Own Custom API
    - Adding Drop Shadows with PHP
    - Writing a Basic Authentication System in PHP
    - Overlapping Images with GD
    - Using Sockets in PHP
    - Dynamic CSS with PHP






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway