jQuery show, fadeIn, queue -
i've got html form. user can click on, let's say, 2 buttons: 1 - first buttons fires odata request server (it's not ajax) 2 - second buttons fires other logic.
now show progress bar when action 1) or action 2) executed.
in case of action 2) i've used $(loadingimageid).show() not work, it's if it's not executed immediately. however, if use:
$(loadingimageid).fadein().queue(function(next) { next(); self.onsaveorderpress(oevent); }); it works expected. can explain why show() not work , fadein() does? besides, when computation ends pop-up shown (and takes few milliseconds show in screen). during waiting time spinning wheel (animated gif) freezes. there way prevent this?
finally, how can catch odata requests? i've tried ajaxstart , ajaxstopand correctly catch of ajax requests. in case i've got odata request server. how work out? thank you.
Comments
Post a Comment