Lowpro + prototype and Firefox 3.5
So it turns out lowpro is broken in the latest Firefox. Anyways DanWebb has released a fix for this which you can read more about here.
Now this didn’t solve my issues all together. I ran into an issue as the JavaScript was loading before the page was completely loading and thus the behaviours were not been added.
So the solution is to add the following
Event.observe(window, 'load', function() {
Event.addBehavior({
// assign behaviors
});
}
That way the behaviours don’t get added until after the DOM has fully loaded.
Getting JQuery and Prototype to place nice
If you want to use JQuery in your rails application but still want prototype working as well there is a simple way to make sure they play nice and work side by side. All you have to do after you include your JQuery includes code is have the following
<script> var $j = jQuery.noConflict(); </script>
Now all you have to do to use jquery is use “$j” instead of just “$” and your good to go. To use just the standard prototype library is still just “$”. Simple isn’t it




