Microsoft JScript runtime error: 'GB_showCenter' is undefined

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.
10/29/2011 11:49:32 AM
Gravatar
Total Posts 24

Re: Microsoft JScript runtime error. Microsoft JScript runtime error: Object doesn't support property or method 'accordion'

Hello Joe, thank you for the complete instructions on getting JQuery local and setting the layout master to use ui-lightness.

At this point I am down to one error:

Microsoft JScript runtime error: Object doesn't support property or method 'accordion'

The script is obtained from ScriptLoader.cs but specifically, it does not like:

private void SetupInitScript()
        {
            if (includejQueryAccordion)
            {
                // this also includes jqueryui tabs

                StringBuilder initAutoScript = new StringBuilder();
                initAutoScript.Append(" $('div.mojo-accordion').accordion(" + jQueryTabConfig + ");");
                initAutoScript.Append("$('div.mojo-accordion-nh').accordion(" + jQueryAccordionNoHeightConfig + "); ");
                initAutoScript.Append("$('div.mojo-tabs').tabs(" + jQueryTabConfig + "); $('input.jqbutton').button(); ");

 

Does this have something to do with the browser loaded by Visual Studio 2010?

Thanks again,

Carl

 

 

 

10/30/2011 7:52:08 AM
Gravatar
Total Posts 18439

Re: Microsoft JScript runtime error: 'GB_showCenter' is undefined

accordion is part of jQueryUI. It sounds like the jQueryUI script is not being loaded.

Hope that helps,

Joe

10/30/2011 8:25:40 AM
Gravatar
Total Posts 24

Re: Microsoft JScript runtime error: 'GB_showCenter' is undefined

Thanks Joe,

I re-read the "how - to" guide and noticed that from step 6 to step 7, I was still in the /themes directory when I copied the jquery-ui java script file.  Once I moved it to the jqueryui182 parent directory everything worked with out stopping with the load error.

http://www.mojoportal.com/self-hosting-jquery-and-jquery-ui-files.aspx

 

Thanks again,

Carl

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