J
Jake Barnes
I was reading the article over 24 Ways
(http://24ways.org/advent/easy-ajax-with-prototype) and saw this
example of using Prototype:
function greet(){
var url = 'greeting.php';
var pars = 'greeting-name='+escape($F('greeting-name'));
var target = 'greeting';
var myAjax = new Ajax.Updater(target, url, {method: 'get',
parameters: pars});
}
Which I tried to copy on my own page but I could not get it to work.
I'm calling a PHP script that says simply
echo "working";
simple.just a test
This is suppose to work on when people click "Save page".
http://www.publicdomainsoftware.org/ajaxExperiment.htm
(http://24ways.org/advent/easy-ajax-with-prototype) and saw this
example of using Prototype:
function greet(){
var url = 'greeting.php';
var pars = 'greeting-name='+escape($F('greeting-name'));
var target = 'greeting';
var myAjax = new Ajax.Updater(target, url, {method: 'get',
parameters: pars});
}
Which I tried to copy on my own page but I could not get it to work.
I'm calling a PHP script that says simply
echo "working";
simple.just a test
This is suppose to work on when people click "Save page".
http://www.publicdomainsoftware.org/ajaxExperiment.htm