JavaScript runtime error: Unable to get property 'msie' of undefined or null reference

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.
2/23/2014 3:13:28 PM
Gravatar
Total Posts 24

JavaScript runtime error: Unable to get property 'msie' of undefined or null reference

After upgrading to version 2.4.0.2 from TortoiseHG today, I'm getting the subject error whether or not I use my self hosted 1.9.1 version of jQuery and 1.9.2 version of jQueryUI and:

 

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

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

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

or have the above commented out.

When I lookup the error it saying that there is a compatibility issue with version 1.9 and the jQuery.browser method having been removed from 1.9.  The suggestion is to add the following for each page load

 

"  In your web page, load this plugin after the script for jQuery:

<script src="http://code.jquery.com/jquery-1.9.0.js"></script>

<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>

"

 

What are your suggestions ?

Thanks in advance,

 

Carl
 

 

2/23/2014 3:40:06 PM
Gravatar
Total Posts 18439

Re: JavaScript runtime error: Unable to get property 'msie' of undefined or null reference

See Important skin Changes, especially the part about the jquery migrate plugin which you need to enable to solve this javascript error

Hope that helps,

Joe

2/23/2014 3:42:12 PM
Gravatar
Total Posts 24

Re: JavaScript runtime error: Unable to get property 'msie' of undefined or null reference

This error only seems to appear in the Visual Studio 2010 IIS... once published to the website the error does not show up in my browser, (still MSIE).  Will check the link

Carl

2/23/2014 3:54:40 PM
Gravatar
Total Posts 24

Re: JavaScript runtime error: Unable to get property 'msie' of undefined or null reference

The link provided talks about the "layout.master" file, but not the layout.Master file, (capital M).  Not sure if that was a typo.  Also it did not say where to put the new portal entry so I placed it in the layout.Master file here:

 

<head id="Head1" runat="server"><title></title>

      <<portal:StyleSheetCombiner id="StyleSheetCombiner" runat="server" JQueryUIThemeName="start" />

      <portal:IEStyleIncludes ID="IEStyleIncludes1" runat="server" IncludeHtml5Script="true" />

      <portal:MetaContent ID="MetaContent" runat="server" />

      <portal:Favicon ID="Favicon1" runat="server" />

      <portal:ScriptLoader ID="ScriptLoader1" runat="server" IncludeJQueryMigrate="true" />

</head>

And I still get the same error in the following dynamic line of code:

if (!jQuery.browser.msie || parseInt(jQuery.browser.version) > 7) return;

 

If I need to add the portal:ScriptLoader somewhere else... please let me know.

 

Thanks!

 

Carl

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