我使用的是URL重寫,並使用如何編碼傳遞給div.load()的URL?
$('#somediv').load(query, function (response, status, xhr) {
if (status == "error") {
var msg = "Sorry there was an error: ";
$("#somediv").html(msg + xhr.status + " " + xhr.statusText);
}
});
但div.laod()無法正常工作時,我的query
有性格像 '?', '&' 和 '='。 就像在我傳遞參數的時候一樣,div渲染不會發生。
query ="http://vmsbawcm001.ed.cps.something.com/content/pms/Snapshot.html?date=2011-09-30&[email protected]&view=external"
但這個工程!
query ="http://vmsbawcm001.ed.cps.something.com/content/pms/Snapshot.html"
那麼如何以某種編碼方式傳遞參數?或任何其他解決方案,這是值得歡迎的,因爲我無言以對..
經過一些更多的研究,我懷疑它只是@
符號這是創建問題。是這樣嗎?如果是,那麼可能的解決方案是什麼?
謝謝, 阿達什訥
哦,不是那只是一個錯字,反正我不是存放entrire URL字符串這樣,我從Webconfig獲取它,也附加參數,我只是把整個事情,讓知道什麼是通過查詢 – KeenUser