javascript - c# mvc display data from webapi every 10 seconds -


i developing small application. want cycle through records api , display 1 of record in view every 10 seconds.

can me how achieve this?

thanks

you can use setinterval function in javascript:

setinterval(function(){ myfunctiontodothework();} , 3000); 

the 3000 refers milliseconds (3 seconds). change required.

see here : setinterval()


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -