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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AJAX - CollapsiblePanelExtender not working the same in IE and FFAJAX - CollapsiblePanelExtender not working the same in IE and FF
Previous
 
Next
New Post
7/7/2008 8:48 PM
 

Ok, I'm totally stumped and could really use some help on this one. 

I'm trying to create an AJAX enabled search form similar in function to kayak.com (left side search options trigger a new search url which in turn causes the right side search results to be filtered).  Of course, I'd like to do all of this without a big ugly page refresh.  The kicker is that I've got it working in IE, but not FireFox.  Usually I find that IE is the browser that gives me the most trouble so I'm a little surpised to find that its now Firefox. 

I've broken the page down as far as I can and have left only the offending code.  The problem occurs when ever I have a checkbox within another AJAX Extender control.  In this example, its in a CollapsiblePanelExtender (I've also reproduced it in a TabExtender as well).  Here's what I've got: a checkbox (chk1) in a PanelExtender with Autopostback="true".  The code behind simply, updates the URL by adding the parameter "checked=[    ]".  On Page Load, it checkes the value in the query string, and sets the value of the checkbox.  Pretty simple.

But for some reason it works in IE 7 but not FF2. Firefox does a full screen reload while IE does a nice subtle AJAX update.   Any help would be much appreciated!!!!!

Thanks!!!!

 

 Here's the code:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlNavStatic.ascx.vb" Inherits="YourCompany.Modules.Rentals.ctlNavStatic" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Panel ID="TitlePanel1" runat="server" CssClass="collapsePanelHeader">
    <asp:Image ID="cpeImage1" runat="server" ImageUrl="images/expand_blue.jpg" />
    <asp:Label ID="Title1" runat="server">Group 1</asp:Label>
</asp:Panel>
<asp:Panel ID="ContentPanel1" runat="server" CssClass="collapsePanel">
    <asp:Panel ID="pnl1" runat="server">
        <asp:CheckBox ID="chk1" runat="server" Checked="False" Text="CheckBox1" CssClass="checkbox"
            AutoPostBack="true" OnCheckedChanged="AttributeChanged" />
    </asp:Panel>
</asp:Panel>
<cc1:CollapsiblePanelExtender ID="cpe1" runat="Server" TargetControlID="ContentPanel1"
    ExpandControlID="TitlePanel1" CollapseControlID="TitlePanel1" Collapsed="False"
    TextLabelID="Title1" ExpandedText="Group 1" CollapsedText="Group 1" ImageControlID="cpeImage1"
    ExpandedImage="images/collapse_blue.jpg" CollapsedImage="images/expand_blue.jpg"
    SuppressPostBack="false">
</cc1:CollapsiblePanelExtender>

 

Imports DotNetNuke
Imports DotNetNuke.Entities.Modules

Namespace YourCompany.Modules.Rentals

    Partial Class ctlNavStatic
        Inherits PortalModuleBase

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

            If Not Page.IsPostBack Then
                If Not Request.QueryString("checked") Is Nothing Then
                    Dim chk As CheckBox = CType(Me.FindControl("chk1"), CheckBox)
                    If Not chk Is Nothing Then
                        If Request.QueryString("checked") = "True" Then
                            chk.Checked = True
                        Else
                            chk.Checked = False
                        End If
                    End If
                End If
            End If

        End Sub

        Public Sub AttributeChanged(ByVal sender As Object, ByVal e As System.EventArgs)

            Response.Redirect(NavigateURL(Me.TabId, "", "checked=" + sender.Checked.ToString), True)

        End Sub

    End Class

End Namespace

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AJAX - CollapsiblePanelExtender not working the same in IE and FFAJAX - CollapsiblePanelExtender not working the same in IE and FF


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