Jump to content

Javascript Conflict?


millsy007

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/155429-javascript-conflict/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.