css and javascript error

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/29/2009 6:49:51 AM
GP
Gravatar
Total Posts 23
GP

css and javascript error

Hello to all.

Im using server 2003 with the latest build of mojoportal for postgresql database.

Ive followed the documentation to install it but it is not working well now.

The CMS works but no CSS is loaded.

Here can be found an example http://internal.bio3.pt/cms where only plain html is loaded.

When using firefox no error is triggered, however sometimes when using IE 7 it triggers an javascript error something like 'sys not defined'

Anyone has any hints or faced the same issue?

Regards

9/29/2009 8:43:44 AM
Gravatar
Total Posts 2252

Re: css and javascript error

Hi GP,

I think the FAQ has some info that might help you. I extracted what I think will help most:

When the setup page runs and it creates the first site, all the skin files are copied from

/Data/skins
      to
/Data/Sites/[SiteID]/skins

So typically it will copy them from /Data/skins to /Data/Sites/1/skins. It will only do this if the /Data/Sites/1/skins folder does not exist. Sometimes during installation it may copy some of the files but not all of them and the result will be that your site has no style. If you manually copy the /Data/skins folder to /Data/Sites/[SiteID]/skins and then touch your Web.config file (ie download it an upload it again or type a space in it and save it) to clear the server cache and then also clear your browser cache it will fix the problem. Typically, SiteID will be 1 in a single site installation.

HTH,
Joe D.

9/29/2009 3:23:05 PM
GP
Gravatar
Total Posts 23
GP

Re: css and javascript error

Hello Joe D.

Ill give a try.

This is the frist time i face this, using IIS 5.x it works ok, but IIS 6 i get this error.

Regards.

9/30/2009 4:52:50 AM
GP
Gravatar
Total Posts 23
GP

Re: css and javascript error

Hello to all.

I've checked the Data\Skins and Data\Skins\1\Skins and they both have the same content.

So i'm not sure if it's a lack of some missing css files, which doesn't look to be the problem. Meanwhile i've been using IE7 and when visiting the application i have a few client side errors, one of the is: 'sys' in undefined.

After googling it theres a few ASP.NEt foruns stating that this error is triggered because the is no javascript loaded.

http://forums.asp.net/p/1040236/1446560.aspx http://weblogs.asp.net/chrisri/archive/2007/02/02/demystifying-sys-is-undefined.aspx http://geekswithblogs.net/ranganh/archive/2006/11/24/98276.aspx

Anyone had this problem?

It looks like the web.config needs to be updated to allow this client side files to be loaded, but anyone knows what needs to be changed?

Regards.
9/30/2009 6:43:05 AM
Gravatar
Total Posts 18439

Re: css and javascript error

Hi,

Is this an upgrade or a new installation?

If its an upgrade then don't assume the files are the same in /Data/skins and copy them to /Data/Sites/1/skins and overwrite the older files.

The way to troubleshoot this problem.

1. Look in the Administration > System log for any errors that may be related.

2. View the source of the rendered page and copy the url for the ...csshandler.ashx... and then paste it in a new browser window. Do you get an error or do you see css?

Is this site running on a private network where users do not have internet access?If so you may need to host the jquery and YUI files locally instead of consuming them from the google CDN which is the default.

Hope it helps,

Joe

9/30/2009 9:41:21 AM
GP
Gravatar
Total Posts 23
GP

Re: css and javascript error

Hi joe.

I have some news on this subject.

This is a clean install, not an upgrade, however i've tried upgrading an existent mojoportal and this happen also.

Right now i've changed some extension mappings on IIS 6 and the style is shown. My hint was this post i found here http://aspadvice.com/blogs/sswafford/archive/2007/01/25/ASP.NET-AJAX-v1.0-Sys-is-undefined-error.aspx. Even editing this as refered it did not fix the whole page but some styles were applyed.

Right now when using firefox there's no erros but IE 7 triggers some errors, one of them is related to jquery. So the solution to this should be as you point out. Serve them (javascript libraries) locally.

I'll try to do what you say, i'll report back the result.

[EDIT]

Latest verison of yui supported is YUI 2.x or 3.x? There is now 2 versions available?

Regards.
9/30/2009 10:03:45 AM
Gravatar
Total Posts 18439

Re: css and javascript error

Hi,

That jquery issue in IE was fixed and the 2.3.1.9 release was patched this morning. If you download it again and then just get the new version of /ClientScript/oomph/oomph.min.js and replace your existing one it should fix that.

Hope it helps,

Joe

9/30/2009 1:11:12 PM
GP
Gravatar
Total Posts 23
GP

Re: css and javascript error

Hello again.

I've replaced the oomph.min.js with it's latest version from svn.

When using this libs are not loaded by my IIS, but changing it to false and adjusting they're paths i get less errors exept the jQuery UI which i'm facing a few difficulties to setup

I've also followed whats suggested in http://www.mojoportal.com/intranets-and-private-networks.aspx. This helped removing a few errors from the client side scripts since all libs were served from my server.

However i think this line is not clear enough, so when saying:

Download the jQuery UI files and put them beneath /ClientScript/ and then configure this setting with the appropriate path:

My questions are:

Ive went to http://jqueryui.com/download and what should i download?

For troubleshooting i've downloaded a complete version and and i get several folders with several js files, so were should i put them?

Do i only need the jquery-ui.min.js? or others that came with it as well and were do i put them?

Is there any IIS config that disable the use of javascript libs served by google CDN?

Regards
9/30/2009 1:36:50 PM
Gravatar
Total Posts 18439

Re: css and javascript error

Please describe what is the folder structure and file names of your jquery ui package after unzipping it?

9/30/2009 1:43:31 PM
GP
Gravatar
Total Posts 23
GP

Re: css and javascript error

Easy.

My steps.

1- Visit http://jqueryui.com/download
2- Since i dont know whats necessary to download here, i've checked all components
3- Then selected vrsion 1.7.2 and hit download
4- I have a zip file with 2 main folders named: development-bundle and js

So were do i put these?

Thanks once more :)

Regards.
9/30/2009 8:18:36 PM
GP
Gravatar
Total Posts 23
GP

Re: css and javascript error

Hello again.

By trial and error i was able to figure out what needed to be done in order to download serve localy jquery ui.

After the steps above i've downloaded the current 1.7.2 build http://jqueryui.com/ from here (instead of building a custom download as i was doing)

Then after opening the zip i went to the js folder and adjusted the file named jquery-1.7.2.custom.min.js to jquery-ui.min.js. This file was put on \ClientScript\jqueryui172.

The folder develpoment-bundle had child folders named themes, external and ui which were also put on \ClientScript\jqueryui172.

After the necessary adjustments on web.config all was done.

Now it is working.

Never the less i have to find if there's any IIS setting on Windows Server 2003 that could block a IIS website to access the google cdn.

Thanks.

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