fixing the ActivexObject error in firefox, please report any issue if some ajax is not working

This commit is contained in:
Fernando Ontiveros
2011-02-05 08:05:49 +00:00
parent 5620f6dc19
commit 66c72ce64e
2 changed files with 25 additions and 21 deletions

View File

@@ -2,7 +2,7 @@
*/
function get_xmlhttp() {
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP1");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
@@ -904,7 +904,7 @@ function refillDropdown( fldName, ajax_server, values , InitValue)
function iframe_get_xmlhttp() {
try {
xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
xmlhttp = new ActiveXObject('Msxml2.XMLHTTP2');
} catch (e) {
try {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
@@ -919,23 +919,25 @@ function iframe_get_xmlhttp() {
}
function get_xmlhttp() {
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
try {
xmlhttp = false;
if ( window.ActiveXObject )
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
function refillTextError( div_container, fldName, ajax_server, values )
{
var objetus;
@@ -976,7 +978,7 @@ function refillTextError( div_container, fldName, ajax_server, values )
function iframe_get_xmlhttp() {
try {
xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
xmlhttp = new ActiveXObject('Msxml2.XMLHTTP5');
} catch (e) {
try {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');

View File

@@ -60,17 +60,19 @@ leimnud.Package.Public({
this.core = function()
{
try{
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlhttp = false;
if ( window.ActiveXObject )
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
var xmlhttp = false;
xmlhttp = false;
}
}
return (!xmlhttp && typeof XMLHttpRequest!='undefined')?