1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 10:46:49 +00:00

use Ajax.getTransport to create our xmlhttp objects

This commit is contained in:
Andrew Dolgov
2006-05-20 14:01:11 +01:00
parent 0666e120e8
commit a58069db8a
4 changed files with 5 additions and 111 deletions

View File

@@ -11,24 +11,7 @@ var firsttime_update = true;
var last_refetch = 0;
var cookie_lifetime = 0;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
var xmlhttp = Ajax.getTransport();
function toggleTags() {
display_tags = !display_tags;