This simple library containing some methods of Ajax.
Example about addContent(url, target):
With this function you can change the content of the someone DIV tag.
E.g:
index.php
<html>
<head>
<title>Untitled Document</title>
<script type="text/javascript" src="ajax.js"></script>
</head>
<body>
<div id="test">
<a href="javascript: addContent('test.php', 'content')"> Change </a>
</div>
<div id="content">
<label> This is just test... </label>
</div>
</body>
</html>
test.php
<?php
echo "Simple Ajax Library Example!";
?>
When you click on "Change" then the content of the div tag named "content" will change to what you have written in the file (In this example, test.php -> Simple Ajax Library Example!).
The functions getResults(str, url, target) and suggest(str, url, target) are Ajax methods with more arguments.
str = input string
url = The url or resource file
target = id name of div tag where you want to display the results
----
This library is nothing special, but can be very useful and saves much time.
The library is tested only with PHP.
Every remark are welcome and if you have any idea of upgrading / changing this library you can do it.
Thanks, SkyDriver.