Posted: 9/29/2010
Hi
I am facing the proplem that on the main page is showing the childe page as Popup.
on the child page popup i have used the button on click of that i have write the script code by which it's load the main page again.
it's working fine for mozilla but not working for IE 7 but if i check it sapratelly in a program it's working for both.
when i implement it in Dot Nuke Project it's working for mozilla but not working for IE 7
i can't use the Respone.Redirect(). & also Server.Transfer() only i have to use the script for that.
Script which i have wiritten to Reload the main page-:
StringBuilder sb = new StringBuilder(); sb.Append("<script type='text/javascript' language='javascript'>"); sb.Append(System.Environment.NewLine); sb.Append("window.close();"); sb.Append(System.Environment.NewLine); sb.Append("if (window.opener && !window.opener.closed) {window.opener.location.reload(); window.refresh();}"); // sb.Append("window.opener.document.forms(0).submit();"); sb.Append("</script>"); //RegisterClientScriptBlock("sb", sb.ToString()); Page.RegisterStartupScript("sb", sb.ToString()); Response.Write(sb.ToString());
Thanks
ArunTyagi said: user="Arun Tyagi"]when i implement it in Dot Nuke Project it's working for mozilla but not working for IE 7
user="Arun Tyagi"]when i implement it in Dot Nuke Project it's working for mozilla but not working for IE 7
Hi,
What exactly do you meant by not working? are you getting a javascript error or something?
Javascript is not working when i click on the button above script run and child popup closed & should be reload the parent page but it's not doing this. but when i send the request from Mozilla it's reload but in case of IE it's not working in the project.
but i tried it out of the project it's working on IE and Mozilla both.
i want to know what is the probs with that .
IF you have any other Idea to do this so plz give me.
Posted: 10/1/2010
ArunTyagi said: user="Arun Tyagi"]Javascript is not working
user="Arun Tyagi"]Javascript is not working
can you verify if your IE browser produces a javascript error? you can check it the at the lower left portion of the IE browser. If it has a javascript error please post it here for us to troubleshoot.
thanks.