fixing the ActivexObject error in firefox, please report any issue if some ajax is not working
This commit is contained in:
@@ -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');
|
||||
@@ -920,11 +920,15 @@ function iframe_get_xmlhttp() {
|
||||
|
||||
function get_xmlhttp() {
|
||||
try {
|
||||
xmlhttp = false;
|
||||
if ( window.ActiveXObject )
|
||||
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
} catch (e) {
|
||||
}
|
||||
catch (e) {
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} catch (E) {
|
||||
}
|
||||
catch (E) {
|
||||
xmlhttp = false;
|
||||
}
|
||||
}
|
||||
@@ -934,8 +938,6 @@ function get_xmlhttp() {
|
||||
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');
|
||||
|
||||
@@ -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')?
|
||||
|
||||
Reference in New Issue
Block a user