SalesForce: Using jQuery and Prototype

Nerding, SalesForce on July 25th, 2009 No Comments

Somewhere in the Spring or Summer 09′ Updates of SalesForce, we started seeing Javascript errors within SalesForce’s Prototype code, such as:

element.className is undefined
element.hasClassName is undefined
element.dispatchEvent is undefined

Well, it turns out that jQuery and Prototype both overload some of the same things in the environment, so all you need to do is call this magical function:

jQuery.noConflict();

Poof!  No more conflicts between jQuery and Prototype, at least as far as we’ve found.

Tags: , ,

No Responses to “SalesForce: Using jQuery and Prototype”

Leave a Reply