Witam,
Mam maly problem pod IE...
Tzn wszystko dzialalo do czasu.. dopoki nie dodwalem kolejnych funkcji w js... od tego czasu zawsze wypluwa ten sam blad: "obiekt nie obsluguje tej wlasciwosci lub metody" gdy chce wywolac jakas funckej w ktorej ciele znajduje sie odwolanie do advAJAXa.
Wywalilem prawie caly kod i dalej to samo
function $(id) { return document.getElementById(id); } // tab index dol // var stab_id = 2; var stab = new Array(); function qqq(a) { if (stab[a] == undefined) { // stab[a] = loading; advAJAX.get({ url: 'http://localhost', mode: a, onSuccess : function(obj) { stab[a] = obj.responseText; $('stab').innerHTML = stab[a]; }, onError : function(obj) { $('stab').innerHTML = 'Error: ' + obj.status; } }); } }
<http://december.com/html/4/element/div.html id="astab"> <http://december.com/html/4/element/p.html class="akt" id="astab1" onclick="qqq(1)">ddsadsad</http://december.com/html/4/element/p.html> </http://december.com/html/4/element/div.html> <http://december.com/html/4/element/div.html id="stab"> aa </http://december.com/html/4/element/div.html>
odświeżam, i ponawiam ten problem pod IE
podczas wykonywania skryptu
function praca(stan) { $('#szukampracy').fadeOut('fast'); advAJAX.post({ url : "_profil_praca.php", parameters : { "stan" : stan }, onSuccess : function(obj) { document.getElementById("szukampracy").innerHTML = obj.responseText; $('#szukampracy').fadeIn('fast'); } }); }
Szczegóły błędu na stronie sieci Web Agent użytkownika: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C) Sygnatura czasowa: Sun, 16 Jan 2011 00:02:58 UTC Wiadomość: Obiekt nie obsługuje tej właściwości lub metody. Wiersz: 112 Znak: 13 Kod: 0 Identyfikator URI: js/advajax.js
if (typeof XMLHttpRequest != 'undefined') return new XMLHttpRequest(); var xhr = [ 'MSXML2.XMLHttp.6.0', 'MSXML2.XMLHttp.5.0', 'MSXML2.XMLHttp.4.0', 'MSXML2.XMLHttp.3.0', 'MSXML2.XMLHttp', 'Microsoft.XMLHttp' ]; for (var i = 0; i < xhr.length; i++) { try { var xhrObj = new ActiveXObject(xhr[i]); return xhrObj; } catch (e) { } ; }
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)