All works for IE, but when coming to mozilla ,firefox the refresh is a step delayed, i.e when I open my popup to add an itme to my cart on parent page ,for the first time it does not show anything , but when I try to add another item , the first one shows.
All works for IE, but when coming to mozilla ,firefox the refresh is a step delayed, i.e when I open my popup to add an itme to my cart on parent page ,for the first time it does not show anything , but when I try to add another item , the first one shows.
I have this code in a page that appears in my iframe if requested from parent:
<script type="text/javascript"> parent.rrr(); </script> The parent code is: function rrr() { javascript:location.reload(true); }
So, the person clicks a link from the parent, it does a php process in a hidden iframe, which then tells the parent page to refresh. The only problem is that it puts Firefox in a constant loop of refreshing. IE and Chrome work fine. They refresh once and stop.
Though the src code opens the iframe like so: <iframe src="" style="display:none; height:1px;" name="hdplus" id="hdplus"></iframe> Firefox seems to refresh the page with the memory of the child page being in the iframe, constantly looping the child request to refresh the parent.
Why won't Firefox just accept that no page should load in the iframe, as stated in the code? I need to stop this loop, which means I need to get firefox to reset the iframe as it reloads the page.
I have a page. In that page is an iframe, lets name it 'A'. inside A there is another iframe 'B'. there is a link on that page which on click opens a popup. In that pop up, there is actually a document upload facility. Now i want that after every upload (onSubmit), iframe A should refresh.
have done it many times but today its not working.
function validate() { (window.parent.opener.location.href)=(window.parent.opener.location.href); window.parent.opener.location.reload(true);// this is tried as well }
I'm unsure if this is a php or javascript problem as I am new to javacript...
I am using a javascript:popup('page.php') command to open a popup box and allow the user to make a few changes to a mysql database. However the values that are changed are displayed on the parent page (the one that the user clicks the popup link on).
Is there a way to refresh the parent page from the popup, so when they submit the form in the popup the parent automatically refreshes with the new values (rather than the user having to manually refresh the page)?
Normally this would be pretty straight forward, but I've tried a bunch of examples and none of them work.
I am attempting to refresh a menu I have in an iframe. I will explain. I have a index.php page with 3 iframes in it (this is the parent). The top frame is for the site logo, the left frame is the menu (I call it menuframe) and the frame beside that is for the page content (contentframe).
I have the menu with various options, when the user logs in it should refresh and show some addition options (logout, admin area, etc).
The login page appears in the contentframe, once the user logins I want the menuframe to refresh to list these new admin options. I know my php session is working fine because if I manually refresh the menuframe it shows the items.
Alright I have an Iframe, and at the end of that Iframe I have set a variable with JS to be equal to TRUE, indicating that the page has run through the script. I then check that the iframe from the parent window for that variable, if it has not been set yet (or does not equal true) it reloads the iframe.
The code works fine FF and Opera. However in IE it does not reload the frame if it is not true, and in Chrome it alerts undefined and does not reload the frame I have tried accessing the frame through the dom and it did not work for me, and i have also tried simply adding a tail to the iframes source with no success. :confused:
Using JavaScript, how do I open a Child Window, upon clicking a link in the Parent Window? Is it possible to have a Refresh button on the parent window, that refreshes the parent window onclick?
The partent contains a display header and the iFrame contains rows of data, the iFrame is set to refesh every 20 seconds.
There are times for whatever reason the iFrame does not refresh. Is there a way I can have some sort of timer in the parent that reload the set if the iFrame has not refreshed after 20 seconds.
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?
I have a PHP page with an iframe where I load PERL/CGI content. Now of course when I click anything on the parent page the iframe refreshes with it.
But what I really want is to have the parent page refresh when anything inside the iframe is clicked. Of course the iframe should not refresh and go to initial view then. So basically I am looking for a way to have ONLY the parent page refresh every time something in the frame is clicked or to have the parent page and the iframe refresh but with the iframe retaining the last user position.
I have a parent page that when load populate a div area from database.
I want when I click and open a child page, do some selections(for example check some checkboxes) and press submit, the child will close and the div area in parent will refresh .
I open a pop-up window and try to refresh it contents every 30 seconds. the code below works in Firefox browser but in IE i get Permission Denied error. any suggestions how to make it work in IE? ....
why my simple javascript to refresh the parent window doesn't work in IE8? When the child window closed, it reopen another new window for the page I want the parent window to refresh and nothing happened on the parent window.How can I make it load the page from parent window instead of a new window ??? it works perfectly in other browsers but not IE.
Code: <script language="JavaScript"> <!-- function rent() {[code].....
I have a dynamic page, it's a calander so called calander.asp
When the page loads it opens a popup window (filters.asp) containing a form that a user can filter different dates with different filters.
function openpopup(){ var popurl="filters.asp" winpops=window.open(popurl,"","width=400,height=600,scrollbars,menubar,") }
openpopup()
What im trying to do is get the when the user fills in the form. it submits to the calander page, (the parent?) <form name="form" method="post" action="calander.asp" target="_parent">
i want the popup to remain intact. when the form is sumbitted it opens a new window behind the filters.asp popup and doesn't filter the correct results.
I have seen threads all over about this but I am very new to JS and can not figure it out still. So what I have is a popup containing a button. Once you click on the button I need the popup to close and the parent page to redirect to a specific link.
Wondering how one would go about creating a popup window that would exactly copy the size & location of the parent window. I am guessing that you would combine two functions, one to assign size & location of parent window to JS variables; the next to open the popup incorporating those variables. I'm sure i can find snippets on the web. would there be a simpler way?
All three values are received at the JavaScript function. Have problems in translating and passing it to the parent. Trying to do the following from popup
I want to send data from a form on a popup to a form on its parent page. I have checked several approaches, but none of them is working with me. In the end, I've just tried to use an existing example from the web (http://www.plus2net.com/javascript_t...dow-child3.php) but even this is not working locally after copying the code from there, while it's working well when I try it directly on the page.
I have absolutely no clue what I am doing wrong. But after this experience I have my doubts, that it's not about the code. EDIT: I just found out, that this problem is specific for chrome, if I try this page on the web, it's working on chrome and firefox. But if I try it locally, it's just working on firefox. Does anybody have an idea how this could happen?
How can I use a pop-up page to navigate the parent page?
For instance, on my homepage, I have something like "Click here to choose your location". This should open up a page, with a list of option that I can choose to navigate the homepage!
Here isthe problems that I'm trying to solve when I want the user to close the popup window via a "Close Window" button. fyi the popup window contains a survey.
If parent window is open & minimized > Then I can't bring to focus on the parent again, it stays minimized.
Is there an easy way to maximize the parent again?