Home > front end >  How ASP words or figures in situ changes?
How ASP words or figures in situ changes?

Time:09-23

How ASP words or figures in situ changes?

Output a "1", for example, in the case of not refresh the page, such as this one will become 2, then 3,,,,,,,,,

CodePudding user response:

Ajax...

CodePudding user response:

javascript

CodePudding user response:

By js DOM implementation operation, if there are interaction and background, using ajax or hidden iframe

CodePudding user response:

Roughly as follows, can according to demand to modify js:
 
<script language="javascript" type="text/javascript" & gt;
//regularly update time
The function refresh ()
{
Var div=document. All (" divTime ");

Var strTime=Default1. GetAllOnLineUser (). The value;
If (strTime!="")
Div. InnerHTML=strTime;

//1 seconds refresh
Window. The setTimeout (refresh, 1000);
}

</script>
  •  Tags:  
  • ASP
  • Related