.js File Adding Problem in MY Custom skin

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/27/2010 4:09:04 AM
Gravatar
Total Posts 26

.js File Adding Problem in MY Custom skin

Hi Joe,

             In my custom skin folder,i added a .js File in Layout.master ..u mentioned like,

<Scripts>
        <asp:ScriptReference Path="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" />
        <asp:ScriptReference Path="~/Data/Sites/1/skins/artisteer-24headermenu4/jquery.hoverIntent.minified.js" />
       
    </Scripts>

but it doesn't working...so if there is any other way for adding custom .js files...please provide the solution to this problem.

 

Thanks & Regards

Ramakrishna Thota.

10/27/2010 4:24:06 AM
Gravatar
Total Posts 44

Re: .js File Adding Problem in MY Custom skin

Hi,

I'm using the latest verison of mojoPortal and I include custom js files like this;

In my own copy of layout.master in my custom skin folder, I have the following lines in the <head>; 

<portal:ScriptLoader id="ScriptLoader1" runat="server" />
<portal:SkinFolderScript ID="sfs1" runat="server" ScriptFileName="my-custom-script.js" /> 

This ensures that the custom js file is loaded correctly from your custom skin folder. Obviously you can add as many custom scripts as required.

Best Regards,

Vince. 

10/27/2010 5:51:27 AM
Gravatar
Total Posts 26

Re: .js File Adding Problem in MY Custom skin

HI,

Just i follow above pattern....But it is also not working...

<portal:SkinFolderScript ID="SkinFolderScript1" runat="server" ScriptFileName="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" />
    <portal:SkinFolderScript ID="SkinFolderScript2" runat="server" ScriptFileName="jquery.hoverIntent.minified.js" />

10/27/2010 6:30:06 AM
Gravatar
Total Posts 44

Re: .js File Adding Problem in MY Custom skin

Hi,

The script loader is designed to load custom scripts from your custom skin directory;

my-mojoPortal-web-root/Data/Sites/1/skins/my-custom-skin/my-custom-script.js

Just as a test, ensure that your skin folder is active by calling a single custom script from layout.master.

<portal:ScriptLoader id="ScriptLoader1" runat="server" />
<portal:SkinFolderScript ID="sfs1" runat="server" ScriptFileName="my-custom-script.js" /> 

Also have a look at some of the excellent documentation written by Joe.

http://www.mojoportal.com/self-hosting-jquery-and-jquery-ui-files.aspx

http://www.mojoportal.com/skinning-overview.aspx

Best Regards,

Vince.

10/27/2010 6:55:12 AM
Gravatar
Total Posts 18439

Re: .js File Adding Problem in MY Custom skin

You should not load jQuery since we already include it, by adding it yourself it will be loaded twice. Also we are already using a newer version of jQuery than 1.3.

Best,

Joe

8/25/2011 8:04:43 AM
Gravatar
Total Posts 1

Menu customization problem.

i edited mojoportal skin and customize my color for menu in stylemenu.css but two hours  menu style are  working correctly. Afterwards sometime menu style is not applied. What is the problem? i had an urgent. Please reply as soon as possible.

8/25/2011 8:40:16 AM
Gravatar
Total Posts 44

Re: .js File Adding Problem in MY Custom skin

Hi Sugesh,

Firstly use Firebug in Firefox or Tools --> developer tools in Google Chrome, right click on a menu item and select  "Inspect Element".  This will show you which styles are being applied to the menu.  It may be that you have overwritten the menu styles elsewhere.

Best Regards,

Vince.

   

8/25/2011 9:08:01 AM
Gravatar
Total Posts 2239

Re: .js File Adding Problem in MY Custom skin

Hi Sugesh,

It sounds like you have not disabled the CSS cache for the site. Please see the "Overview/Introduction" article in the Skinning Documentation.

HTH,
Joe D.

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