Solved

From a popup window hide a control on the parent page

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
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…

705 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

20 Experts available now in Live!

Get 1:1 Help Now