Can´t get YUI and Jquery to load from the local server

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
5/29/2009 11:40:00 AM
Gravatar
Total Posts 9

Can´t get YUI and Jquery to load from the local server

Hi! First, thanks for all the great work you have done with mojoportal. I´m setting up a site for my local union. The thing is that many of our users will only be able to reach the site using intranet and they don´t have internet access. I have made the changes suggested at http://www.mojoportal.com/intranets-and-private-networks.aspx so that it will load YUI and Jquery from the local server instead of downloading them from ajax.googleapis.com

I put the latest version of jquery and YUI under "ClientScript" and made the appropriate changes to web.config:

    <add key="UseGoogleCDN" value="false" />

   ...

    <add key="YUIBasePath" value="~/ClientScript/yui270b/" />

    <add key="YUITabCss" value="~/ClientScript/yui270b/assets/skins/sam/tabview.css" />

    <add key="YUISkinImagePath" value="/ClientScript/yui270b/assets/skins/sam/" />

    <add key="YUIDefaultSkinFolder" value="sam" />

    <add key="YUIDefaultSkinClass" value="yui-skin-sam" />

    <add key="DisableYUI" value="false" />

    <add key="jQueryBasePath" value="~/ClientScript/jquery132/" />

    <add key="jQueryUIBasePath" value="~/ClientScript/jqueryui16b/" />

As soon as i disconnects from internet the site gets slow as hell and the tabs in admin section doesn´t work anymore (i presume that it uses YUI).

What am i doing wrong? Can anyone point me in right direction?

5/29/2009 12:05:52 PM
Gravatar
Total Posts 18439

Re: Can´t get YUI and Jquery to load from the local server

Are you using the latest version of mojoPortal?

I would view the source of the rendered page and see the urls for the javascript to determine where it is being loaded from. If it stops showing tabs when not connected to the internet then it sounds like it is in fact loading them from google not locally.

I would put those custom settings in a user.config rather than directly in Web.config that way you won't lose the custom settings when you upgrade. 

Make sure there are not multiple copies of these settings in Web.config, ones lower in the file will trump ones higher in the file.

Hope it helps,

Joe

5/29/2009 1:33:38 PM
Gravatar
Total Posts 9

Re: Can´t get YUI and Jquery to load from the local server

Thanks for a quick reply.

Reviewing the source code  i saw that YUI was loaded from the local server. Don´t know why it didn´t work but I was able to get it working after i updated to the latest version of mojoportal.

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