"strange behaviour on MSIE" -- news at 11.

Sorry, couldn't resist.

-- T.J. ;-)

On Oct 9, 8:01 pm, maxxe <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> i'v got a weird problem with prototype and a script that handle a
> dropdown menu.
>
> here is the relevant code (javascript)
>
> <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;
>
> }
>
> </code>
>
> the link to open up the menu is:
>
> <code>
> <a href="#" onclick="return protopop(this, $('080626040788428'),
> event);">This is a Link</a>
> </code>
>
> while the content of the menu is:
>
> <code>
> <div class="protopop" id="080626040788428" style="display:none">
> content here.....
> </div>
> </code>
>
> ...and the css is ...
>
> <code>
> .protopop {
>         margin:-1px 0px 0px -5px;
>         position:absolute;
>         z-index:100000;
>         background:#69c;
>         border-bottom:solid 1px #333;
>         border-right:solid 1px #666;
>         width:200px;
>         padding:10px 10px 10px 10px;}
>
> </code>
>
> everything works flawlessy with firefox but MSIE 6 and 7 give an error
> at line 2272 of prototype.js. The menu appears on click but the page
> is reloaded and the application goes to homepage...
>
> I ran the "deprecation.js" file without luck (no errors in firefox)
> just warnings but no blocks.
>
> Any hint is appreciated. thanks in advance
> max
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to