View Single Post
  #1 (permalink)  
Old 05-14-2008, 12:08 PM
Jaan's Avatar   
Jaan Jaan is offline
Moderator
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 996
Last Blog:
AdStar Ad Control Pa...
Credits: 0
Rep Power: 17
Jaan is just really niceJaan is just really niceJaan is just really niceJaan is just really nice
Send a message via MSN to Jaan
Default readyState problemo

Hey.. i have this script:
HTML Code:
<script type="text/javascript">
function displayText() {

if (getRequest.readyState == 1){
document.write("<center><img src='loading-ajax.gif'><br><font style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; color: #CCC;'><center>Loading...</center></font></center>");
}else if (getRequest.readyState == 4) {
document.getElementById('result_here').innerHTML = getRequest.responseText;
}

}
</script>
(i didnt post a full script)

well.. it don't work.. i don't know why :/

without this first if statement.. it works perfectly.. but when i add this when this script don't work..

anyone knows what's the problemo?
__________________


Cheap & Professional Web Design | Need help? Send a PM
Reply With Quote

Sponsored Links