Solved

From a popup window hide a control on the parent page

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
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…

809 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