Error 404 Google CDN JQuery UI CSS

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
6/30/2011 10:51:45 AM
Gravatar
Total Posts 44

Error 404 Google CDN JQuery UI CSS

Hi,

I receive a 404 error in debug mode;
GET http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/themes/jquery_custom/jquery.ui.all.css 404 (Not Found)

I have checked the latest web.config on CodePlex and it contains the key;
<add key="GoogleCDNjQueryUIVersion" value="1.8.11"/>

I Googled the problem and found this response;
http://forum.jquery.com/topic/ui-all-css-missing-for-jquery-ui-v1-8-on-google-cdn

Is there a way of fixing this in mojoPortal?

Best Regards,

Vince.
 

6/30/2011 11:00:25 AM
Gravatar
Total Posts 18439

Re: Error 404 Google CDN JQuery UI CSS

Hi Vince,

The link you posted indicates that problem was solved.

The problem you are experiencing is because you can't use the CDN for custom themes you make with theme roller, the CDN only has the standard themes. your url has "jquery_custom" as the theme name but that is not a standard theme name.

If you want to use a custom jqueryui theme then you have to host the files locally. Otherwise only use a standard theme name on ScriptLoader in layout.master.

<%-- JQueryUIThemeName valid options are:
base, black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks,
humanity, le-frog, mint-choc, overcast, pepper-grinder,
redmond, smoothness, south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader
--%>
    <portal:StyleSheetCombiner ID="StyleSheetCombiner" runat="server"  JQueryUIThemeName="hot-sneaks" />

Hope that helps,

Joe

6/30/2011 11:21:47 AM
Gravatar
Total Posts 44

Re: Error 404 Google CDN JQuery UI CSS

Many thanks for your quick reply Joe.  

Do you think that the performance gained from using the CDN would outweigh the use of a custom theme?

Best Regards,

Vince.

7/4/2011 10:04:36 AM
Gravatar
Total Posts 18439

Re: Error 404 Google CDN JQuery UI CSS

Hi Vince,

You could just host the CSS files locally and still use the javascript from the CDN. I've just updated the article Self Hosting jQuery and jQueryUI to explain how you could add the jQuery CSS to your skin and it will be combined and minified along with your other CSS which would actually improve performance by eliminating some extra http requests.

Hope that helps,

Joe

7/4/2011 11:11:54 AM
Gravatar
Total Posts 44

Re: Error 404 Google CDN JQuery UI CSS

Thanks Joe, I'll do just that.

Best Regards,

Vince.

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