一个简单ajax
?$(document).ready(function(){
?
setInterval("gog()",5000);
?})
?
?function gog(){
???$.ajax({
???url : '<%=basePath %>remindaddRemind',
???type : 'post',
???dataType : "text",
???success : function(text) {
????isPro = false;
????alert(text);
????if(""!=text){
????$('#MyNoticesDiv').html(text);
????}
???}
??});?
?}
??? </script>
**************************************************************
??? <div id="MyNoticesDiv" style="height: 195;width: 195">
</div>