Opener Location Reload Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow window.opener.location.reload not working in chrome the company Business Learn more about hiring developers or posting ads with us Stack location href permission denied Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of permission denied to access property href 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up window.location.reload(); not working for Google chrome up vote 4 down vote favorite I am using AJAX action permission denied to access property reload iframe after getting the response, I want to reload the current page, for which I am using: window.location.reload(); It works fine on Firefox and IE, but it's not working for Chrome; the content which I want display empty. Is there way to reload the page in chrome? window.opener.document.location.reload(); self.close(); javascript google-chrome share|improve this question edited Jun 20 '12 at 7:37 gdoron 85.2k29186253 asked Jun 20 '12 at 7:24 sunil 41119 I just tested and it work. Anything showing in the Chrome's JavaScript console? –Alvin Wong Jun 20 '12 at 7:40 nothing is display –sunil Jun 20 '12 at 8:17 Do you mean you (1) get an AJAX response (2) reload the page (3) then the content is gone? –Alvin Wong Jun 20 '12 at 8:21 yes for eg. am deleting the selected music file from drop down list through ajax in response am getting deleted successfully. To get the latest list am reloading the current page, at this movement the remaining filed content is also going and displaying empty. –sunil Jun 20 '12 at 13:33 Of course they are gone because you refreshed the page and your old content generated dynamically (or the user has input) will not be saved. –Alvin Wong Jun 20 '12 at 13:46 | show 2 more comments 7 Answers 7 active oldest votes up vote 7 down vote Not sure why, but in my case i fixed it by wrapping the reload() call in a setTimeout with 100 ms. setTimeout(function(){ window.location.reload(); },100); share|improve this answer answered Aug 27 '15 at 10:24 Michaja Broertjes 20527 add a comment| up vote 6 down vote try the below: window.location = self.location; above code does n
WIDGET(v1.1) 2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm 3) Describe problem: The Popup window is working perfect as I want in my ASP.Net page I want to refresh Parent window on close of the Popup. _dopostBack is also working but, I need to refresh the whole page as Popup window is adding/removing run time Textbox in parent window. As the code is using iframe to generate popup window.opener is not working. jscheuer109-02-2011, 10:39 AMIf I understand you correctly: window.opener.parent.location.reload(); Or possibly: parent.location.reload(); samijsr09-02-2011, 10:50 http://stackoverflow.com/questions/11114725/window-location-reload-not-working-for-google-chrome AMHi John I have tried all those window.opener.location.reload() and also parent.location.relaod() window.opener.location.href='"default.aspx" but those all not working get the error message window.opener is null or not ab object same for all if change to parent.location jscheuer109-02-2011, 10:52 AMThen I would have to see the page. Please post a link to a page on your site that contains the problematic code so http://www.dynamicdrive.com/forums/archive/index.php/t-64363.html we can check it out. samijsr09-02-2011, 11:24 AMHi John the script is dhtmlmodal.htm http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm the page is running for local Intranet and behind the firewall so cant link here. Any way I have tested the simple java code to open popup window, with that window.opener.location.reload() is working perfectly. but when I call dhtmlwindow.open call the below function in Button_onclcik() here some code to save data in database. response.write("scriptwindow.opener.location.reload();"); response.write("script parent.emailwindow.hide();"); its not working and get error window.opener is null or not an object jscheuer109-02-2011, 02:12 PMDoes the emailwindow load onload of the parent window? If so reloading the parent will reload the emailwindow. If not, reloading the parent will have the effect of dismissing the emailwindow. It won't be there any longer because it depends upon the parent to exist. If the former, you will have to rethink your approach. If the latter, and the emailwindow is in fact an iframe, and it's page is on the same domain as the parent, all you need is: response.write("scriptparent.window.location.reload();"); However, just writing out a script like that to a page might not br
(Nederlands)Polska (Polski)România (Română)Singapore (English)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特別行政區 (中文) Microsoft Home Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Asked by: Permission denied error on https://social.microsoft.com/Forums/en-US/44e202b2-1542-4258-a9d9-9be9a5a8276f/permission-denied-error-on-reloading-the-parent-page-from-child-page?forum=crmdevelopment reloading the Parent page from child page Dynamics > CRM Development Question 0 Sign in to vote Hi All, I am trying to reload the Parent page from child page on save. http://www.codingforums.com/javascript-programming/10999-window-opener-location-reload-error.html I am using the below code to refresh it. window.parent.opener.location.reload(true); This code is working fine for the first time I save the child record. But if i am staying on the permission denied same child page and modified something on the page then saving the record. now i am getting the error as Permission denied. This error is coming because, in the code "window.parent.opener.location.reload(true)" is not able to find location value. the location value is coming as {...} Any help is appreciable Edited by Ashok Ginjupalli Friday, June 13, 2014 9:58 AM Monday, April 14, 2014 7:43 permission denied to AM Reply | Quote All replies 0 Sign in to vote Can't you just refresh your parent windows only in case of save and close event from child ??Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question. Monday, April 14, 2014 8:51 AM Reply | Quote Moderator 0 Sign in to vote Thanks Mahender for your suggestion, but the client requirement is just on save only. Can you suggest me some other way. Thanks Monday, April 14, 2014 9:03 AM Reply | Quote 0 Sign in to vote Whilst I've not come across this, I would imagine that because the page is being refreshed, it's losing the parent-child link between the 2 records so it's not able to access the parent once it's been refreshed. I think the only way around this would be as follows: In the onSave code of the child record, update a field in the parent record with the child record guid.Save the parent record.Use the window...reload(true) to refresh th
New? Today's Posts FAQ Rules Guidelines Search Advanced Search Forum :: Client side development JavaScript programming window.opener.location.reload() ERROR If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Enjoy an ad free experience by logging in. Not a member yet? Register. Results 1 to 5 of 5 Thread: window.opener.location.reload() ERROR Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Rate This Thread Current Rating Excellent Good Average Bad Terrible 12-05-2002,05:48 PM #1 EdScript View Profile View Forum Posts New Coder Join Date Jun 2002 Posts 11 Thanks 0 Thanked 0 Times in 0 Posts window.opener.location.reload() ERROR Please help! Im getting a runtime error Permission denied when executing the following line from a pop up window that Im about to close but want to refresh the window that opened it first? This is the line getting the error, is there another way to refresh the opener window or does anyone know why this error occurs in IE 5.5 ? Thanks, Ed window.opener.location.reload() Reply With Quote 12-05-2002,07:27 PM #2 wyattwebb View Profile View Forum Posts New Coder Join Date Dec 2002 Posts 15 Thanks 0 Thanked 0 Times in 0 Posts I tried it in IE 6 and it works fine.... I don't have 5.5 laying around so... maybe upgrade? Heres my code. Reply With Quote 12-05-2002,09:06 PM #3 vegeta View Profile View Forum Posts New Coder Join Date Oct 2002 Location Netherlands Posts 16 Thanks 0 Thanked 0 Times in 0 Posts window.opener.location = window.opener.location; Reply With Quote 12-05-2002,09:10 PM #4 dulatoag View Profile View Forum Posts Visit Homepage New Coder Join Date Dec 2002 Location New York State Posts 18 Thanks 0 Thanked 0 Times in 0 Posts I've used self.opener.location.reload() with much success. Reply With Quote 12-09-2002,06:41 AM #5 glenngv View Profile View Forum Posts Supreme Master coder! Join Date Jun 2002 Location Philippines Posts 11,075 Thanks 0 Thanked 256 Times in 252 Posts I suspect that the page in the opener is from another domain, thus the permission denied error. Glenn vBulletin Mods That Rock! Reply With Quote &laqu