foundation / foundation-sites

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.
https://get.foundation
MIT License
29.66k stars 5.49k forks source link

offcanvas.js is conflicting with prototype.js or vice versa #667

Closed sethburtonhall closed 11 years ago

sethburtonhall commented 12 years ago

I am calling both scripts after jquery.

prototype called 1st offcanvas called 2nd

When I call both, only prototype works When I remove prototype offcanvas works when I place prototype.js after offcanvas.js NEITHER work

Any ideas. here are the two scripts.

http://cl.ly/IANa

Thanks

smileyj68 commented 12 years ago

To be honest we've not really tested Foundation or any components with Prototype, since we're using jQuery. Are you trying to use off canvas with prototype only?

sethburtonhall commented 12 years ago

No, just using prototype.js as required by Jot Form. Using foundations jQuery as well.

Seth Hall (http://middle8media.com/seth) Middle8Media (http://middle8media.com) Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Wednesday, July 18, 2012 at 12:54 PM, Jonathan Smiley wrote:

To be honest we've not really tested Foundation or any components with Prototype, since we're using jQuery. Are you trying to use off canvas with prototype only?


Reply to this email directly or view it on GitHub: https://github.com/zurb/foundation/issues/667#issuecomment-7074725

mrsweaters commented 11 years ago

I wouldn't recommend mixing jQuery and Prototype libraries. Can you be more specific as to why you are including Prototype?

joebotha commented 11 years ago

You probably have to run all jQuery stuff in noConflict mode

sethburtonhall commented 11 years ago

Yes. I ended up implementing noConflict. Thanks.

Seth Hall middle8media.com

On Wednesday, September 26, 2012 at 11:11 AM, joebotha wrote:

You probably have to run all jQuery stuff in noConflict mode

— Reply to this email directly or view it on GitHub (https://github.com/zurb/foundation/issues/667#issuecomment-8893242).