robw
16 Apr 2009, 7:42 AM
Hi
I have been using the following code for ages. Until recently it has worked but now is broken (i am using latest code from SVN).
Ext.select('p', true, 'container').addClassOnOver('hi');Should add the class to all the <p> tags. but now hovering over any of the <p> tags adds the class to the last <p>.
Any ideas what's going on?!
Thanks
Rob
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<script type="text/javascript" src="/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/ext/ext-all-debug.js"></script>
<style type="text/css">.hi { background-color: red; }</style>
</head>
<body>
<div id="container">
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
</div>
<script type="text/javascript">
Ext.onReady(function() {
Ext.select('p', true, 'container').addClassOnOver('hi');
});
</script>
</body>
</html>
I have been using the following code for ages. Until recently it has worked but now is broken (i am using latest code from SVN).
Ext.select('p', true, 'container').addClassOnOver('hi');Should add the class to all the <p> tags. but now hovering over any of the <p> tags adds the class to the last <p>.
Any ideas what's going on?!
Thanks
Rob
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<script type="text/javascript" src="/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/ext/ext-all-debug.js"></script>
<style type="text/css">.hi { background-color: red; }</style>
</head>
<body>
<div id="container">
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
</div>
<script type="text/javascript">
Ext.onReady(function() {
Ext.select('p', true, 'container').addClassOnOver('hi');
});
</script>
</body>
</html>