Download Ajax dynamic content script

Demo

Bookmark and Share

Licensing

This script is distributed under the LGPL open source license.
Commercial licenses are also available. Some of these licenses also includes personal e-mail support for up to 1 year.

Download files

You can download the script from this Zip file.

Files in package:

  • ajax-dynamic-content.html = Demo HTML file which illustrates how to use this script.
  • js/ajax.js = Ajax (SACK library)
  • js/ajax-dynamic-content.js = Main JS file for this script
  • images/* = Images used in this demo
  • external/* = Dynamic loaded files for this demo

How to use this script

This scripts loads content of external files into a HTML element on your page. This is simply done by calling the Javascript function ajax_loadContent. Example:

ajax_loadContent('news1','external/externalfile1.html');

This will load the content of the file external/externalfile1.html into the HTML element on your page with id "news1", example: <DIV id="news1"></DIV>

Note! Ajax scripts must be executed over http and not the file system. I.e. from address starting with http://... and not C:\...

Update log

  • December, 3rd, 2006 - Javascript parser has been improved because of problems executing code in global context

Comments

Post your comment

Don't have an avatar? Create one at Gravatar.com.

Confirmation code:

Go to cbolson.com


About/Contact | A good idea? | Submit a script | Privacy notice
© 2005 - 2024 dhtmlgoodies.com