MagicAjax.NET Forums

Forums for the Magic Ajax Engine
Welcome to MagicAjax.NET Forums Sign in | Join | Help
in Search

Magic Ajax limitations, Firefox oddities

Last post 04-08-2008, 11:53 μμ by nomad311. 1 replies.
Sort Posts: Previous Next
  •  10-27-2006, 12:26 πμ 1301

    Magic Ajax limitations, Firefox oddities

    Just for those of you out there that are interested, I thought that I'd share some of my experiences with AJAX Panels in Magic AJAX.

     

    1.  You cannot create / use Magic AJAX panels inside of a repeater.  Or, at very least, I couldn't get it to work.  You can, however, surround the repeater with a single Magic AJAX panel.  This difference might not mean much in your code, but it might.  I had to adjust some things to get everything going, but in the end, I had a solution that functioned.

     
    2.  In Firefox 1.5X and 2.0, I've had some difficulty using AJAX Panels embedded into OTHER panels.  This works just fine in Internet Explorer, but causes a full postback to the server in Firefox.

    EXAMPLE THAT HAD TROUBLE FOR ME IN FIREFOX (works in IE):

    <asp:panel id="bob" runat="server">

        <p>stuff</p>

          <ajax:AjaxPanel id="AjaxPanel2" runat="server" width="100%">

               <asp:Button id="btnPreview" runat="server" Text="Preview"></asp:Button>
         </ajax:AjaxPanel>

        </asp:panel>

    <asp:panel id="youruncle" runat="server">

    <p>Stuff to display later</p> 

    </asp:panel>
     

    WHAT WORKS IN BOTH:

     <ajax:AjaxPanel id="AjaxPanel2" runat="server" width="100%">

    <asp:panel id="bob" runat="server">

        <p>stuff</p>

        <asp:Button id="btnPreview" runat="server" Text="Preview"></asp:Button>
        

        </asp:panel>

    <asp:panel id="youruncle" runat="server">

    <p>Stuff to display later</p> 

    </asp:panel>

    </ajax:AjaxPanel>

     

    Do any of you folks notice similar issues? 

    Filed under:
  •  04-08-2008, 11:53 μμ 1486 in reply to 1301

    Re: Magic Ajax limitations, Firefox oddities

    I also noticed a small problem with the panels (Hoping the developer actually checks these forums):

    The width is not enforced in Firefox, but works fine with IE. To follow suite, what doesn't work:

     <ajax:AjaxPanel id="AjaxPanel2" runat="server" width="800px">

    The penguin master must die!!!

    </ajax:AjaxPanel>

     

    What does:

    <div style='width:800px;'> 

     <ajax:AjaxPanel id="AjaxPanel2" runat="server" width="800px">

    The penguin master must die!!!

    </ajax:AjaxPanel>

     </div>

     

    For the record I just surrounded everything in the <form> tag with that <div> tag for simplicity but obviously you could put that in each panel for better control.

     

    On a side note, is this project still being worked on I noticed the last update was a while ago ...if not what are the kids using these days?

     

    Great project BTW, 

    -nomad311
     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems