millsy007 Posted April 23, 2009 Share Posted April 23, 2009 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: <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> 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? Quote Link to comment https://forums.phpfreaks.com/topic/155429-javascript-conflict/ Share on other sites More sharing options...
darkfreaks Posted April 24, 2009 Share Posted April 24, 2009 there is no way to use both scriptalicious, prototype and escape all libraries. however you can use jquery and mootools Quote Link to comment https://forums.phpfreaks.com/topic/155429-javascript-conflict/#findComment-817954 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.