I have an html page with a div element within a form for dynamically
creating textfields.
The problem is when I click a link on the page, or the submit button,
then click the back button, the new textfields in the div element are
not there anymore.
Does anyone know how this scenario is usually handled?
I have a page where a user can progressively download more thumbnail images. New thumbnails are loaded using '$.get' followed by an 'append' to the main thumbnail container. If a user clicks on a thumbnail then they link to another page to see the full size image. If the user then presses the back button, the page of thumbnails has returned to its initial state. I was hoping that all the additionally downloaded thumbnails would remain in memory! Is there a way around this? Keeping track of any additional thumbnails that have been downloaded when navigating the to the full size image page and then re-loading them when the user returns to the thumbnails page is not really an option as I don't want the user having to wait for this. This is what facebook appears to do after one has loaded lots of additional items on their news feed - if one links to another page and hits the back button, my suspicion is that all the items are re-loaded - they're not just re-displayed from memory.
I have a page where you select a radio button and submit to get certain results. When pressing the back button to get back to the original search page, however, the radio button is still selected, but the page lists it's value as undefined. I wish to do one of the following:
1) assign the radio button's value to what it is actually showing
2) clear out all selections
Here is some relevant code:
Code: function PageLoad() { document.all.item("radioSearch").value = 0; alert(document.all.item("radioSearch").value)
So that after they click the button that triggers the facebook share, 7 seconds after they click it, some text appear and the picture they click disappears.
I want my webpage to print an image when the user clicks the "Print this Image" button. I have tried but when I click the button it prints all the contents including the image! What I want is that when the user clicks the button it shud print only the image in that page and nothing else. I have placed the image and the button in a form tag, in a separate table below the main table in which the main contents of the site contains, but it still dont work. How I can make it work?
I'm looking to have a lightbox pop up when a user clicks the Back button in their browser rather than just navigating back. The purpose is to ask a question with a Yes/No answer, and if they click No, I allow them to go back. The only thing I've found anything like this is the onUnload event, but that doesn't prevent them from going back. How should this be handled?
I am trying to write a script that uses the IF statement to see wether or not a user clicked the back button to come to a page, and then if it's true to not let the page load and kick them back X number of pages (say 4) This is what I have so far:
I have a little problem in my code.i want display the fetch value from db in a textfield after pressing load button.i am using ajax post method for it but cant figure it out
I was just told that one of the four navigation buttons on our site (www dot improper dot com) is not showing up for people here at my office (who are all on Windows XP + Firefox 3.07).
I am trying to capture the back button and redirect if it is a certain URL, if not just go back like a normal back button.I've never really messed with the history except for something like this: <a href="#" onClick="history.go(-1)">Anyone have an example using this plugin: [URL]r any other plugin that might achieve this
I am using the double combo script (see below) on my site so people can selet reports that open in a new window with no toolbars.
To date the script has been working flawlessly but today I've noticed the "Go" button has 'gone' when viewed in Netscape or Firefox.
I've gone over the script many times trying to work out what's wrong but can't see anything. Can someone please have a look at the script (with a fresh perspective) and tell me what's wrong :confused: :confused: :confused: ?
Also is it possible to add a blank line between "2006 Deferred Matches" and "2005 Tournament Standings" ? Code:
I am wondering how Back, Forward browser button works for iframes. Does it bring back/forward iframe or top window? I remember I had before a problem because I wanted to bring back iframe and not top window as it did. But today I tested my Facebook app and was surprised to see it works as I need which means it brings back/forward iframe window and not top. Is it possible that Facebook has some javascript code which does that or is this normall behaviour?
I have a graphic with a rollover for site navigation on each page. I put the page to go back to in the rollover javascript.
My question is, is it possible to put in some code that will refer the visitor back to whatever page they came from rather than one I specify?
The rollover is combined with a tooltip script to make matters fun (below). However, I'm quite happy to lose the tooltip to have the link perform as a back button.
<a href="../index.asp" onmouseover="document.images['link1'].src=img2.src; showtip(this,event,'Back to home page');" onmouseout="document.images['link1'].src=img1.src; hidetip()";><img src="bhome.gif" name="link1" border=0></a>
how do i make the page go all the way to the top after you press the back button?
for example, you would go to page 1 and you scroll mid-way, then you press a link to page 2. then you press the back button on page 2 and takes you back to page 1 but it brings you back to the section where you scrolled mid-way.
is there any way to make it so it will automatically bring you to the top of the page. ive seen it on other sites.
after hitting 'back' button I'm taken to spot on page where I was, but I'm being asked to do the opposite -- take user to the top of the page, after hitting 'back' button... when I look up this issue, most people complain of the opposite - that the browser takes them to to top of the page after hitting 'back' button...;-) [URL] is there a way with JavaScript to force page to go to the top of the page when you navigate to a back via 'back' button?
The site that I'm currently working on is related to a computer game, and I'm creating an interface similar to the game using js for rollovers and imagery changes.
However, one thing that web browsers have that the game doesn't is a "Back" button. I don't want to disable it--I hate when sites do that--but I want to makes sure that button changes that happen going forward also happen going backward.
That said:
1: Is there any way to force a function to run when the back button is pressed? And if not...
2: Does the body onLoad event work when the page is returned to using the back button?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> Back Button Test </title> <script language="JavaScript"> <!-- function createDiv(){ var div = document.createElement('div'); div.innerHTML = TEST DIV' document.body.appendChild(div); } //--> </script> </head> <body> <input type="button" value="Create Div" onclick="createDiv()"> </body> </html>
I using this code sample to create some divs in Firefox and IE6. After going to another site ex:google.com..if I click in the back button the created divs remain in Firefox, like I want, but doesn't in IE... Do you know what's wrong?! Is this an IE6 lack?!
I have used thickbox js library to display 'popup contact cards' on a private website. which requires the user to login, I chose this as it's far better than using real popup widows, or full windows do display the small amount of info (name, position, and phone number).
However the client has had trouble with some users clicking the browser back button to exit the 'thickbox' screen instead of the 'close' text in the thickbox header bar (or using the esc key as you can in the latest version of Thickbox), clicking the back button sometimes leads to the user being logged out returning them to the 'please login' page.
I would like to disable the back button in IE7 and IE8. I assume the best way is to use window.open. I tried below and it disabled the IE back button but doesnt show the menu items, url bar etc.
Code: <a href="#" onClick="window.open(theURL, 'newpage.html', 'fullscreen=yes, scrollbars=auto')">go to page with disabled IE back button</a>;
Is there anyway to detect when the back button has been pushed? I have three frames, and it requires three pushes of the back button to get back to the previous "window". I would like to detect when the user pushes it and send them back in one go.
Can someone point me to a script that will allow me to implement a "back button" in an HTA, since there is no history for HTA's. Understand this requires an array, is there any sample code out there ?