adding a smoothie chart to drupal.

35 views
Skip to first unread message

Tom Loveday

unread,
Apr 15, 2013, 6:27:13 PM4/15/13
to smoothi...@googlegroups.com
I have tried adding a smoothie chart to a drupal "basic page" using drupal_add_js()  the start and end are just to show me that the code was being parsed.
there is obviously an error as the two delimiter words (start,end) do not show.
start <br /b>

<?php
drupal_add_js('<script type="text/javascript" src="/var/www/drupal/misc/smoothie.js"></script>','inline');
<canvas id="mycanvas" width="400" height="100"></canvas>
drupal_add_js('/var/www/drupal/misc/frostygraph.js','inline');
?>
end
 
Any clues on how to accomplish this?
Reply all
Reply to author
Forward
0 new messages