I have a jsp page that is refreshing periodically after 5 second to display latest data. In this page I am calling js files . Using jquery ajax refresh i am able to refresh my server side coding but it is not affecting on the page. I guess this is because my java scripts are not getting refreshed periodically.
Please tell me how to call javascript after jquery ajax refresh.
Below is the code i am using for the jquery java script refresh
<script>
            (function worker() {
                $.ajax({
                    url: 'http://localhost:8088Login.do', 
                    success: function(data) {
                       // $("#refresh").html(data);
                        // alert(data);
                    },
                    complete: function() {
                        //alert("refresh");
                        // 
                        // Schedule the next request when the current one's complete
                        setTimeout(worker, 5000);
                    }
                });
            })();
        </script>
 
     
     
     
    