#385 ✓help_request
maxxe

strange behaviour on IE

Reported by maxxe | October 9th, 2008 @ 07:10 PM

i am using this script, in conjuction with deprecation.js to understand transition from 1.5 to 1.6.0.3. The script is a dropdown menu that worked fine in 1.5.

The OS is vista

----CODE

function protopop(arrow,menu,event) {

if(menu.style.display=='none'){
    Effect.Appear(menu,{duration:0.3});
    Position.clone(arrow,menu,{setWidth:false,setHeight:false,offsetTop:20});
    var justChanged=true;
    menu.offclick=function(e){
        if(!justChanged){
            Element.hide(this);
            Event.stopObserving(document, 'click', menu.offclick);
        }else{
            justChanged=false;
        }
    }.bind(menu);
    Event.observe(document, 'click', menu.offclick);
}
return false;

}

--- END CODE

It works fine with firefox but not IE7 i have an error on line 2272 of prototype.js (see attachment)

The link that opens the menu is:

blah

The menu code is:

...content here.....

the css is:

.protopop {

margin:-1px 0px 0px -5px;
position:absolute;
z-index:100000;
background:#69c;
border-bottom:solid 1px [#333](/projects/8886/tickets/333 "Ticket #333");
border-right:solid 1px [#666](/projects/8886/tickets/666 "Ticket #666");
width:200px;
padding:10px 10px 10px 10px;

}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Attachments

Pages