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.
9/12/2011 1:43:19 PM
Gravatar
Total Posts 45
Thanks, cms_developer Contributer:http://codeissue.com/

Microsoft JScript runtime error: 'GB_showCenter' is undefined

Hi,

I am trying click Edit Instructions link in From Wizard pro form and got this error when I click on the link?

How do i resolve or get work around with it?

cms_developer

9/12/2011 1:50:23 PM
Gravatar
Total Posts 45
Thanks, cms_developer Contributer:http://codeissue.com/

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

Also to add to this problem.I was able to open the editor to write instrcutions.

But I am not able to close it now by clicking Save or Finished button.

Save doesn't close it and finish gives me this error

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

 

Detatails logs below:

2011-09-12 11:12:44,737 INFO mojoPortal.Web.Global - Application Started.
2011-09-12 11:14:32,969 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2011-09-12 11:15:42,732 INFO mojoPortal.Web.Global - Application Started.
2011-09-12 13:23:19,427 ERROR mojoPortal.Web.PageNotFoundHttpModule - 127.0.0.1 - Referrer(none)  PageNotFoundHttpModule handled error.
System.Web.HttpException (0x80004005): File does not exist.
   at System.Web.StaticFileHandler.ProcessRequestForNonMapPathBasedVirtualFile(HttpRequest request, HttpResponse response, String overrideVirtualPath)
   at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath)
   at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2011-09-12 13:32:47,737 INFO mojoPortal.Web.Global - Application Started.
2011-09-12 14:34:00,172 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2011-09-12 14:45:01,929 ERROR mojoPortal.Web.PageNotFoundHttpModule - 127.0.0.1 - Referrer(none)  PageNotFoundHttpModule handled error.
System.Web.HttpException (0x80004005): File does not exist.
   at System.Web.StaticFileHandler.ProcessRequestForNonMapPathBasedVirtualFile(HttpRequest request, HttpResponse response, String overrideVirtualPath)
   at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath)
   at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2011-09-12 14:45:41,319 ERROR mojoPortal.Web.PageNotFoundHttpModule - 127.0.0.1 - Referrer(none)  PageNotFoundHttpModule handled error.
System.Web.HttpException (0x80004005): File does not exist.
   at System.Web.StaticFileHandler.ProcessRequestForNonMapPathBasedVirtualFile(HttpRequest request, HttpResponse response, String overrideVirtualPath)
   at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath)
   at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

9/12/2011 1:58:55 PM
Gravatar
Total Posts 18439

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

you are using some mismatched versions of mojoPortal and Form Wizard Pro. we changed from using GreyBox to using Colorbox. You might try setting IncludeGreyBox="true" on the <portal:ScriptLoader in your layout.master file of your skin.

However it is difficult to help since I don't even know what versions of mojoPortal or Form Wizard Pro you are using or whether they are even compatible.

 

9/12/2011 2:17:57 PM
Gravatar
Total Posts 45
Thanks, cms_developer Contributer:http://codeissue.com/

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

Thanks Joe for your response.

I had created the 8 page questions.

First four are working fine.The issue was in sliding scale question for inserting instructions text.

 

I am using sts-FormWizard  2.6.0.0

&

mojoPortal Version 2.3.6.7 MSSQL

Details error logs from formpro.aspx

The state information is invalid for this page and might be corrupted.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted.

Source Error:


[No relevant source lines]

Source File: c:\Users\khanaly\AppData\Local\Temp\Temporary ASP.NET Files\root\68ec183b\6e4643a2\App_Web_nohoyume.3.cs    Line: 0

Stack Trace:


[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port:
Referer: http://localhost:50752/formpro.aspx
Path: /Default.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
ViewState: /wEWBgKrivvqCAKD986iBALJ+62mDgKW1NrACgK07/yhDALu5LbJAQ==]

[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +235
   System.Web.UI.ClientScriptManager.EnsureEventValidationFieldLoaded() +246
   System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +64
   System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +113
   System.Web.UI.WebControls.HiddenField.LoadPostData(String postDataKey, NameValueCollection postCollection) +46
   System.Web.UI.WebControls.HiddenField.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +12
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +327
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Users\khanaly\AppData\Local\Temp\Temporary ASP.NET Files\root\68ec183b\6e4643a2\App_Web_nohoyume.3.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

9/13/2011 7:55:04 AM
Gravatar
Total Posts 18439

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

I recommend using the latest release of mojoPortal and the latest release of Form Wizard Pro, or if you need to work from the source code then get the code from the repository, and update to revision 2381 of the default branch which corresponds closely with the release of mojoPortal 2.3.6.7 so it would be compatible with the latest 2.6.0.2 version of Form Wizard Pro.

My only other suggestion is if you can reproduce that viewstate error using Form Wizard Pro on our demo site so I can see it then I would investigate it as a bug.

10/25/2011 12:28:55 PM
Gravatar
Total Posts 24

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

Hello Joe, my error is a bit different and I believe it has something to do with either cookies or something else in Internet Explorer 9 that I'm using in the debug environment. Specifically I am receiving: Microsoft JScript runtime error: '$' is undefined And this is the JScript code where I first receive this error: $(document).ready(function() { $("span.downarr a").click(function() { HideMenuToolbar(); Set_Cookie('openstate', 'closed') }); $("span.showbar a").click(function() { ShowMenuToolbar(); Set_Cookie('openstate', 'open') }); $("span.downarr a, span.showbar a").click(function() { return false; }); var openState = Get_Cookie('openstate'); if (openState != null) { if (openState == 'closed') { HideMenuToolbar(); } if (openState == 'open') { ShowMenuToolbar(); } } }); and it occurs any time any page is rendered in the debug environment. It doesn't break anything but it's annoying because I have to hit continue each time... BTW, this does not happen outside of the debug environment also using internet exporer 9... Your thoughts suggestions, much appreciated. Thank you! Carl
10/26/2011 7:19:46 AM
Gravatar
Total Posts 18439

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

Hi Carl,

$ is a symbol for jQuery. By default we load jQuery from the google CDN, so if your dev machine doesn't always have internet access you might get errors because it can't load that from the internet. You could host the jquery files locally in that case.

Hope that helps,

Joe

10/26/2011 5:14:08 PM
Gravatar
Total Posts 24

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

It does have internet access, but when running in debug mode, the debug browser that launches when you click play in VS2010 is not using port 80 but rather:

http://localhost:49185/

I'm not sure if that makes a difference, but certainly if it's also trying to go to Google using port 49185, that would be an issue.

Carl

 

10/27/2011 9:21:23 AM
Gravatar
Total Posts 18439

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

Hi Carl,

How did you obtain the source code?

People who download a .zip from codeplex sourcecode tab often report weird things that don't happen if you get the code using Tortoise HG. Codeplex generates those links for source code download and I'm not sure what magic they use to create the download files but it seems it often does not work right when people get the code that way. If there were a way for me to remove those download links I would remove them.

Hope that helps,

Joe

10/27/2011 9:51:45 AM
Gravatar
Total Posts 24

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

Yes, I did receive it from Tortoise HG.  I believe I've figured it out.  VS2010 is running using local host, 127.0.0.1 as the IP address of the host IIS service, I believe I have to tell it what the IP address of the machine is that access to the internet somewhere and that may solve the JScript issue without having to load it locally...

I'll post back if this works.

Thanks,

Carl

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.