我有它返回一個Ajax請求調用一個jQuery JavaScript的Ajax調用
function showUser(str)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("lister").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","popup.php?qq="+str,true);
xmlhttp.send();
}
我試圖執行不能做一個jquery,除非AJAX請求返回這段JavaScript代碼,但它不工作
$('#scrollbar2').tinyscrollbar();
那麼我應該怎樣在ajax加載後執行最後一個jquery?
如果您已經使用jQuery的,是有依賴於任何特定的原因,這'XMLHttpRequest'而不是用做AJAX的'$ .ajax'例如jQuery的方法呢? –
國際海事組織,在你的水平,沒有意義不使用jQuery的ajax方法。 – frenchie