<html>
<head>
<script type="text/javascript" src="js/prototype.js"></script>
<script>
        function foo(o){
                alert(o.up('div').getAttribute('id'));
        }

        function bar(){
                alert($('h2').up('div').getAttribute('id'));
        }
</script>
</head>
<body>
        <div id="div1">
                <a id="h1" href="#" onclick="foo(this); return false;">foo</a>
                <a id="h2" href="#" onclick="bar(this); return false;">bar</a>
        </div>
</body>

</html>

this code got error "Object doesn't support this property or method"
when click into "foo" link in IE 6/7. with FF/Opera both links work
properly.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to