Skip to main content

Search and Top Navigation

#3669 closed bug (notabug)

Opened December 16, 2008 04:45PM UTC

Closed December 31, 2008 08:26PM UTC

Last modified October 11, 2012 09:15PM UTC

Something in jscript not working in firefox

Reported by: bowyer99 Owned by:
Priority: major Milestone:
Component: ui.core Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:
Description

Hi there.

Firstly I am new to Jquery and have been trying to get to grips with it, but its looking really good.

I have a collapsing panel which I am creating and using JQuery to change some class names to collapse of expand the panel.

I run the following on the page which runs in IE but not Firefox

I have attached a HTML file demonstrating the error

THe Jscript I am running is:


$(document).ready(function() {
         $("div.AgoraLiveCollapsingPanel").children(".HeaderRow").click(function() {
             //$(this).css("background-color", "blue");
             if ($(this).parent().hasClass("Expandable")) {
                 if ($(this).parent().hasClass("Collapsed")) {
                     $(this).parent().addClass("Expanded");
                     $(this).parent().removeClass("Collapsed");

                 }
                 else {
                     if ($(this).parent().hasClass("Expanded")) {
                         $(this).parent().addClass("Collapsed");
                         $(this).parent().removeClass("Expanded");
                     }
                 }
             }
         }); // End of .Click Function
     });  //End of .Ready function

Attachments (1)
  • TestPage.htm (7.3 KB) - added by bowyer99 December 16, 2008 04:46PM UTC.

    example file to demonstate the issue, try in IE (works) then Firefox(not working)

Change History (2)

Changed December 31, 2008 08:26PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

This bug tracker is for jQuery UI plugins. Please post your question to the main jQuery mailing list.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted