0

I am including prototype.js in my tpl file and it is causing error as follows

TypeError: $("#dcmenu") is null

When I comment out the prototype.js file the menu is working well. Since i need this file to declare some classes and sugarCRM includes some javascript libraries and Jquery by default how can these two work parallel without conflicting. Jquery's noConflict() will not be useful since other pages does not include the prototype file.

Geek Num 88
  • 5,264
  • 2
  • 22
  • 35
HardCode
  • 1,613
  • 4
  • 21
  • 42

1 Answers1

0

I don't think prototype.js has the same noConflict option like jQuery has, per other discussions like this...

jQuery and prototype.js conflict, how to keep jQuery as $?

Any reason why you need to use prototype.js?

Community
  • 1
  • 1
jmertic
  • 2,208
  • 1
  • 13
  • 8
  • Ohh it was used in a Module that we created way back and now we are Loading that module in the Newer version of sugar and since sugar includes jquery now, so our prototype is conflicting. – HardCode Dec 05 '12 at 05:24