Hi Fabian,

thanks, I knew there must be a way in Qooxdoo ...

Cheers,
Fritz

On Thu, 10 Sep 2009, Fabian Jakobs wrote:

> Fritz Zaucker schrieb:
>> In index.html put
>>
>>      <!--[if IE]>
>>        <script language="javascript" type="text/javascript"
>>                src="plot/excanvas.min.js">
>>        </script>
>>      <![endif]-->
>>      <script language="javascript" type="text/javascript"
>>              src="plot/jquery-1.3.2.min.js">
>>      </script>
>>      <link rel="stylesheet" type="text/css" href="plot/jqplot/jqplot.css"/>
>>      <script language="javascript" type="text/javascript"
>>              src="plot/jqplot/jqplot.min.js">
>>      </script>
>>      <script language="javascript" type="text/javascript"
>>              src="plot/jqplot/plugins/jqplot.barRenderer.min.js"></script>
>>      <script language="javascript" type="text/javascript"
>>
>>      ... other plugins you might need.
>>
>>
>> One question in this context: can I load the jqPlot libraries from
>> within Qooxdoo instead of from the index.html file? The idea is to only load
>> these libraries on demand (when a user really creates a graph).
>>
> You can use the ScriptLoader class to to include script from qooxdoo
> code <http://demo.qooxdoo.org/current/apiviewer/#qx.io2.ScriptLoader>.
>
> e.g.
>
> qx.io2.ScriptLoader.load("plot/jquery-1.3.2.min.js", function() {
>  // script is loaded
> }, this);
>
> Best Fabian
>
>

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to