Solved

From a popup window hide a control on the parent page

Posted on 2010-11-11
2
380 Views
Last Modified: 2012-05-10
From a popup window hide a control on the parent page
I have a parent page and child page
I want to do 2 things
1. display the popup when I hide the dropdownlist that is on the parent page
2. when the user closes the popup dropdownlist I show this in the parent page
ddlDesicionOferta called control
and when you build your html is called tbContenedor_tab4_ddlDesicionOferta

this is the hml
                             <td class="txtazul" align="left" style="height: 21px">
                                                    Conclusión de Mi Evaluación :&nbsp;
                                                    <asp:DropDownList ID="ddlDesicionOferta" runat="server" Width="266px" CausesValidation="True">
                                                    </asp:DropDownList></td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </ContentTemplate>
                            <HeaderTemplate>
                                Mi Evaluación
                            </HeaderTemplate>
                        </cc1:TabPanel>
block-dropdownlistHTMgenerated.txt
0
Comment
Question by:enrique_aeo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 29

Accepted Solution

by:
Badotz earned 500 total points
ID: 34116389
From the popup window, add:

var wp = window.parent; // Might be window.opener, I can't remember

Now anything within the parent window is available to the popup through "wp":

alert(wp.document.getElementById("SOME_HTML_ELEMENT_ON_THE_PARENT").tagName);

0
 
LVL 29

Expert Comment

by:Badotz
ID: 34116769
The strong, silent type, eh?

No worries - glad to help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question