Solved

'_foregroundElement.parentNode' is null or not an object when trying to use AJAX ModalPopUpExtender

Posted on 2010-09-22
1
5,093 Views
Last Modified: 2012-05-10
Hi Experts

I have a Masterpage with a ModalPopUpExtender Control on it that is called when a link is clicked from a content page. However, when I try and load the content page I get the error:

_foregroundElement.parentNode' is null or not an object

Previously I had the ModalPopUpExtender control on the content page and it worked fine, but moved it to the MasterPage as several other content pages need to utilise it.

Is there anything in the code below that might cause this? Is it down to the order that the page elements are loaded?

Thanks

Stewart
<cc1:ToolkitScriptManager ID="toolkitScriptMaster" runat="server" /> 
        <asp:Panel ID="pnlPopUp" runat="server" Width="500px" CssClass="detail" style="display:none;">
        <asp:UpdatePanel ID="updPnlDetails" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Button id="btnShowPopup" runat="server" style="display:none" />
            	  <cc1:ModalPopupExtender ID="mdlDetails" runat="server" 
            		    TargetControlID="btnShowPopup" PopupControlID="pnlPopup" 
            		    CancelControlID="btnClose" BackgroundCssClass="modalBackground" />
            		<div id="detailsContainer" style="height:400px; overflow:auto;">
            		<asp:DetailsView ID="BodyshopDetails" runat="server" 
                        AutoGenerateEditButton="True" AutoGenerateRows="False" 
                        DataKeyNames="Id" Visible="False"
                        CssClass="detailgrid" GridLines="None" EnableViewState="False">
                        <Fields>
                          <!-- Bound Fields here -->
                         </Fields>
                    </asp:DetailsView>
                    <div>
                    <asp:LinkButton ID="btnClose" runat="server" Text="Close" CausesValidation="false" />
                    </div> 
                    </div>                   
                </ContentTemplate>                
            </asp:UpdatePanel>             
        </asp:Panel>

Open in new window

0
Comment
Question by:digital_soul
[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
1 Comment
 
LVL 20

Accepted Solution

by:
informaniac earned 500 total points
ID: 33745602
Try adding DropShadow="true" to the modalpopup markup
0

Featured Post

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
How Close unsubmited attempts 10 44
JS library vs Js framework 11 23
PHP Web Development 6 22
close pop up windows when logout or main window closes 17 48
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 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, …
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