I can't seem get to work the newly inctroduced EventSelectors of protoype.
I downloaded the latest release via SVN. And included both prototype
and scriptaculous.
This is a short extract of my test:
<body>
<div id="footer">This is a footer</div>
<script type="text/_javascript_">
var Rules = { '#footer:loaded': function(element) {
Element.setStyle('footer', {backgroundColor:'red'});
}
}
EventSelectors.start(Rules);
</script>
</body>
But the error message is always : EventSelectors is not defined.
What am I doing wrong??
TIA,
Alex
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs