Converting from prototype to jQuery
I would like to convert the following code to jQuery ajax.load or ajax.get function but it wont work for me...
heres the code to convert...
new Ajax.Updater(myDiv, page, { method: 'get', parameters: params, onComplete: function(){ new Effect.Highlight($(myDiv));}});
here's the code i wrote...
$(myDiv).load(page, function() {
$('#persistentBarStage').fadeIn(3000, function() {
$(myDiv).fadeIn(100);
});
});
It doesn't work what am i doing wrong? any help please...