Solved

From a popup window hide a control on the parent page

Posted on 2010-11-11
2
374 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now