> I need to use Canviz for some project of mine, in which I already use
> the jQuery library. I didn't want to use both jQuery and Prorotype
> though, so what I did is change the latest SVN version of Canviz so it
> can be used with any library, including jQuery.
Thank you! I am interested in being library-neutral; see issue 66:
http://code.google.com/p/canviz/issues/detail?id=66
See my comments there about the direction I'd like to go with this and some questions I have.
In short I would like to:
* not use any JavaScript framework library at all, if possible
* hear how (or whether) other JavaScript (non-framework) libraries do this
* accept patches that make single-purpose changes, so the diffs remain short and understandable
This ajax loading method is the only real issue that needs to be
solved to create a completely framework independent version of canviz.
There are some other methods that uses frameworks and will also need
to be rewritten using native javascript stuff, but I don't think
they'll be very hard to do. Maybe I can finish that vanilla adapter if
I get bored some day :)
About the patches, the only quick simplification I can think of is
removing the jQuery adapter. One could create simpler patches by
removing the prototype calls one at a time but that would be pretty
time consuming.
2011/10/6 Ryan Schmidt <googl...@ryandesign.com>:
I've done the vanilla (no-framework) adapter. It should work on all
modern browsers.
The archive in the following link contains :
- Three modified index.html files (indexP.html, indexJ.html and
indexV.html) that can be used to test the library with the three
available adapters (prototype, jquery and vanilla respectively). Just
open them in your regular test environment instead of the usual
index.html.
- The vanilla adapter (vanilla.js). Again, it should work with most
modern browsers, but some older ones that works with prototype might
break with the Vanilla adapter. Also, there is a risk that some input
files breaks the page as content escaping might be less complete than
what the frameworks did. Nothing too hard to fix in the future though.
You can find the files here (not a patch, I just put them in an
archive for reference) :
www.sprods.net/canviz/canviz-vanilla-and-tests.zip
Cheers,
Xavier
2011/10/6 Xavier Roger-Machart <xroger...@gmail.com>: