Every time the "BACK" button is pressed, the previous page is refreshed before being shown. Its a bit annoying when using YpuTube, because you click to one video, but you wanted to see another one on the home page, but when you go back, its no longer there.
Is there a way to disable the YouTube page being refreched every time I click "back", but instead just show me the info that was displayed before I clicked on any video? Somethimes, maybe, once a year it works the way I want it to, but I have no idea what it depends on.
Related
I'm looking for a way to record page switching/loading time by clicking the hyperlink in another page, in chrome only
So lets say, I have added page B's hyperlink in page A, now I want to know how many seconds it takes from clicking the hyperlink to finishing loading page A.
I'm playing around development tool - performance tab but looks like it will not record the time across different tabs/ windows.
Clicking on the link is the same as accessing that page directly through the browser, so you can use Google Chrome's "Performance" section in the Developer Tools and use the "Start profiling and reload the page" option when you're on the page you want to profile.
When I go back to the home page(Either by Clicking on the home page icon or using back button) the constructor/ready methods are not beings called meaning that page is not loaded. It is loaded only once i.e either on refresh or when I enter the url again. Why is this happening?
Yes, a page loads one time. If you want a way to check if page is now in view, you can try adapting the _visibleChanged observer from the Shop app.
I have a web-page and withing that page I am using an iFrame. this iFrame contains two buttons previous & next. On next button click I change the source of iFrame to lets say page2.html and on previous button click i change the source back to page1.html. Issue is when i click the browser back and forward buttons it causes the iFrame to navigate (depicting the functionality of those above buttons). How can I avoid this, that is on browser back button click previous page should be loaded (of browser's rather iframe's).
Thanks
I got the solution to the problem. I have to replace the url of the frame by window.location.replace(newurl).
in this case it doesn't add into browser history.
I am creating a webpage and am having some issues with how the back button works on the page. I am guessing that I need to set some headers, but don't know which ones or how. This is what I'm seeing:
(1) Go to the main page, which shows forum threads.
(2) Click a link to go to a page showing a thread. On this page, scroll down and add a comment.
(3) Comment is saved via form (edit: I have tried both POST and GET form). The same thread page is now reloaded via a redirect. The comment shows.
In Chrome: pressing the back button at this point still shows the comment as having been added. It looks as though the back button didn't work. However, the page is scrolled down as it was for (2). Clicking the back button again shows the main page. So, the back button does take me back, but if the same page is there twice, it shows the new data both times.
In IE9: pressing the back button displays "Webpage has expired". Clicking it again takes me to the main page.
How do I alter this behavior so the back button truly shows me the previous page?
(The reason I'm doing this is that I keep track of how many pages I am from the main page so I can generate a "back to main page" link. (2) above has history.go(-1) and (3) above has history.go(-2). This won't work if the user presses the browser back button from (3) since it will now be 1 away from the main page, but show the link from (3).
In step (3) you probably have a POST that returns the new HTML of the thread page. Instead the POST should redirect to a GET of the thread page.
See http://en.wikipedia.org/wiki/Post/Redirect/Get
I've been looking for an answer everywhere and cannot find the answer to this, I have absolutely no idea what I'm doing wrong.
I created a custom tab for my page, and I set the default landing tab for the page to this custom tab, however whenever you visit the page it just goes straight to the wall.
I don't want people visiting my page to land on my wall, I want them to land on the custom tab, that's why I created it.
How do I get the default landing tab option to work for my pages? They're all doing this.
If you already "like" the page (or are an admin), it will always take you to the wall. If you are not a fan or an admin, it will show you the tab specified. That is how these tabs work, there is not an always to always show the tab for fans.