mmzc
mmzc

Reputation: 622

write client side api that uses libraries

I've written the server side of an api, that serves html via json using REST via codeigniter. I'm investigating how to write a client side api with javascript, to get the data from the server via the api, present it in the dom and bind events to it.

One of the things I need at the client side is jquery. Now I'm wondering what happens if the client already is using another version of jquery, that conflicts the version I need?

Upvotes: 0

Views: 91

Answers (1)

Pappa
Pappa

Reputation: 1645

It's possible to use multiple versions of jquery simultaneously by assigning jQuery.noConflict() to a variable right after the jquery version is loaded. Then just use that variable as your reference to the version you need.

Upvotes: 1

Related Questions