Kod
get_next_number = function (url) {
new Ajax.Request( url, {
onComplete: function(t) { return t.responseText},
});
}
new Ajax.Request( url, {
onComplete: function(t) { return t.responseText},
});
}
Chciałbym mieć funkcje która w wyniku da mi responseText który zwróci ajax.
I moje pytanie: Czy da się coś takiego zrobić, czy nie i jak się da to jak?