Hello,
I have narrowed my problem to the following:
var getreviews = new Request.HTML({
url: '/RVS.php',
method: 'get',
onRequest: function(){
$('loadReviews').set('text', 'loading...');
},
onComplete: function(response){
$('loadReviews').empty().adopt(response);
}.bind(this),
onSuccess: function(){
this.adjustReviewHieght();
}.bind(this)
}).send();
My problem is that the onSuccess if firing before the html page is
loaded.
How can I call this.adjustReviewHieght(); only after the response is
loaded?
I'm thinking of chaining, but don't know how.
Any ideas?