CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Accordion doesn't show in IE

by ICampbell » 22 Aug 2013 14:41

I have a JQComboBox sitting on a JQAccordion page. Everything works fine under FF and Chrome but the JQAccordion fails to render in IE because of a focus issue with the ComboBox. Here's the error.


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Thu, 22 Aug 2013 12:46:32 UTC


Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Line: 277
Char: 90
Code: 0
URI: http://127.0.0.1:8888/$/

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

275 ReleaseLock();
276 GActiveControl="CBXSCHEDWEEK";
277 if (GActiveControl) { var xElem; xElem = FindFocus(GActiveControl); if (xElem != null) { xElem.focus();}}
278 $("#LBLINSTRUCTIONS").removeClass("cgloading");


I'm including the page source of that line. CBXSCHEDWEEK is the ComboBox with ZIndex = 1000

Appreciate any guidance you can offer...
Ian
ICampbell
 
Posts: 26
Joined: 25 May 2013 17:32

by Jorge Sousa » 22 Aug 2013 15:04

Hi Ian

Code: Select all
if (GActiveControl) { var xElem; xElem = FindFocus(GActiveControl); if (xElem != null) { xElem.focus();}}


This javascript is render by Intraweb core, when you have IWForm.ActiveControl set.

Check what ActiveControl you have set, maybe it's invisible or disabled and cannot receive focus.

Please note, that most probablly that javascript error has always been there

We added a js error monitor in 1.6.0, because we understand that web apps shouldn't have silent js errors, that are most of times imperceptible, but can cause immediate or future browser hangs.

That dialog showing the error is controlled by:

IWCGJQCommon.CGJsErrorHandler: Boolean, default True

You can set to False in main thread only, for whole app, to deactivate the dialog error, which we don't advise, at least at developement time,

Best Regards

cgdevtools st
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ICampbell » 22 Aug 2013 18:56

I appreciate the fast reply, thank you.

I'm still not clear on why this only fails on IE (any IE). It works perfectly on FF and Chrome.

Ian
ICampbell
 
Posts: 26
Joined: 25 May 2013 17:32

by Jorge Sousa » 22 Aug 2013 19:54

Hi Ian

The best way to know is to debug in IE browser.

Set IWCGJQCommon.CGJsErrorHandler = False, to disable the js error monitor.

Set ServerController.JavaScriptOptions.Debug = True and ServerController.JavaScriptOptions.UseUncompressedFiles = True

(ServerController.JavascriptDebug = True in IW <= 12)

This will help you te debug, with non compressed javascript.

Then Run and Debug in Browser, to know what's the reason of the error.

Regards

cgdevtools st
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQAccordion

cron

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.