...

View Full Version : JavaScript Error



Bhagya
08-11-2006, 10:30 AM
Hi Friends.

I have a problem . This is the DESC of my problem.

I have a form . it has some query and it is generate some reports. [get data from database] . so it has some time . i put the javascript time out setTimeOut().

with in the process i want to show my progress bar and when the time out finish then shows the data on the web page.

Pl can u send a code. (Example).

thanks

Bhagya

vwphillips
08-11-2006, 11:12 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title></title>
<script language="JavaScript" type="text/javascript">
<!--

function zxcBar(zxcid,zxcinc,zxcdly,zxcpos){
var zxcbar=document.getElementById(zxcid);
var zxcpos=zxcpos||-parseInt(zxcbar.style.width)+'px';
if (parseInt(zxcpos)<0){
zxcbar.style.left=(parseInt(zxcpos)+zxcinc)+'px';
setTimeout(function(){ zxcBar(zxcid,zxcinc,zxcdly,zxcbar.style.left); },zxcdly);
}
}
//-->
</script></head>

<body onload="zxcBar('Tst',10,500);" >
<div style="position:relative;overflow:hidden;width:200px;height:20px;background-color:#FFFFCC;" >
<div id="Tst" style="position:absolute;overflow:hidden;left:-200px;top:0px;width:200px;height:20px;background-color:#FF9966;" ></div>
</div>
</body>

</html>

Bhagya
08-11-2006, 11:53 AM
dear Friends

Thanks a lot.

Bhagya



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum