I am getting data properly from the database and displayed in the JSP page for the first time. When I Refresh the page the page appears blank and continue to show blank data even I refresh again and again. To get proper data, I had to close and open the JSP page in a new window. What is the problem?. I am using tomcat Server.
Related
So i want to send data form the first page using localStorge method in js
and when the localStorge have data in them (not equals to null)
i want the second page to be refreshed so i can display the data in the second page
i tried this to refresh the second page each 4s
setTimeout(function(){
window.location.reload(1);
}, 4000);
it does work but i have to wait until the images are display and all
and i am afraid the second i published the site it crashes of to many refreshes
Q1: is it bad to refresh the page so many times ?Does the website crashes?
Q2:is there any way i can refresh the page 2 when the localStorge method is not null ?
How to stop page reload or refresh while I come back from view page.I am using back button where I call java script history.Go to get back to my page but the page actually got refresh and loss all data.
Hi I have following code that reloads the page based on route
$location.path('/chartpage');
$route.reload();
It works fine but I want to do further two things
Load the page in new tab or browser window
Anytim I reload the page again it reloads the same browser.
Idea is that on my current page as the numbers are changed I want this other browser to reload to show the chart wit changed values.
Thanks
I have a website in which i take some content (specified in a form) from a database with php, then json_encode it to javascript code and then place it on the page. Whether i save this content in php session or not when i enter the page url from another tab or browser it doesnt show the content. I think that this is because i dont go through the form and the javascript is executed on the client(aka the variable in which i save the content is empty). My question is how can i show the content with just entering the url of the page, not going through the form. I suppose i should save the content on the server, but how?
Here's the code of the page with the form:
http://hostcode.sourceforge.net/view/2356.
Here's the code of the page on which i show the content:
http://hostcode.sourceforge.net/view/2355
I have an HTML page. Everytime I add new content to the page, the user needs to refresh the page in order to see the new content.
What I want to do is to refresh the page automatically for them regardless of browser.
I tried putting the following but the screen flickers so many times that it does not prove to be useful:
<script type="text/javascript">
location.reload();
</script>
The JavaScript you show there does indeed reload the page. Every single time the page loads, as soon as it reaches that JavaScript. The flickering you're seeing is probably the fact that it in an infinite cycle of reloading. What you need to do is perform an AJAX request to the server to find out if there is new content, and then reload the page if there is. Or, alternatively, use the AJAX to actually update the new content on the page.