Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

650 Posts in 185 Topics by 253 members

Themes

SilverStripe Forums » Themes » how can I merge Javascript code

Discuss SilverStripe Themes.

Page: 1
Go to End
Author Topic: how can I merge Javascript code 651 Views
  • moloko
    avatar
    Community Member
    9 posts

    how can I merge Javascript code Link to this post

    hallo,

    I want to build a simple moseover and mouseout function into my navi (grafik-elements).
    I have uploaded a code in: mysite->javascript->my.js -- (I tried it out already at a simple HTML file) --

    then I inserted the following code in my head page.ss :

        function init(){
    parent::init();
        Requirements::javascript("mysite/javascript/my.js");
        }

    hm? did i forget something.
    thanks in advance. m.

  • Willr
    avatar
    Moderator
    2744 posts

    Re: how can I merge Javascript code Link to this post

    Merge? You mean insert JS code into the page?. That should be all you need to do to include the JS on the page.

    If you want to merge multiple JS files into 1 and include that you do

    Requirements::combine_files('output.js', array('file1.js', 'file2.js'));

    651 Views
Page: 1
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: Newclear

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.