JavaScript error in 2.3.4.1

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.
3/31/2010 1:03:29 PM
Gravatar
Total Posts 171
I am a Russian programmer

JavaScript error in 2.3.4.1

Hi, Joe

I am testing the new version 2.3.4.1 and in many places appear error in jquery.min.js in string

d=e[a.type];

error is: e[a.type] 'undefined'

I debug code and calculated: a.type = 'unload'

This error occurs on site demo.mojoportal.com

I researched the issue and I think that this error result of replace YUI tabs with jQuery tabs, but I'm not sure

Best regards, Alexander
 

3/31/2010 2:32:36 PM
Gravatar
Total Posts 18439

Re: JavaScript error in 2.3.4.1

Hi Alexander,

I experience no error in any browser under normal usage.

I do see that in IE 8 if the developer tools are open it logs this error to the console but no script error warning is shown in the browser.

In Firefox with Firebug I see no errors logged.

If it is somehow causing a worse problem for you then you can use an older version of jQuery and jQuery UI. We have updated to the latest version of both, but if I change to this in user.config it no longer logs the error in IE 8 after refreshing the page.

<add key="GoogleCDNjQueryVersion" value="1.3.2" />
<add key="GoogleCDNjQueryUIVersion" value="1.7.2" />

Hope it helps,

Joe

3/31/2010 3:42:57 PM
Gravatar
Total Posts 171
I am a Russian programmer

Re: JavaScript error in 2.3.4.1

Hi, Joe

I found this error on demo.mojoportal.com under IE8 Windows 7

This error always occurs after the change of the skin.

Maybe it's not very serious, since skins are changing every day. But in the past versions of this error was not.

Best regards, Alexander

4/2/2010 4:33:00 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: JavaScript error in 2.3.4.1

It's a mistake a new version of the system (2.3.4.1). It arises not only when changing the skin. It arises in many situations. I corrected it

Best regards, Alexander

4/2/2010 8:43:20 AM
Gravatar
Total Posts 18439

Re: JavaScript error in 2.3.4.1

Do you wish to share the steps to produce the problem?

Do you wish to share the fix?

Best,

Joe

4/2/2010 9:05:32 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: JavaScript error in 2.3.4.1

Hi, Joe

This is a very interesting bug.

It occurs only under conditions:

1. Browser: IE (it does not arise in FireFox)

2. Skin: Any except Artisteer`s skins (for example: dcarter-businessone)

3. Site page: should contain jquery tabs (for example: Secure/UserProfile.aspx)

Under these conditions, move to any other page of the site will create an error JavaScript
 

This error occurs on www.mojoportal.com ! I just checked it under debugger JavaScript

I found a solution. But it is not beautiful. So I would like to see your version

P.S. There are other mistakes, I'll write about them later

Best regards, Alexander

4/2/2010 9:42:13 AM
Gravatar
Total Posts 18439

Re: JavaScript error in 2.3.4.1

Hi Alexander,

There seems to be one more condition required and that is that you have unchecked Disable Script Debugging in advanced settings in IE. By default this is checked and no script error occurs in the page it only logs this in the developer tools  script console. If script debugging is enabled it then the error will be shown in the page but otherwise it will not.

To me this looks like a minor bug in jquery that really should have no impact on ordinary users. I do not feel that I need to spend time trying to solve this and I feel that the real solution must be made by the jquery developers, the fix for normal users is to disable script debugging.

If it was a real script error it would show the error even with script debugging disabled.

As I found the error is not logged using the older versions of jquery and jquery ui, that is more evidence that this is a minor jquery bug, so an alternate solution is to use the older versions of jquery.

Best,

Joe

4/2/2010 9:58:59 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: JavaScript error in 2.3.4.1

Hi, Joe

I have the same opinion about the problem. It is necessary to explain this to users who visit sites with checked Script Debugging. So I decided this issue for site visitors

Best regards, Alexander

4/3/2010 11:35:10 AM
Gravatar
Total Posts 57

Re: JavaScript error in 2.3.4.1

Hello Joe

I just came here to report this.I have the same problem.It is really annoying and keep breaking visual studio.

4/3/2010 12:19:26 PM
Gravatar
Total Posts 18439

Re: JavaScript error in 2.3.4.1

Hi,

This only happens when javascript debugging is enabled, it has no impact on production systems where users should not typically have script debugging enabled.

If it is causing you troubles in your development environment (or any environment) you can put this in your user.config to use the previous version of jQuery

<add key="GoogleCDNjQueryVersion" value="1.4.1" />

the problem seems to be a minor bug in jQuery 1.4.2

Hope it helps,

Joe

4/3/2010 1:24:35 PM
Gravatar
Total Posts 171
I am a Russian programmer

Re: JavaScript error in 2.3.4.1

Hi, Joe

There is another solution to this problem. I noticed that the skin Artistera no such problem. I examined the difference. The difference in the file script.js. I deleted from this file extra lines and left only

-----------------

var artEventHelper = {
'bind': function(obj, evt, fn) {
if (obj.addEventListener)
obj.addEventListener(evt, fn, false);
else if (obj.attachEvent)
obj.attachEvent('on' + evt, fn);
else
obj['on' + evt] = fn;
}
};
 

var artLoadEvent = (function() {
var list = [];

artEventHelper.bind(window, 'load', ready);
return ({
add: function(f) {
list.push(f);
}
})
})();
----------------------------

and than add in layout.Master

<portal:SkinFolderScript ID="sfs1" runat="server" ScriptFileName="script.js" />

After these steps, everything was perfect

But this solution is not beautiful

Best regards, Alexander

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