Page view counter

Popup Exender panel flickers

Last post 06-02-2008 3:13 AM by izeman. 15 replies.

Sort Posts:

  • Popup Exender panel flickers

    04-18-2006, 11:11 AM
    • Loading...
    • jcteague
    • Joined on 02-26-2003, 11:48 PM
    • Austin, TX
    • Posts 45

    I have basically the exact same setup as the popup extender example, with calendars inside the panels attached to text boxes.

    Everthing is working fine except that the popup panels ficker on when the page loads.  You see the calendars for a brief moment then they are hidden.

  • Re: Popup Exender panel flickers

    04-18-2006, 2:52 PM

    Hi jcteague,

    One of the first things that the PopupControlBehavior does is to hide your controls so they only show up when they're supposed to.  The flicker you see is the delay between when the page loads and when Atlas and our scripts load.  It wasn't made very clear in the sample page, but what we're doing there is initially setting the visibility of the panel containing our popup to hidden using its CSS style.  I think that doing something similar should fix your problems.

    Thanks,
    Ted

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Popup Exender panel flickers

    04-18-2006, 3:10 PM
    • Loading...
    • jcteague
    • Joined on 02-26-2003, 11:48 PM
    • Austin, TX
    • Posts 45
    yep, that did it.  It should be noted that Visible="false" did not help.  Needed to be in the css class.
  • Re: Popup Exender panel flickers

    04-18-2006, 3:52 PM
    • Loading...
    • sburke_msft
    • Joined on 04-04-2006, 7:28 PM
    • Redmond, WA
    • Posts 770
    • AspNetTeam

    Yes - you should always try to make the CSS style of your element match what you want the page to look like initially.

    Also, in your web.config, change debug in <compilation debug="true" .../> to "false" and try to run your website again.  Atlas is much faster when debug is turned off

     

    Don't forget, this posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Popup Exender panel flickers

    06-30-2006, 9:24 AM
    • Loading...
    • Triock
    • Joined on 03-02-2006, 5:24 PM
    • Posts 2

    I use style="display:none".

     

    If you use style="visibility:hidden", the object still gets rendered (and therefore takes up space on the page) until it's style is set by the extender's javascript. It just isn't visible.

  • Re: Popup Exender panel flickers

    09-28-2006, 4:23 PM
    • Loading...
    • Duluoz
    • Joined on 09-15-2006, 4:55 PM
    • Posts 3
    You need to set the height attribute of the control to:
    Height="0px"
    You also need to give the class you have assigned to the control a property of:
    .foo{ visibility: hidden; } 
  • Re: Popup Exender panel flickers

    09-28-2006, 4:25 PM
    • Loading...
    • Duluoz
    • Joined on 09-15-2006, 4:55 PM
    • Posts 3
    You need to set the height attribute of the control to:
    Height="0px"
    You also need to give the class you have assigned to the control a property of:
    .foo{ visibility: hidden; } 
  • Re: Popup Exender panel flickers

    01-05-2007, 6:55 AM
    • Loading...
    • gjsduarte
    • Joined on 12-27-2006, 7:43 PM
    • Posts 3

    The style:"display:none" method in the .aspx page worked better for me. Even setting the Height and/or Width to 0px the empty space still shows up.

    Regards.
    Guilherme Duarte

  • Re: Popup Exender panel flickers

    03-07-2007, 7:59 AM
    ya but if i put the visibility as hidden, exactly which place i need to make is visible then...i m using the same concept as the one in sample... can u tell me where can i put the statement where i can make it visible again...there isnt any page_load when i move my cursor inside the textbox...confused can u helpConfused
  • Re: Popup Exender panel flickers

    07-23-2007, 5:18 AM
    • Loading...
    • FuzzyYak
    • Joined on 08-07-2006, 7:13 AM
    • Posts 7

    Hi there Ted.

    I did this, but it caused another problem: If I now click the button to display the popup, it's visibility is still hidden, so it doesn't show...  It just greys out the background like it normally would to display it.

    What can I do to prevent this from happening?

    I appreciate your answer.
     
    Cheers,
    Johann.


     

  • Re: Popup Exender panel flickers

    07-26-2007, 6:13 AM
    • Loading...
    • phillips_k
    • Joined on 07-25-2007, 9:28 AM
    • Posts 2

    FuzzyYak - I have exactly the same problem. By setting the 'display:none' property in the CSS class, the popup never displays when it's activated.

    To combat this, I ran a script at the bottom of the page to change it's CSS style to a style that doesn't contain the 'display:none'. Unfortunately, you also need to set a timeout to run this script - doing immediately doesn't do anything. Here it is:

    1    <script language="javascript" type="text/javascript">
    2        function fnSetClassName(sID, sClassName)
    3        {
    4            document.getElementById(sID).className = sClassName;
    5        }
    6        setTimeout("fnSetClassName('Panel3','modalPopup_Show')",100);
    7    </script>
    
    It's a bit of a work-around, but it does work. If anyone else has a better way of doing this I'd appreciate their input!! Smile
  • Re: Popup Exender panel flickers

    08-14-2007, 3:02 PM
    • Loading...
    • dbwinger
    • Joined on 05-04-2007, 1:09 PM
    • Indiana, USA
    • Posts 211

    I've found that using 'display:none' in my CSS class causes the popup to never be displayed as you described.  However, if I instead add 'style="display:none" to the markup for the Panel I use as the PopupControl, everything works fine.  No flicker and the popup is displayed...  I don't understand why this works and it's not elegant, but it does work.

    "You shall love the LORD your God with all your heart and with all your soul and with all your might." - GOD
  • Re: Popup Exender panel flickers

    03-25-2008, 4:58 PM
    • Loading...
    • lax4u
    • Joined on 05-28-2004, 2:45 PM
    • Posts 703

    dbwinger,

    I have the same problem 'display:none' in my CSS class causes the popup to never be displayed. as you suggested use the style but where is the style attribute for asp:panel.

  • Re: Popup Exender panel flickers

    03-25-2008, 5:17 PM
    • Loading...
    • FortisVS
    • Joined on 03-11-2008, 2:44 PM
    • Posts 7

     Try to surround your popup with a div and set its style to display:none and use its id as PopupControlID.

    It seems to work better this way. 

  • Re: Popup Exender panel flickers

    03-25-2008, 9:28 PM
    • Loading...
    • lax4u
    • Joined on 05-28-2004, 2:45 PM
    • Posts 703

    so you mean dont use panel, instead use div tag? or panel inside div tag?

Page 1 of 2 (16 items) 1 2 Next >