0
Nee再次幫助一些讓我瘋狂的Jquery的東西!我真的希望有人能夠幫助解決這個問題。Jquery和Ajax數據?
。由此問題
我有它運行在的document.ready它通過Ajax的方法獲取數據1種的jQuery功能。然後,我想使用jcarousel在頁面上顯示圖像。至此我的腳本。我哪裏錯了?
<script type="text/javascript">
$(document).ready(function() {
var soapEnv =
"<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \
<soapenv:Body> \
<GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
<listName>Awards</listName> \
<viewFields> \
<ViewFields> \
<FieldRef Name='ImgURL'/> \
</ViewFields> \
</viewFields> \
</GetListItems> \
</soapenv:Body> \
</soapenv:Envelope>";
$.ajax({
url: "_vti_bin/lists.asmx",
type: "POST",
dataType: "xml",
data: soapEnv,
complete: processResult,
contentType: "text/xml; charset=\"utf-8\""
});
});
function processResult(xData, status) {
$(xData.responseXML).find("z\\:row").each(function() {
var ImgSrc = $(this).attr("ows_ImgURL");
return;
});
}
function StartCarousel() {
jQuery('#mycarousel').jcarousel({
});
}
那麼究竟出了什麼問題呢? – 2010-01-19 12:41:17
你好。我實際上設法解決了一些服務器端代碼的問題。無論如何感謝您的答覆。 – Fox 2010-01-19 12:58:16
你是如何解決這個問題的? – 2011-05-28 14:39:04