From 6a7f952efc07ec6442c015662c87f177179d096d Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Thu, 20 Nov 2008 10:34:52 +0000 Subject: [PATCH] Clarify the Prototype/Mootools question git-svn-id: https://flot.googlecode.com/svn/trunk@113 1e0a6537-2640-0410-bfb7-f154510ff394 --- FAQ.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/FAQ.txt b/FAQ.txt index d2a78ed..fa1b83c 100644 --- a/FAQ.txt +++ b/FAQ.txt @@ -20,14 +20,16 @@ millisecond wide. Q: Can I use Flot with libraries like Mootools or Prototype? -A: Yes, and it's easy! Call jQuery.plot instead of $.plot and put in -DOM elements where the examples and the API documentation are using -jQuery objects. - -Depending on how you include jQuery, you may have to do one more thing -to prevent it from overwriting functions from the other libraries, see -the documentation in jQuery ("Using jQuery with other libraries") for -details. +A: Yes, Flot supports it out of the box and it's easy! Just use jQuery +instead of $, e.g. call jQuery.plot instead of $.plot and use +jQuery(something) instead of $(something). As a convenience, you can +put in a DOM element for the graph placeholder where the examples and +the API documentation are using jQuery objects. + +Depending on how you include jQuery, you may have to add one line of +code to prevent jQuery from overwriting functions from the other +libraries, see the documentation in jQuery ("Using jQuery with other +libraries") for details. Q: Flot doesn't work with [widget or server-side framework xyz]!