Actually, how do this work?
I'm a jQuery newbie. I use $.post() like this::
$(document.body).ajaxStart(function() {
this.style.cursor = "wait";
}).ajaxStop(function() {
this.style.cursor = "default";
});
function tidyTextarea(t) {
$.post("tidyTagsString", {tagsstring:t.value}, function(result){
if (result)
t.value=result;
});
}
But now I'm getting an error "this.style has no properties" in the
firefox javascript console.
Jörn Zaefferer wrote:
> $(document.body).ajaxStart(function() {
> this.style.cursor = "wait";
> }).ajaxStop(function() {
> this.style.cursor = "default";
> });
>
> I like the unobtrusive simplicity.
>
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/