[jQuery] my code only works under firefox
Hi,
The following code only works under Firefox, I do not know why it does not work under IE.
Could you help me?
Thanks a lot.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<script type="text/javascript" src="<c:url value='/javascripts/jquery/jquery-1.2.5.js'/>"></script>
<script type="text/javascript">
function refreshProgress()
{
var uploadTicket = $("#uploadTicket").val();
$.getJSON(
'<c:url value='/uploadprogress.spring'/>',
{uploadTicket:uploadTicket},
function(data){
$("#test1").val(data.demo);
setTimeout("refreshProgress()", 1000);
});
}
$(function(){
$("#uploadForm").submit(function(){
$(":submit",this).attr("disabled", "disabled");
setTimeout("refreshProgress()", 1500);
});
});
</script>
</head>