Miscellaneous

  Home arrow Miscellaneous arrow Page 4 - Quick and Dirty AJAX Tutorial
MISCELLANEOUS

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

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

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    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.
    blog comments powered by Disqus

    MISCELLANEOUS ARTICLES

    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength
    - Install Slackware on Your Old PC


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap