Click here to Skip to main content
12,885,784 members (38,665 online)
Click here to Skip to main content


19 bookmarked
Posted 2 Dec 2010

Observer Pattern in web applications (JavaScript): A walkthrough with an AJAX example

, 2 Dec 2010 CPOL
Observer pattern is an excellent technique to deal with one to many relationships among objects.

if (file_exists('data.xml')) {
    $xml = simplexml_load_file('data.xml');
} else {
    exit('Failed to open data.');

echo $data;


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Albin Abel
Software Developer
India India
I am developer in .Net and GIS.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 2 Dec 2010
Article Copyright 2010 by Albin Abel
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid