Firefox problem with Atlas June CTP - Extenders do not work after async post back

Last post 08-28-2006 5:00 PM by David Anson. 26 replies.

Sort Posts:

  • Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-08-2006, 1:57 PM
    • Member
      100 point Member
    • flaxon
    • Member since 07-18-2004, 9:01 AM
    • Posts 20

    Hello,

    I am facing a problem with the Atlas June CTP (the April version works) and Firefox (v1.5.0.4) (IE works as desired).

    Extenders (e.g. DragPanel CollapsePanel) do not work after an async post back to the server when PartialRendering for the ScriptManager is set to true. If PartialRendering is switched off, it works.

    I tried a couple of solutions, but nothing worked (using only one extender, UpdatePanel mode set to "Always" ...)

    I hope you can help ...

    Bye,

    Flaxon


     

     Sample page:
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Test" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Unbenannte Seite</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
            
                <atlas:ScriptManager ID="AtlasScriptManager" EnablePartialRendering="true" runat="server">
                </atlas:ScriptManager>
                <atlas:UpdatePanel Mode="Conditional" runat="server" ID="UpdatePanel1">
                    <ContentTemplate>
                        <asp:Panel ID="UserFormPanel" runat="server">
                            <asp:Panel ID="UserFormHandle" runat="server">
                                <asp:Image ID="ToggleImage" ImageUrl="~/App_Themes/CaesarDefault/images/minus_small.gif" runat="server" />
                                Test
                            </asp:Panel>
                            <asp:Panel ID="ContentPanel" runat="server">
                                <asp:Button ID="PostBackButton" Text="PostBackButton" runat="server" />
                            </asp:Panel>
                        </asp:Panel>
                    </ContentTemplate>
                </atlas:UpdatePanel>
                
                <atlasToolkit:DragPanelExtender ID="DragExtender" runat="server">
                    <atlasToolkit:DragPanelProperties
                        TargetControlID="UserFormPanel"
                        DragHandleID="UserFormHandle" />
                </atlasToolkit:DragPanelExtender>
                
                <atlasToolkit:CollapsiblePanelExtender ID="CollapseExtender" runat="Server">
                    <atlasToolkit:CollapsiblePanelProperties
                        TargetControlID="ContentPanel"
                        ExpandControlID="ToggleImage"
                        CollapseControlID="ToggleImage"
                        Collapsed="True" CollapsedSize="0"
                        ImageControlID="ToggleImage"
                        ExpandedImage="~/images/minus_small.gif"
                        CollapsedImage="~/images/plus_small.gif"
                        CollapsedText="expand"
                        ExpandedText="collapse"
                        SuppressPostBack="true" />
                </atlasToolkit:CollapsiblePanelExtender>
            </div>
        </form>
    </body>
    </html>
    
     
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-10-2006, 4:46 PM
    • Member
      142 point Member
    • joseph111780
    • Member since 05-26-2006, 3:09 PM
    • Posts 29
    I am experiencing the same issue.  I am running the June CTP and I am using RoundedCornersExtender and CollapsiblePanelExtender controls.  Everything functions correctly in IE but the RoundedCorners and CollapsiblePanel controls are not functioning correctly in FireFox.  Please let me know if you find a resolution for this.  Thanks!
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-10-2006, 7:10 PM
    • Member
      128 point Member
    • steve harman
    • Member since 07-10-2006, 3:32 AM
    • Posts 38
    All,
    I think that I'm seeing a similar issue, though not specifically with *Extenders, but rather with all async calls. To be exact, the problem occurs AFTER the first async call made from a page.

    I think the issue is a javaScript bug in this CTP - see my thread here for more details and how to reproduce/discover the issue. Also, please let me know if you find your issues to have the same root cause so we can push for/find a fix.

    Thanks!
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-10-2006, 8:30 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-10-2006, 9:39 PM
    • Microsoft
    • Posts 1,842
    • AspNetTeam
    I confirm the issue. It appears as though the extender problem may be due to a change in the Atlas June CTP. We believe we've debugged the problem and are following up with the Atlas team. Thanks very much for your help reporting this and tracking it down!

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-11-2006, 7:57 AM
    • Member
      30 point Member
    • teuchlfex
    • Member since 07-04-2006, 1:15 PM
    • Posts 6
    I have the same issue. But because or markup is more complex than posted here by other users, I'll provide you this informations so that you can take care of when resolving the problems. I cannot provide you a complete example because we use lots of custom and user controls (which mostly inherit from ASP.NET or ATLAS-Controls) but will show you some simplified markup to give you an idea of what control hierarchy we have:

    <asp:Panel>
        <asp:TreeView></asp:TreeView><%-- some other stuff --%>
        <atlas:UpdatePanel>
           <ContentTemplate>
              <asp:CheckBox/>
              <atlasToolkit:ToggleButton/> <%-- for the CheckBox. We have two Checkboxes with relating ToggleButtonExtenders --%>
           </ContentTemplate>
        </atlas:UpdatePanel>
        <asp:MultiView>
           <asp:View>
              <%-- Here is a DataGrid and some simple Controls --%>
           </asp:View>
           <asp:View>
              <atlas:UpdatePanel>
                 <ContentTemplate>
                    <asp:Image> <%-- This is a big detailed image --%>
                    <asp:Panel>
                       <%-- Some simple Controls: Buttons, Labels etc. which are needed for the CollapsiblePanelExtender --%>
                       <asp:Image> <%-- Overview image for the details image --%>
                    </asp:Panel>
                    <atlasToolkit:CollapsiblePanelExtender>
                 </ContentTemplate>
              </atlas:UpdatePanel>
           </asp:View>
        </asp:MultiView>
    </asp:Panel>

    So when clicking on some control in one of the panels, TreeView, on the image or switching to another View and back to the one with the images, all Extenders (CollapsiblePanel, ToggleButton and may be others, too) stop working.
    The CollapsiblePanel works, but CollapsedText and ExpandedText is no longer showed. The ToggleButtons are showed as normal Checkoboxes, which are still working. And under some circumstances clicks on one of the images are not sent to the server to be handled there (returning updated images).

    I hope that will help you.

    Kind regards.

    Marco
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-11-2006, 8:35 AM
    • Member
      128 point Member
    • steve harman
    • Member since 07-10-2006, 3:32 AM
    • Posts 38
    Marco, a few questions for you...
    Are you seeing this behavior only with Firefox... or also with IE?
    Are you seeing the same exception that I referenced in my previous post?

    If YES to both questions, the I think you can make a pretty safe assumption that the root cause of this is the javaScript exception that is being thrown in the callback handler. When Firefox (and most other browsers for that matter) encounter a javaScript exception they typically stop processing further javaScript events. So in the case of AJAX, your page seems to 'freeze'.

    I've seen this behavior in even the simplest Atlas control structures with the June CTP release - so likely your control structure is fine, and when the javaScript is fixed, hopefully your code will be too.
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-11-2006, 10:05 AM
    • Member
      30 point Member
    • teuchlfex
    • Member since 07-04-2006, 1:15 PM
    • Posts 6
    Hi Steve.

    YES to your first question, NO to your second one. There is no JavaScript exception on that page.
    But if I change the order of the views and the one containing the images is not initially active, I also have that behavior in IE.
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-11-2006, 12:34 PM
    • Member
      128 point Member
    • steve harman
    • Member since 07-10-2006, 3:32 AM
    • Posts 38
    Marco,
    The javaScript error isn't displayed on the page, but can be seen via FireFox's JavaScript Console.

    As for changing the order of the views... not sure what to tell you there.
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-11-2006, 2:31 PM
    • Contributor
      4,346 point Contributor
    • sburke_msft
    • Member since 04-04-2006, 7:28 PM
    • Redmond, WA
    • Posts 770
    • AspNetTeam
    David nailed the issue yesterday - it's due to subtle change in the way Atlas is outputting XML and how the FF XML parser reads it back in, which is why it works fine in IE.  Stay tuned, we're working with the Atlas team.
    Don't forget, this posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-11-2006, 8:44 PM
    • Member
      35 point Member
    • joshd
    • Member since 05-08-2006, 10:39 PM
    • Seattle
    • Posts 7
    Not that more comments will help any, but I am also seeing this issue in FF.
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-12-2006, 7:06 AM
    • Member
      30 point Member
    • teuchlfex
    • Member since 07-04-2006, 1:15 PM
    • Posts 6
    Hi Steve,

    I know the JavaScript Console, but also there are no errors shown.
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-12-2006, 8:22 AM
    • Member
      128 point Member
    • steve harman
    • Member since 07-10-2006, 3:32 AM
    • Posts 38
    Hmm... well that makes me wonder if were seeing the same issue.
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-12-2006, 11:39 PM
    • Member
      25 point Member
    • kexu
    • Member since 12-22-2005, 10:41 PM
    • Posts 7

    I have the same issue. Moreover, i found that xml-script doesn't work in FF with the Atlas June CTP.

    Does anyone have the same problem? 

  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-18-2006, 1:30 PM
    • Contributor
      5,599 point Contributor
    • Eilon
    • Member since 06-26-2002, 6:14 PM
    • Redmond, WA
    • Posts 955
    • AspNetTeam

    Hi everyone,

    We have a fix ready and we hope to have it out pretty soon!

    Thanks,

    Eilon

    Blog: http://weblogs.asp.net/LeftSlipper/
  • Re: Firefox problem with Atlas June CTP - Extenders do not work after async post back

    07-19-2006, 4:09 AM
    • Member
      100 point Member
    • flaxon
    • Member since 07-18-2004, 9:01 AM
    • Posts 20

    Hello,

    Thanks for your investigations and the resulting solution!

    I am looking forward getting the fix ... will you post here when it is available or will it be available with the next CTP only?

    Bye,

    Flaxon

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