Reputation: 3444
I currently want to make my project accessible not only via back-end code (C#, Python, PHP, etc.), so I decided to write an easy and simple JS API, every developer can easily integrate within their website / project. Since the whole thing is a service driven system, most of the stuff runs via RPC encoded as JSON.
My problem is, that if I want to make this API I got the following two options:
The big problem with option number 2, which is by far the best option, is that I have to say "dear developer, you need to use jQuery to access my API", which is striking me, since I do not want to dictate what ppl should or should not use by restricting their opportunities.
Is there a way implementing jQuery's RPC stuff without breaking any other potential JS framework the final developer will use?
Upvotes: 0
Views: 72
Reputation: 41533
if you're worried about the conflict between jquery and other libraries, use jQuery.noConflict()
and it solves your problem!
more info at : http://docs.jquery.com/Using_jQuery_with_Other_Libraries
Upvotes: 1