Javascript Conflict?
Posted: Thu Apr 23, 2009 5:55 pm
I have a webpage that uses some ajax to send an email form, this all works fine when this is the only javascript on my page.
It uses mootools.js and the following javascript:
But as soon as I reference other javascript (prototype, scriptalicious...) this code stops working.
Is this a conflict? Is there something I can do to handle this?
It uses mootools.js and the following javascript:
Code: Select all
<script type="text/javascript">
window.addEvent('domready', function(){
$('myForm').addEvent('submit', function(e) {
new Event(e).stop();
var log = $('log_res').empty().addClass('sending');
this.send({
update: log,
onComplete: function() {
log.removeClass('sending');
}
});
});
});
</script>Is this a conflict? Is there something I can do to handle this?