Refresh Parent Page Using JavaScript In Mozilla Firefox Browser
Apr 4, 2011
The function window.opener.location.reload(); is working fine with IE but not refreshing parent page in mozilla firefox browser. how to refresh parent page in cross browser/browser independent.
I have a blog, where people can make comments. I've now decided to put the "writecomments.aspx" file in a Greybox popup-window. It works, but I want to close the window from codebehind (or javascript) after the comment is written. And then I want to refresh the blog page (the parent page) to show the new comment.
This is the code that opens the greybox (writecomments.aspx) page:
In the writecomments.aspx file, I just have 2 textboxes and 1 button (save-button). How can I make the greybox window close itself, and then somehow refresh the blog.aspx? Or maybe just a specific updatepanel for the current comments?
Edit
I got it working, I had to put this code in the codebehind, after the db-insert: Page.ClientScript.RegisterStartupScript(this.GetType(), "close", "parent.parent.GB_hide();", true); And for the refresh of the parent page, I edited the gb_scripts.js file on line 12 from false to true: this.reload_on_close=true;
EDIT AGAIN
Actually, I modified it a bit, so, I put the gb_scripts.js file back to it's default state, and I just just the followig line of code in the WriteComments.aspx codebehind file, just after the db-insert:
Is it possible to refresh parent page from child's child page using javascript.
I have a webform which opens a child window, a button on child window closes the present child window and opens a subchild window. Now a button on subchild should close the window and refresh the parent form.
when i click the link button in Masterpage the window has to close. This function is working properly in IE but in fireFox or chrome or Safari Other than IE in all browsers postback is happening.
I have a very strange problem using Mozilla Firefox (everything works well in IE8).I have a user control where I run code when the droplist is changed.
I use this code:
Code: Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged [code]...
If I have entered "aaa" the alert appears, fine. But afterwards the dropdownlist is locked! I can't change it until I have changed the "aaa" to a real number. What happens???If I just make a complete new webform everything works well in Firefox, but using the user control the problem appears.
I've a webform which looks very orderly and properly formatted when opened in an IE browser while when the same form is opened in firefox it appears very distorted. One of the DDL's moves over on the top of the page while accessing the form in firefox.I've been using Visual Studio 2008 for the development.
I know this might sound very silly to some but I have been struggling with this issue for some time so decided to post it here.
I have a problem with a simple site that is not requiring login. When run in internet explorer
it works as it should. But when I try to access the page with Mozilla Firefox or Apples Safari
i get a login prompt and no valid useraccount can be entered. I have tried setting authentication mode to either Windows or Forms but it makes no difference.
I can cancel to get the page to load but then I see my logo is not showing
(Logo in Images/file.jpg) When I try to use a link to another page it does not allow me access denied.
As said before with IE everything works OK!! Frustrating, probably something simple...
Even more frustrating On another server it works OK,
Application in Swedish server works
Application in US Server does not work with other browsers but IE.
Same setup for server, IIS 6 Windows server 2003 .Net 2 & 3.5
i am using fileupload server control it's working fine in IE but when i execute the same code on Mozila firefox it showingCould not find a part of the path 'D:TestLogo what is the error and how to can i correct the error.
I would need a code for refreshing parent page from modal, having in mind that modal is a separate page. Note that im using developer express popup for modal.
I am from Iraq and have no enough resources to search.I want to know how to use browsercaps (which I find in many sites)in my web.config file and if (minor and major) replaced with value or not and any changes to fit with my requirement.
I have taken table inside that i have taken the row. in design mode when i make the visibility of row as false then there is pair of line comes which represents like there is row.
How to make this line invisible when row visibility is false.
In case of Internet explorer the pair of line not come when rows visibility is false. same things i want to do with mozilla firefox .How to do that?
I've a parent page with a long form. I am opening ajax modal popup extender on the click of a radio button.
Parent.aspx
[Code]....
In child.aspx, I've another long form. When the submit button is clicked, I am doing some processing, after that need to close the modal popup window and refresh my parent page, without disturbing the values already entered in the parent page.
child.aspx
[Code]....
child.aspx.cs
[Code]....
My questions are
1. How do close the modal popup?
2. How I do refresh the parent.aspx without disturbing existing values? My browser is IE, no firefox since it's in intranet.
I am Trying To get information I stored in the cookie after create it , it's works fine when using IE8 in browsing website but i face problems in Mozilla
I am using update panels with Update mode conditional in by aspx page. The page is functioning properlly in the IE.8.0 but the page content is not posting when i open it in the Google Chrome or Mozilla Firefox.
FYI I am using Update panels for drop down lists and buttons and in the triggers also i am using similar controls.
I have a web page that opens another web page in a pop up window. I would like to refresh the parent page when the submit button is clicked on the pop up page. I tried using window.opener.location.reload(); in IE7 but nothing seems to be happening.
i place the login control in updatepanel in that panel.incase of valid user it is ok,in case of invalid user the popupwind is refreshed,i don't want to refresh the parent page and popup page.
I am having an issue with images not showing in Chrome or FireFox. In chrome i get this message in the Console "Not allowed to load local resource.". The images appear fine and correct in IE11 & MS Edge. I'm assuming this is some king of security problem I need to address, but am not at all sure what.