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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

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


Go to End


1166 Views

Avatar
Loopy

Community Member, 20 Posts

28 January 2012 at 12:24pm

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