D
David Mark
(Per Matt Kruse's request about using Ajax with jQuery.)
jQuery throws exceptions in IE (all versions) and there's no way for
the calling app to know this will happen (it will just blunder into
it, leaving documents in an unreadable state.)
Well, only for one large segment of the computer-savvy population and
only during the day.
xhr:function(){
return window.ActiveXObject ? new ActiveXObject
("Microsoft.XMLHTTP") : new XMLHttpRequest();
},
He also wanted to know about something called "fadeOut" as well.
Matt, that's just the old setOpacity function, which has been
published here repeatedly. Use window.setInterval to complete your
own "fadeOut." Of course, a fade transition is virtually free in most
of the latest browsers (always has been in IE.) Firefox is sure to
follow, so don't worry about writing animations in Javascript (they
won't look very good on agents like iPhones anyway, assuming they work
at all.)
I posted this on top as I figured others would be interested. If you
don't understand how the time of day could cause variations in jQuery
behavior (on the same agent no less), you really should. Or... just
skip it (as has been recommended repeatedly for the last three years.)
For more on jQuery and its erstwhile promoter:
http://mattkruse.com/2009/02/11/jquerys-latest-stab-at-competence/
HTH.
jQuery throws exceptions in IE (all versions) and there's no way for
the calling app to know this will happen (it will just blunder into
it, leaving documents in an unreadable state.)
Well, only for one large segment of the computer-savvy population and
only during the day.
xhr:function(){
return window.ActiveXObject ? new ActiveXObject
("Microsoft.XMLHTTP") : new XMLHttpRequest();
},
He also wanted to know about something called "fadeOut" as well.
Matt, that's just the old setOpacity function, which has been
published here repeatedly. Use window.setInterval to complete your
own "fadeOut." Of course, a fade transition is virtually free in most
of the latest browsers (always has been in IE.) Firefox is sure to
follow, so don't worry about writing animations in Javascript (they
won't look very good on agents like iPhones anyway, assuming they work
at all.)
I posted this on top as I figured others would be interested. If you
don't understand how the time of day could cause variations in jQuery
behavior (on the same agent no less), you really should. Or... just
skip it (as has been recommended repeatedly for the last three years.)
For more on jQuery and its erstwhile promoter:
http://mattkruse.com/2009/02/11/jquerys-latest-stab-at-competence/
HTH.