clearing browser history using jquery/javascript - browser

I am having an application where there will be lots of ajax calls and jquery load functions etc.I found that dynamic content is not loaded correctly every time i open the page due to browser history,if i delete the history and refresh the page its working fine.now
is there any way to clean up the history of the browser?(is this method correct?)
Can i prevent the page from being cached????using any jquery code.so that my application wont be stored in browsers history.

you need to set cache to false in your jquery ajax settings
see here

Related

XPage does not render correctly

We have a database with anonymous access with a simple XPage on it.
After upgrading to Domino 10.0.1, it does not work correctly.
The design of the page is not rendered well and buttons do not work.
I get the following messages in the browser console (Chrome)
When I follow the dojo.js:2 link, it refers to https://<<server>>/xsp/.ibmxspres/dojoroot-1.9.7-u/dojo/dojo.js
But when I open the link, I get the login page instead of the js page.
I already played with the XSP settings on compressed and optimised css/js; but with no luck.
I also added following parameters to the XSP properties without success:
xsp.error.disable.detection.set01=true
xsp.error.disable.0380=true
When I login, all works fine.
Please advise on how to make sure dojo and css are loaded when browsing anonymously.

node.js cheerio (scraping) live updating page

There is a webpage with live text data in a span tag that updates without the page refreshing. Is it possible to use cheerio or maybe another node.js module to get the page info and keep it open so node.js also sees the updates?
I would like to not keep re-requesting. As A human with the webpage open in the browser i do not need to refresh so logically the same should be doable in node.js
True?
You can use phantomjs
It's like a real browser but without window.
You can handle all browser event, so you can know when an element is added to page.

Web design/development - alternative to manually refreshing the page?

I wonder if there is a better way to write my PHP sites without always having to manually refresh the page I'm working on. Could there be a program that monitors a folder and automatically refresh my browser whenever a change occurs. I'm developing on a local machine with a local amp stack by the way.
You can achieve this by ajax. In ajax you can check the changes in database if any new record added you can call
location.replace('');
in ajax success
Use Ajax poll (checking for status change on server with time intervals) and when the change occurs, either refresh the page with Javascript or replace the part of it to reflect the change.

Natural way to run a JS function only once when a page is opened for the first time, regardless of refreshes

Is there any natural way to make a JavaScript function run only once on JSF page?
I have a JSF page with ViewScoped backing bean. I want to run a JS function when the page is loading first time and do not do so if a user refreshes the page. Is it possible to do so without adding variables into user's session, etc?
set a html cookie on the page load and check if it is set on the next refresh, run js if it was not set.

xPages making continues requests to the server after rebuild

I have a problem with xPages after rebuild, if a user tries to access a page after a rebuild the webpage starts to make continues requests to server, The application uses extlib and the dyamic content control.
The big problem here is that if you are making interval ajax request in the webpage, the same problem will happend without user actions. So all users having the webpage open after a new design is added will automatically get this problem which could probably kill the server.
I am not sure, but I think this might be a Extension Library problem
There is a youtube video of the problem here:
http://www.youtube.com/watch?v=y15XLtWsq80&feature=youtu.be

Resources