Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Adding Requirements::javascript to page.php (editing problem)


Reply

455 Views

Avatar
Loopy

28 January 2012 at 12:24pm Community Member, 20 Posts

Hi everyone

I need to use javascript on silverstripe the. the code is as follows

<script src="http://static.supplier.com/api/badge/js/21323-9" type="text/javascript"></script>

Looking through documentation it looks like I should be able to just add Requirements::javascript to mysite/code/page.php however when i open this file in note pad it has little squares subdividing text which I cannot reproduce on key board. Can anyone tell me what these are and how I put new one in after adding Requirements::javascript?

Thanks