javascript

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
1/12/2010 8:36:21 AM
Gravatar
Total Posts 31

javascript

hi, could someone please tell me which source files generate this script -

<script type="text/javascript" > $('div.mojo-accordion').accordion(); $('div.mojo-accordion-nh').accordion({autoHeight: false}); $('div.mojo-tabs').tabs(); </script>


<script type="text/javascript" >$(document).ready(function () { $('a.cluetiplink').cluetip({attribute:'href', topOffset:25, leftOffset:25}); }); </script>

1/13/2010 6:30:36 AM
Gravatar
Total Posts 18439

Re: javascript

Our ScriptLoader control included in the layout.master file of the skin generates those scripts.

1/19/2010 4:51:26 AM
Gravatar
Total Posts 31

Re: javascript

Thanks Joe. I dont have that code on my layout.master - is it possible I have an older version of this file. I still get the scripts below written without it though. Can you tell me where these scripts are actually held too?

<script type="text/javascript" > $('div.mojo-accordion').accordion(); $('div.mojo-accordion-nh').accordion({autoHeight: false}); $('div.mojo-tabs').tabs(); </script>


<script type="text/javascript" >$(document).ready(function () { $('a.cluetiplink').cluetip({attribute:'href', topOffset:25, leftOffset:25}); }); </script>
 

1/19/2010 1:11:46 PM
Gravatar
Total Posts 18439

Re: javascript

Hi,

You should add this to the bottom of the <head section of your layout.master file if it does not already have this:

<portal:ScriptLoader id="ScriptLoader1" runat="server" />

Hope it helps,

Joe

1/20/2010 11:01:35 AM
Gravatar
Total Posts 31

Re: javascript

OK will do. Can you tell me where these scripts are actually held too?

1/21/2010 3:34:59 PM
Gravatar
Total Posts 18439

Re: javascript

Those specific scripts you posted are not loaded from anywhere they are rendered in the page by ScriptLoader. They depend on other scripts loaded by url but you can see the urls if you view the source of the rendered page.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.