Document.location.reload(true) Vs Regular Refresh - Reload The Frame
Nov 17, 2010
Is there a difference between right clicking an iframe and reloading post reponse vs. using javascript to reload the frame? So far, the javascript route hasn't worked for me. [some context] I am writing a little bookmarklet to help me with the online registrations at my school. Here is the setup.
Load up a page on the domain. Remove all body elements. Insert an iframe. Set iframe to page for class roster search. (in iframe on school search page) Select class search options, POST the form data, and view results in frame. *This works perfectly, but I need to have it refresh results every minute or so. When I use frame.contentDocument.location.reload(true); the frame loses the post data or something and the page is broken. BUT when I just right click on the frame and select "reload frame" it works perfectly. What is the difference between rightclicking the frame and refreshing it like that vs. using javascript to reload the frame?
View 1 Replies
ADVERTISEMENT
Aug 13, 2009
I have a popup that contains a form. When I submit that form, I need 1) the data to get saved into my database, 2) the popup to close, and 3) the parent window to refresh and display the updated data.
I found the following code in an old thread, but the parent window still shows the old data after it appears to reload. The data is saved in the database, but the parent window only shows the updated data when I manually refresh it by hitting F5.
Code:
<form action="process_form.php" method="post" onSubmit="window.opener.location.reload(true); window.close();">
View 3 Replies
View Related
Mar 14, 2006
I'm having a hell of a job getting this to work in Safari: the only thing I can think of is that one can't use reload() across to another frame for security reasons. Does anyone have a concrete answer or solution for this? I'm trying to do this:
top.frames["mainContent"].location.reload();
View 9 Replies
View Related
Aug 5, 2011
Code:
<a name="loc"></a>
<a href="#loc" onClick="document.location.href='#loc'
document.location.reload(false);return false">Click here to go to your location</a>
When you click onto the link you should go to the page location marked by the anchor tag "loc", however, upon clicking you go to the top of the page and never redirected to the exact spot where your anchor tag is located. Why is that? I'm using IE6 (per requirement) as my platform.
View 9 Replies
View Related
May 30, 2006
I'm using window.location.reload(true) to refresh the current page. It
works fine in IE but in FF it doesn't seem to work correctly. If I
view the page source, I see that it has been updated, but the display
isn't updated. What's going on?
View 1 Replies
View Related
Jul 20, 2005
I want to be able to reload a frame only when an address specific is called using Netscape 4.x.
I thus introduced into the page the following script (which does not work...):
< script >
/ / Netscape 4.x
bw.ns4?reload.();
< / script >
I would like in fact that the frame is reloaded in the same way that when one uses the function " reload frame" of the contextual menu of Netscape 4.x.
View 2 Replies
View Related
Dec 10, 2002
I use this in my code :
opener.location.reload();
This works well in Internet Explorer and not in Netscape....
View 3 Replies
View Related
Jul 23, 2005
I'm popping a window to a page with a different dns than the parent, and
i want the opener's location reloaded when this window is closed.
With Mozilla it seems that all the opener's methods and properties are
protected because the dns are different. A security exception
(permission denied) is thrown every time i try to exec an
"opener.location.reload()" from the pop up window.
An alternative would be catching the window closing from the opener, but
i don't know how this could be done.
View 2 Replies
View Related
May 22, 2010
I have an iframe that is used to access the server so the entire page doesn't reload. The frame works great the first time but after the frame has preformed the query and reloaded, if the script tries to access the frame, I get a "permission denied" error.
server = (document.all) ? window.frames['SERVER_REQUEST'].document.getElementsByTagName('input') : document.getElementById('SERVER_REQUEST').contentWindow.document.getElementsByTagName('input');
post_edit.onclick = function() {
server['REQUEST_CRITERIA_0'].value = "some value";}
View 2 Replies
View Related
Apr 30, 2009
I am trying to use the onclose function on phatfusions multibox in order to refresh the parent window when the multibox is closed. The problem I have is that as soon as I load the page it gets stuck in a loop. The code I am using is as follows
Code:
var box = {};
window.addEvent('domready', function(){
box = new MultiBox('ab', {descClassName: 'multiBoxDesc',onClose:location.reload(true),useOverlay: true});
});
View 2 Replies
View Related
Aug 6, 2010
i am invoking window.opener.location.reload function from a pop up window to reload the parent page. But this seems to behave randomly. Sometimes the reload would preserve form data eg. the state of the drop down lists. On some other occasions, it would reset all the drop down lists and form data. Does window.location.reload resend form data to the server?
View 1 Replies
View Related
Oct 27, 2011
I have a simple product display with an product image. The product image changes with ajax when i click in a dropdown menu on another color.
Now i added the (beautiful) zoom script cloud zoom. It just works fine but after i click on another color and the product image reloads the script does not work anymore. instead my <a> is just a normal <a>.
This is the part that reloads at all:
How can i reload the function when this part reloads? Or what else could i do?
View 2 Replies
View Related
Jul 4, 2009
I have an iframe somewhere on my page. Now on click of a link, I would like to show it in a different location on the same page, BUT I don't want it to reload again. I've tried this simple method but it doesn't do it because the iframe reloads in its new location.
<script type="text/javascript">
function move(what, where)
{
document.getElementsByID(where).innerHTML = document.getElementsByID(what).innerHTML;
}
</script>
[Code]...
View 2 Replies
View Related
Aug 12, 2010
I am using this code to refresh the browser after a iframe has finished loading. Does anyone know a cross-browser one that will work on all browsers. I have tested it on firefox and internet explorer, it seems to only work on firefox.
PHP Code:
<script type="text/javascript">
window.onload = function() {
document.getElementById("updates").onload = function() {
[code]...
View 4 Replies
View Related
Oct 13, 2011
I have 2 Divs. One Div has a form and another one DIV should get refreshed. While I submit the form, another DIV should reload without refresh/reload the page. I submit the form using Ajax its working fine. The content is displayed in the Div2 should reload. How to do it?
Example
<div id="one">
<form>
<input type="text" name="myname" id="myname" />.
[Code].....
View 3 Replies
View Related
May 15, 2009
I am having trouble with a script that displays the url of an iframe. On this page, I have a single iframe and want to display the url of the iframe in a div. It works upon initial loading, but the url does not change when a link within the iframe is clicked and a new iframe page loads within the frame. My users need the ability to determine and directly link/view the iframe url.
Here is the script
<iframe id="mainFrame" name="mainFrame" class="inner-center" frameborder="0" scrolling="auto" width="100%" height="400"
src="whats_new.htm"></iframe>
[Code]....
what to research and implement. Can you reload the content in the div? do I want to look at cross-frame scripting?
View 3 Replies
View Related
Jun 5, 2011
When I use document.location.reload() it seems to reload all the images and the css file and it's slow.
I want to reload the page and change the anchor in the url. But when I do document.location = "http://mysite.com/page#anchor" No reload happens because it's already on that url.
Is there any way to reload the current page and change the #anchor without forcing the reload of the images/css?
View 2 Replies
View Related
Feb 26, 2009
I have a piece of JavaScript code that uses the location.Reload method to reload a form that has a textbox and radio control. Both are supposed to contain the same random number. When a button is Clicked, the location.Reload method is called and everything updates as expected. However, the BROWSER Refresh button only repopulates the dynamically generated radio button. The text box retains the old value.
[Code]..
View 1 Replies
View Related
Nov 24, 2009
I wonder why firefox won't work with this script below, but it works on IE, Safari, and Chrome instead?
Code:
$(document).ready(function(){
$(window).resize(function(){
location.reload();
[Code]....
The reason to reload the page is to reload the google map when the window is being resized.
Here is the link to look at, [URL]
View 2 Replies
View Related
Jul 23, 2005
i would like to have a link, such that when the user clicks on it, a script is fired to go to server and check for page updates, if any, it should request a reload, else stay silend (terminate)
is such thing possible?
View 4 Replies
View Related
Nov 5, 2006
My main browser page has an iframe. Whenever the iframe is reloaded
(updated), I want to automatically refresh the main webpage as well.
How can this be done, preferably using javascript?
View 2 Replies
View Related
Dec 23, 2010
I'm pretty new to all this javascript and jQuery stuff, so please have patience with me if I don't understand your answers the first time. I'm toying around with a tiny page for my webcam and I'm already using jquery to update the image(s) everytime 15 seconds has gone by. I've tried implementing fadeIn so the image just fades over to the newly refreshed image, but I haven't had any luck with it.I hope some of you can lead me in the right direction as to how I can implement this function.
[URL]...
View 1 Replies
View Related
Feb 18, 2010
I have the following problem: In wordpress I wanted to popup the login-page (wp-login.php) and i used the fancybox to generate an iframe. after clicking the "login" button i want that the fancybox is closing (thats not the problem) and i want to reload the whole page so that it recognizes that i'm logged in.
Now that is the problem .. I cant reload the index page when clicking the login button, because (i think so) the login document is in a iframe and is not able to reload the whole screen). I don't know the "reload" command, too, maybe load("index.php"); ? :D
View 2 Replies
View Related
Jun 20, 2011
I need some script to force the browser to reload/refresh when a page is reached from the back button.
EG You're on page A -> You click a link onto page B -> You Press Browser back to go onto Page A, it has old content that requires a reload.
Now, my page is currently php so I won't bother with my code here as I am looking for any solution (I have also posted in php forum).
Any JS solution that will trigger a reload on browser back is appreciated. I have tried a few ideas, most work in Chrome, IE always works, Firefox 4 and Opera 11 wont reload, simply fetching from cache I believe.
View 3 Replies
View Related
Jul 20, 2005
"top.someFrameName.location.reload();" doesn't work for Netscape 7 (it
works for Netscape 4.75!).
Any idea how to fix this.
View 2 Replies
View Related
Jul 23, 2005
I have some code that changes a PDF file in another frame using:
parent.frame.document.location.href = "PDF File"
This code works fine the first time it is called. But if a PDF file is
in that frame and the code is called again IE gives me an error:
"no such interface supported"
I have used this code for the past 5 years and it has worked fine with
Adobe Acrobat 4-6 it is only 7 that started to cause me grief. It is
only IE that has this problem, Netscape seems to work fine.
I have checked the web and talked to Adobe and have yet to find a
solution.
View 2 Replies
View Related