2

I'm using the HTML5 game engine LimeJS and want to integrate a jQuery plugin for an isometric map. I added the tutorial script to a simple LimeJS program and there seems to be a conflict between LimeJS and jQuery. Both appear fine on the page, but the Lime script loses all interactivity when jQuery is included in the header.

Iso map plugin tutorial: http://www.pixel2life.com/publish/tutorials/1298/browsergames_creating_a_basic_isometric_map/page-1/

Directory of my files (look at source of HTML files - lime isn't installed on server so not functioning): http://notlaura.com/limefiles/

Thanks in advance

ScottR
  • 3,080
  • 3
  • 32
  • 35
notlaura
  • 157
  • 9

1 Answers1

0

Have you tried to run jQuery in noConflict mode and create an own scope for jQuery' s $ variable?

Query.noConflict();
(function($) { 
  $(function() {
    // more code using $ as alias to jQuery
  });
})(jQuery);
// other code using $ as an alias to the other library

Full documentation is here jQuery.noConflict()

Stephan Ahlf
  • 3,310
  • 5
  • 39
  • 68