ajax jquery loading problem.
good day. I am trying to post a form with jquery and ajax to the asp page and return a value back.
but on internet explorer before the picture loaded the loading text dissapeared. A sample of my page is downstairs. I dont want that.
How can i do what i wanted?
html page's address
http://www.bybilisim.com/deneme.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script>
function AjaxTest(parametre)
{
$('#sol').html('loading'); // will write "loading" when image is loading
$.ajax({
type: 'GET',
url: 'deneme.asp',
cache: false,
data: 'sec='+parametre,
success: function(sonuc) {
$('#sol').html(sonuc);
}
});
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<a href="javascript:AjaxTest('sayfa');">Şubeyi gör</a>
<div id="sol"></div>
</body>
</html>
codes of deneme.asp page.
<%
if request("sec")="sayfa" then
%>
<img src="/userfiles/deneme.jpg" width="500px" />
<%
end if
%>