bebraw
9/15/2010 - 5:31 PM

errors.txt

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
    <head>
        <title>Sidebar</title>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">

        <script type="text/javascript" src="right.js"></script>
        <script type="text/javascript">
            "#sidebar-handle".on('click', function() { // note that right.js points to RC2!
                $('sidebar-content').toggle(); // this works in FF, fails in Chrome (errors above)
            });
        </script>
    </head>
    <body>
        <div id="sidebar" style="width:120px;height:200px;background-color:blue">
            <div id="sidebar-handle" style="width:20px;height:200px;float:right;background-color:red">baz</div>
            <div id="sidebar-content" style="width:100px;height:200px;background-color:green">boz<div>
            foobar
        </div>
    </body>    
</html>
right.js:62 Uncaught TypeError: Object #<an HTMLDocument> has no method 'attachEvent'
side1.html:11 Uncaught TypeError: Object #sidebar-handle has no method 'on'