[widgets][flot] how to make the .js and .css accessable?

21 views
Skip to first unread message

Jarod Liu

unread,
Feb 1, 2010, 3:25:51 AM2/1/10
to Lift
I found flot generated the following code:
<script type="text/javascript" src="/classpath/flot/
jquery.flot.js"></script>
<!--[if IE]><script language="javascript" type="text/javascript"
src="/classpath/flot/excanvas.pack.js"></script><![endif]-->
<link href="/classpath/flot/jquery.flot.css" type="text/css"
rel="stylesheet" />

but the these files not exists after jetty:run.

I can access the /classpath/jquery.js.(and other .js in the webkit
jar)

now, to make flot work, I have to copy these .js files to /static and
link to these copy on the page

Jeppe Nejsum Madsen

unread,
Feb 1, 2010, 4:41:57 AM2/1/10
to lif...@googlegroups.com
Jarod Liu <liuyu...@gmail.com> writes:

You need to add a call to Flot.init in Boot to make the classpath
resources available...

/Jeppe

Jarod Liu

unread,
Feb 1, 2010, 7:12:30 AM2/1/10
to Lift
Jeppe,
Thanks
Reply all
Reply to author
Forward
0 new messages