Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi when I open popup by using jquery(jquery.colorbox.js) in asp.net application and trying to access parent page hidden control in popup(child) page below javascript error is generating
window.opener is null or not an object
but when I open popup by using window.open then everything is working fine.
code to update parent hidden control:
window.opener.document.getElementById("hdnVal").value = 'value from popup';


thanks
Posted
Updated 24-Mar-11 23:08pm
v2

1 solution

but when I open popup by using window.open then everything is working fine.
Window.Open opens a new window and NOT popup and hence window.opener works.

Read about Window.Open here:MSDN: open Method[^]

Read about ColorBox popup here: Color powered: Colorbox[^]
 
Share this answer
 

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