I am trying to reload the ASP.NET page in the parent window from a javascript in a submodal window. Now I don't want a straight reload as in window.top.location.reload() because the page was previously posted back and thus a warning will be displayed by the browser. I also tried window.top.location.href=window.top.location.href, but that doesn't seem to load a fresh copy of the page. Does it make a difference that the page in the parent window is AJAX enabled and the script that launched the submodal is in an UpdatePanel?
one windown is opening a popup window.. and then the popup window is interacting with user information and then some processing with the use of some more php file.. now at last.. there is a "ok" button which should close this popup window and reload the parent window.. from where it was actually called.. i am trying to reload previous/parent window... using the function
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 can't get the iFrame to load again. In my window.load function I'm basically trying to reinitialize the fancybox iframe code and then based on the link here: [URL]
I'm trying to trigger it again. The alert appears so I know it's getting to the function but it's not opening up the iFrame.
I am trying to usw window.open , upload a file in the child window and then referesh the parent window. But once upload is done, window . opener .location.href or opener.location.replace sends a message back but I get a pop up blocker, so if I turn pop up blocker off, it opens in new page. I just want the parent page to refresh on the same window. This works on some employees stations but not on others..I don't know if there are any settings on IE that need to change, I tried everything...weird. does any one done this before?
I need a script to open a popup window which contains a php form. after the form has been submitted or cancelled i need to go back to the originated page (php also) and reload original page.
I have a product that has many features. Clicking on a feature opens a popup window with explanation. There is a js Close Window link in each. All is fine so far.
Now in one popup window there is a reference to a different page of the main website. Is it possible to have a single text link both CLOSE the popup AND go to a new page in the parent window?
This is what I would like to have happen. Upon clicking an image (button) I would like a new window to open and I also want to the parent window to load as a new page. I've been searching around and found some code. I implemented it and got the new window to open, but the parent window does not change. Here's what I have:
<script language="JavaScript"><!-- function newWindow(file,window) { msgWindow=open(file,window,'resizable=no,width=1500,height=1000');
For example, I have a page: http://www.cmela.com/zz.phpWhen i open a popup by clicking "Click Here to open popup page" and then on popup window, i wanted it to transfer parent page from making a click on a pop up window.Example is at:http://www.cmela.com/zz.phpopen pop up window, and then by clicking on a link on a pop up window i wanted my parent page to go to www.msn.com
I am looking through the code on a web page and it has the following link in the script tag within the header: Code: if (parent.window.opener) parent.window.opener.location='[URL]';
My assumption, and research on the internet would suggest that it is redirecting the user to Google, but I am a bit confused by the 'parent window' and wanted to know a few things, such as: - Would the current page be redirected, or would a new window open? - If the page was triggered for a second time, within seconds of the first time, would the redirect still work? If my understanding of the code is correct, I'm confused as to why it is on this page, as the page contains information, yet is redirecting the user to another page on load.
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 script that when you click on a form button it post the results in a new pop-up window - and doesn't change the origin window. I then create a close.window on the pop-up window to close it. I now want to make it so the origin page is reload/refreshed after the pop-up is closed via the link. I have tried a few things but can't seem to get it to work.
i have this code i need to close the parent.html window when the child window opened, i need the code for that working well in IE and Firefox Parent.html
<HTML> <SCRIPT TYPE="text/javascript"> function sendTo() { window.open('child.html','_blank','resizable=yes,width='+(screen.width-500)+',height='+(screen.height-500)+''); } [Code]...
Im trying to create a hidden form field in a parent window from within a child window (popup). I am trying to use jQuery, but unfortunately the hidden field does not get created.
I have a couple of utility windows - a calculator and a calendar that popup from my main window. I would like them to always stay in front of the parent window until they are shut down with there own close buttons. As it is, when you click back to the parent window, of course it comes in front of the child windows. Can I do this?
I have an HTML page where I am opening a child window using window.open. the child window is something like yahoo.com. I want to refresh the parent window when the child window is closed.
I'm using window.showModalDialog but having an issue trying to set the parent window(main browser). I open modal window A which is then opens modal window B, top of modal window B onload I do window.opener.close()". My issue now is when i'm finished with B I set parent window(main browser) to a new url with window.opener.location. So my problem is modal window A the parent has been closed so window.opener.location will not work.
Put a link on my page that will open an external site (over which I have no control) in a pop-up window. When the user closes the pop-up, I want my original page to redirect to another page. The difficulty I'm having is that I can't add any code to the page in the pop-up as it's not my site.
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.
I'm trying to reload a frame from a pop-up, but really cannot figure this out.
Within my index.htm file, I make a link to call a pop-up frame with a javascript function that calls the following code from an external javascript source file, dynamically created with PHP...
I am building a web site and am trying to streamline the way the site works. I have a list of companies that each will have a link to a new page. What I want to do is make it open a single pop up for all companies. In this pop up there will be one image and a few lines of text. Therefore, when a viewer clicks on one company's link and then clicks on another it will load the second company's info in the same pop up. Code:
I am a total javascript newbie and have been pulling out my hair trying to figure out how I could reload an iframe inside the main browser window from a popup window.
What I am trying to do is have a system where people can upload pictures from the popup and then veiw the pictures they have uploaded as they upload them in the main window.
I am using a script to open a new window and center it on the screen (to expand a photo). The problem is that when you click the link, it opens the new small window in the top-left corner, then moves it to the center.
Is there anyway to have it just load in the center? It doesn't look professional moving mid-load.