javascript - Refresh a MVC view page using Jquery -


how refresh view page without refreshing page in jquery.

here code..please resolve it

<html> <head>     <title>just test</title>    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>     <script type="text/javascript">     var auto_refresh = setinterval(     function ()     {     $('#load_me').load('samp.jsp').fadein("slow");     }, 10000); // autorefresh content of div after                //every 10000 milliseconds(10sec)     </script>  </head> <body> <div id="load_me"> <%@ include file="samp.jsp" %></div> </body> /html> 

perhaps forgot execute function 'auto_refresh();' !

try this:

<html> <head>    <title>just test</title>    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>     <script type="text/javascript">     var auto_refresh = setinterval(function (){           $('#load_me').load('samp.jsp').fadein("slow");          }, 10000); // auto refresh content of div after                     // every 10000 milliseconds(10sec)      auto_refresh();     </script>  </head> <body> <div id="load_me"> <%@ include file="samp.jsp" %></div> </body> </html> 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -