fix widget from post method

This commit is contained in:
Matthew K. Fu JuYuan 2012-12-24 15:22:26 +08:00
parent b89cd80800
commit 194b42c1e4
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,10 @@ $(document).ready(function() {
}); });
function ajax_load_proc(wapper,url){ function ajax_load_proc(wapper,url){
wapper.load(encodeURI(url), {}, function(respText,textSta,XML){ $.get(encodeURI(url), {}, function(respText,textSta,XML){
if (textSta == 'success') {
wapper.html(respText);
};
if(textSta == 'error') if(textSta == 'error')
wapper.html("Loading Failed<br/> <a href='"+$(this).attr('path')+"'>Go See</a>"); wapper.html("Loading Failed<br/> <a href='"+$(this).attr('path')+"'>Go See</a>");
}); });