views:

169

answers:

3

I would like to create a widget so that my visitors can display it on their blog/website.

I would like to use jquery and jsonp to develop this widget.

I know how to avoid conflicts between jQuery and other libraries (like prototype).

But what will happen if jquery is already installed on my visitors' websites and if their version is different from my version ?

What I mean is: what if, for example, they run a script using an older jquery version and which is not compatible with my jquery library ? Does it stop working ? Is their any workaround ?

A: 

Calling jQuery.noConflict() will remove jQuery from $ and restore whatever was there before.

Ignacio Vazquez-Abrams
A: 

Why not try this for the widget? http://consumer.easyxdm.net/current/example/widgets.html This is far more powerful than JSONP, much safer, and it has bi-directional transport.

This is really just one of the showcases for the easyXDM framework (http://easyxdm.net/)

Sean Kinsey