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.

All other Modules /

Discuss all other Modules here.

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

Java Script


Go to End


3 Posts   1140 Views

Avatar
The Bigman

Community Member, 2 Posts

9 May 2010 at 5:47am

Hi
Is it possible to insert a bit of java script into a page ie Thanks

<div id="lrep1985667" style="width: 350px;">Data loading....<a href="http://unofficialsiha.leaguerepublic.com/Index.do?divisionseason=6381018">click here for Under 12</a><br/><br/><a href="http://www.leaguerepublic.com">LeagueRepublic</a></div>
<script language="javascript" type="text/javascript">
var lrcode = '1985667'
</script>
<script language="Javascript" type="text/javascript" src="http://api.leaguerepublic.com/client/api/cs1.js"></script>

Avatar
UncleCheese

Forum Moderator, 4102 Posts

9 May 2010 at 6:32am

You can use Requirements::customScript();

Avatar
The Bigman

Community Member, 2 Posts

9 May 2010 at 6:36am

Thanks
Just stumbled on this CMS today and having a look around. I have a sports site with league tables etc so will see how it goes.
Thanks

PS can you import users from another forum script ie kunena.

Thanks again