Displaying 1 result from an estimated 1 matches for "fetchajaxdata".
2006 May 25
13
functions calling functions
...er an Ajax request.
In the following object the ajax request onComplete calls the
ajaxFetched function successfully. ajaxFetched tries to call function2
but function2 does not execute.
Any ideas or workarounds?
thanks
Kevin
o = Class.create();
o.prototype = {
initialize: function() {
this.fetchAjaxData();
},
fetchAjaxData: function(){
url="ajax/minimap.php";
pars="x=1&y=1";
var myAjax= new Ajax.Request(
url,
{
method: ''get'',
parameters: pars,
onComplete: this.ajaxFetched
});
},
ajaxFetched: function(){
alert('...