Click here to Skip to main content
14,735,611 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am opening popup window in my application, Edit some data and click on save button but that value is not updated in my parent window?? and also popup window is opening in New window everytime. It is working fine in IE and Firefox. Is there any problem in google chrome to save the value from popup window??
Posted
Comments
Code 89 15-May-12 2:45am
   
can you update values in IE & Firefox??
Parshu2378 15-May-12 2:48am
   
which values your talking about ?
Raghava jogu 15-May-12 5:17am
   
yes
Parshu2378 15-May-12 2:54am
   
Failed to load resource: the server responded with a status of 404 (Not Found)
Code 89 15-May-12 3:13am
   
pls check the popup window and parent form,coz i guess you r arent gettin any error, check the script which u given in html page(parent window) and main thing check in cs page(parent window)...

example:

btnPopup.Attributes["onclick"] = "javascript:CharactGet('" txtboxvalues "');";

or else

post your code
Parshu2378 15-May-12 3:29am
   
string scr = @"<script>
function Done()
{
var fName=document.getElementById('txtTimeToSend').value;
var lName=document.getElementById('txtLastName').value;
var ret= new Array(fName,lName);
window.opener.update(ret);
window.close();
}
</script>;";
Page.RegisterClientScriptBlock("done", scr);
Parshu2378 15-May-12 3:34am
   
<asp:Button ID ="btnSave" runat="server" Text="Save" BackColor="#006699"
Font-Bold="True" ForeColor="White" OnClientClick ="Done();return false"
/>

1 solution

just right click on the save button which you want to fire in the popup window ,then go to inspect element,you will find the error..then try to solve it..or post the error where u get
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900