Forums | Mahara Community

Support /
Custom Inline JavaScript


anonymous profile picture
Account deleted
Posts: 34

28 July 2009, 14:13

I was wondering how to include custom inline javascript to a tpl page.  I've tested my code outside of Mahara and I know it works.  I thought I could simply include the javascript onto the tpl page that is displayed?  The JavaScript that I'm trying to include (along with 7 javascript file includes) populates a tree list that is submitted via a form.  Let me know if you need to know anything else.
anonymous profile picture
Account deleted
Posts: 1643

28 July 2009, 15:14

The header.tpl provides $INLINEJAVASCRIPT for you for this purpose. E.g.:

$smarty->assign('INLINEJAVASCRIPT', $your_js);

2 results