Ajax script by Matthew McNaney ------------------------------ Initiates an XMLHttpRequest. This script is not usable alone. It requires direction and purpose. ----------------- $file_directory = 'output.php?who=world'; $success = "alert(requester.responseText)"; $failure = "alert(\'A problem occurred\')"; echo 'Click me'; $vars['onload'] = false; javascript('ajax', $vars); output.php ------------------ Clicking the Click Me link will then pop up an alert box with "Hello World!" within. Thanks to Cameron Adams for basics of script: http://www.sitepoint.com/article/remote-scripting-ajax