Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Why, Not In IE, Modal popup Control.Why, Not In IE, Modal popup Control.
Previous
 
Next
New Post
8/13/2008 10:52 AM
 

Hi Friends,

I wonder why the modal popup control is not wroking with IE and it dose not have any issue with FireFox  and Even in Opera.

I am searching the sollution for it since last 2 days. Please Gyz Help me out.

ISSUE:

Possition of Popup get shifted on top-left side of screen which somehow can be managed to be center, But At same time on my page it brings up infinit scroll which is a mess. Is any one have ever seen this issue

Is that the problem with Dotnetnuke or what because. same code is wroking in small ASP.net Examlpe.

 

For your refrence i had mentioned the Code from my Sollution.

 

 

<%@ Control Language="vb" AutoEventWireup="false" Codebehind="ShowImage.ascx.vb" Inherits="Polle.DNN.Modules.PiGa.ShowImage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

    <script type="text/javascript">
        var styleToSelect;
        function onOk() {
            $get('Paragraph1').className = styleToSelect;
        }
       
        // Add click handlers for buttons to show and hide modal popup on pageLoad
        function pageLoad() {
            $addHandler($get("showModalPopupClientButton"), 'click', showModalPopupViaClient);
            $addHandler($get("hideModalPopupViaClientButton"), 'click', hideModalPopupViaClient);       
        }
       
        function showModalPopupViaClient(ev) {
            ev.preventDefault();
            var modalPopupBehavior = $find('programmaticModalPopupBehavior');
            modalPopupBehavior.show();
        }
       
        function hideModalPopupViaClient(ev) {
            ev.preventDefault();       
            var modalPopupBehavior = $find('programmaticModalPopupBehavior');
            modalPopupBehavior.hide();
        }
  </script>
<div class="demoarea">

        <div class="demoheading">ModalPopup Demonstration</div>
       
        <asp:LinkButton ID="LinkButton1" runat="server" Text="Click here to change the paragraph style" />
       
        <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="modalPopup">
            <asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black">
                <div>
                    <p>Drag Me...</p>
                </div>
            </asp:Panel>
                <div>
                    This is Microsofts Clean version of simple Modal Popup Control.
                   
                    <p style="text-align: center;">
                        <asp:Button ID="OkButton" runat="server" Text="OK" />
                        <asp:Button ID="CancelButton" runat="server" Text="Cancel" />
                    </p>
                </div>
               
        </asp:Panel>
        <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server"
            TargetControlID="LinkButton1"
            PopupControlID="Panel1"
            Drag ="true"
            RepositionMode="RepositionOnWindowResize"           
            BackgroundCssClass="modalBackground"
            OkControlID="OkButton"
            OnOkScript="onOk()"
            CancelControlID="CancelButton"
            DropShadow="true"
            PopupDragHandleControlID="Panel3" />
        <br />
        <br /><hr /><br />
    </div>


Sandeep Sachan

Software Development

 
New Post
8/14/2008 12:21 PM
 

Have you added the xml file to your skin to make it xhtml "transitional"?  This fixed my issues with the Ajax Control Toolkit modal popup.  Search and you shall find.

 
New Post
8/14/2008 12:27 PM
 

Microsoft ASP.NET AJAX (and the AJAX Control Toolkit) require an XHTML doctype to perform correctly.  Make sure that you are testing it on a skin that uses an XHTML doctype.  We have an article in our documentation about setting up your skin to use an XHTML doctype.

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
8/14/2008 2:28 PM
 

Hi Brian,

I did try to use the XHTML in the same content, i mean in to above code. But my problem remains as it was.

 


Sandeep Sachan

Software Development

 
New Post
8/14/2008 2:38 PM
 

Hi Patja,

Thank you So much! For your response.

But I have tryed to use your instruction, in the abouve code. Yet the Problem is remains as it was.


Sandeep Sachan

Software Development

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Why, Not In IE, Modal popup Control.Why, Not In IE, Modal popup Control.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out