PDA

Zobacz pełną wersję : SOBI2 - brak uprawnień



aderal
19-03-2009, 01:01
Prosze o usuniecie tego tematu

aderal
26-03-2009, 23:07
Jezli ktos nadal ma ten problem wystarczy w pliku axsearch.class zamienic sposob wyszukiwania na ten przedstawiony, sadze ze kazdy sie polapie co i jak zmienilem :)


$('sobiSearchFormContainer').addEvent('submit', function(e) {
new Event(e).stop();
var log = $('sobiSearchResponseContainer').empty().addClass( 'ajax-loading');
var url = "<?php echo $index;?>?" + $('sobiSearchFormContainer').toQueryString();//tutaj ajax
makeRequest(url);
<?php if($config->ajaxSearchSlidInAfterSearch && $config->ajaxSearchUseSlider) { ?>
sobiSearchFormExtOpt.slideOut();
<?php } ?>
});
<?php if($autoSearch) { ?>
$('sobiSearchSubmitBt').click();
<?php } ?>
});
var SobiSearchFormComboBxCounter = 0;
var SobiSearchFormCatsChilds = new Array();
var SobiSearchFormCatsNames = new Array();
var http_request = false;
function makeRequest(url) {
http_request = false;

try{
// Utworzenie obiektu XMLHttpRequest (silnik Gecko, Webkit, Presco)
http_request=new XMLHttpRequest();
} catch(e) {
// Wyłapuje błąd jeśli JavaScript nie posiada obiektu XMLHttpRequest
try {
// Utworzenie obiektu ActiveXObject, który jest zawarty w kontrolce ActiveX IE
http_request=new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
// Utworzenie obiektu ActiveXObject, dla innych wersji IE
http_request=new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
// Wyświetlenie błędu o braku obsługi obiektu XMLHttpRequest
alert("Your browser does not support AJAX!");
return false;
}
}
}


if (!http_request) {
alert('Poddaje sie :( Nie moge stworzyc instancji obiektu XMLHTTP');
return false;
}
http_request.onreadystatechange = alertContents;
http_request.open('GET', url);
http_request.send(null);

}

function alertContents() {

if (http_request.readyState == 4) {
if (http_request.status == 200) {
if (http_request.responseText == "") {
document.getElementById('sobiSearchResponseContain er').innerHTML = "****************";
} else {
document.getElementById('sobiSearchResponseContain er').innerHTML = http_request.responseText;
}
} else {
alert('Wystapil problem z zapytaniem.');
}
}

}