Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartClient9 with IE8 issue

    Hello,

    I am upgrading SmartlCient to Version v9.1p_2015-06-24/Pro from 8.3 to support IE11. But now I am getting the following java script error with IE8 (need to support this as well) on a page with list grid.

    HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)

    My user agent details are :
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

    I believe SmartClient-v9 supports IE8.

    I will appreciate if you can guide me to resolve this issue.

    #2
    We've never seen this before. As a wild guess, it may mean that you have invalid HTML inside of a Canvas or HTML, or specified inside of a String property that allows HTML, such as Button.title.

    Other than that, we'll need details on how it can be reproduced in order to help further.

    Also note, it makes no sense to update to 9.1 since 10.0 has been out for some time. You are just setting yourself up to be required to upgrade again, sooner.

    Comment


      #3
      Yes, I noticed that and using v10.0 now but it had the same issue.
      I have a list gird (UserListLG) in a vertical layout (GridVL) attached with datasource (userDS) with autoFetchData set to true and it was working with v8.

      By looking at the error code, I tried the below, basically try to render elements after dom is ready and then fetch the data manually and and set that in grid and then call the show method on vertical layout. It worked but it's not rendering the grid where it should have.

      Code:
      $(document).ready(function () {
      	userDS.fetchData(null, function(dsRequest, data) {
      		UserListLG.setData(data);
      		GridVL.show();
      	});
      });

      Does this give any clue to you guys?

      Comment


        #4
        Here is the example code which is not working in IE8 and results in above mentioned error. This is a very simple ListGrid in VLayout.
        You will notice the gird will show up but you won't be able to type in search filters above grid.

        For your convenience, I am also attaching the source html.

        Code:
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html>
        <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
        <title>List Grid</title>
        
        <script>var isomorphicDir = "http://www.smartclient.com/isomorphic/v/ISC_100_BRANCH_2015-07-01_1435734573_alex_abyss/";</script>
        <script src="http://www.smartclient.com/isomorphic/v/ISC_100_BRANCH_2015-07-01_1435734573_alex_abyss/system/modules/ISC_Core.js"></script>
        <script src="http://www.smartclient.com/isomorphic/v/ISC_100_BRANCH_2015-07-01_1435734573_alex_abyss/system/modules/ISC_Foundation.js"></script>
        <script src="http://www.smartclient.com/isomorphic/v/ISC_100_BRANCH_2015-07-01_1435734573_alex_abyss/system/modules/ISC_Containers.js"></script>
        <script src="http://www.smartclient.com/isomorphic/v/ISC_100_BRANCH_2015-07-01_1435734573_alex_abyss/system/modules/ISC_Grids.js"></script>
        <script src="http://www.smartclient.com/isomorphic/v/ISC_100_BRANCH_2015-07-01_1435734573_alex_abyss/system/modules/ISC_Forms.js"></script>
        <script src="http://www.smartclient.com/isomorphic/v/ISC_100_BRANCH_2015-07-01_1435734573_alex_abyss/system/modules/ISC_DataBinding.js"></script>
        <script src="http://www.smartclient.com/isomorphic/v/ISC_100_BRANCH_2015-07-01_1435734573_alex_abyss/skins/Enterprise/load_skin.js"></script>
        </head>
        <body>
        <div>
        	<div>
        		<h2>
        			Users
        		</h2>
        		<div class="sccomponent"> 
        			<script>
        				isc.VLayout.create({ID:"GridVL", width:938, height:500, position : "relative", autoDraw:true, layoutMargin:10,
        					members:[
        					isc.ListGrid.create({
        						ID : "UserListLG", width : "100%", height : "95%", autoDraw:false,
        						alternateRecordStyles : true, canResizeFields : true, 
        						filterOnKeypress : false, 
        						autoFetchData : false, showFilterEditor : true,
        						showUpdateColumn:true, showDeleteColumn:true,
        						fields : [
        							
        							{name : "firstName", title : "First Name", width:"10%"}, 
        							{name : "lastName", title : "Last Name", width:"10%"}, 
        							{name : "email", title : "Email Address", width:"15%"}
        						]
        					})]	
        				});
        			</script>
        		</div>
        	</div>
        </div>
        </body>
        </html>
        Attached Files

        Comment


          #5
          Wrong DOCTYPE, see FAQ.

          Comment


            #6
            That didn't work either. I tried both, removing as well as using only HTML5 DOCTYPE but still the same error in IE8.

            Comment


              #7
              Take a look at the FAQ for the information you need to include with JS errors - you are missing the stack trace and logs from the Developer Console.

              It would speed things up if you could go ahead and read the FAQ on how to use the forums in its entirety.

              Comment


                #8
                it's the same error in Developer Console.

                03:46:40.786:WARN:Log:hoverCD:[object Object]
                03:46:43.130:WARN:Log:Error:
                'HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)'
                in http://example.com/app/users
                at line 0

                Comment


                  #9
                  There would normally be a stack trace after this - you don't see one?

                  There's also a "hoverCD" log message that doesn't seem like it could have been generated by the code you've shown - are you sure you're running this code exactly as shown, with no other JavaScript code, JavaScript libraries or CSS involved?

                  Comment


                    #10
                    See the latest log and yes there is no other css/js. As I mentioned earlier that it does not allow me to type in the filter. When I focus on the first filter in the column to type, I see the following stack trace (but only when I tried to type in).

                    I hope messaging servlet is something not must to configured for dev console to work in this case.

                    17:12:02.973:INFO:Log:initialized
                    17:12:03.411:WARN:Log:hoverCD:[object Object]
                    17:12:03.973:WARN:Log:Error:
                    'HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)'
                    in http://example.com/app/content/gird-v10.htm
                    at line 0
                    Messaging endpoint not responding - remote debugging unavailable. To fix, make sure you have correctly registered the Messaging servlet in your web.xml
                    17:12:26.848:MDN5:WARN:Log:Error:
                    ''isc.EH.mouseDownEvent.target' is null or not an object'
                    in http://nrdapp1.csg.tnsi.com/amitidm/sc/system/modules/ISC_Core.js
                    at line 1801
                    [c]EventHandler.handleMouseDown(_1=>[object Event], _2=>undef)
                    "if((isc.Browser.isTouch||navigator.pointerEnabled)&&!_2)return;var _3=isc.EH;_3.$km=true;var _4=_3.doHandleMouseDown(_1,_2);_3.$km=false;return _4"
                    [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseDown(), _2=>[object Event])
                    anonymous(event=>undef)
                    "if (!isc.Browser.isIE && event == null) return;var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

                    17:12:26.989:MUP1:WARN:Log:Error:
                    ''isc.EH.mouseDownEvent.target' is null or not an object'
                    in http://nrdapp1.csg.tnsi.com/amitidm/sc/system/modules/ISC_Core.js
                    at line 1801
                    [c]EventHandler.handleMouseDown(_1=>null, _2=>Obj)
                    "if((isc.Browser.isTouch||navigator.pointerEnabled)&&!_2)return;var _3=isc.EH;_3.$km=true;var _4=_3.doHandleMouseDown(_1,_2);_3.$km=false;return _4"
                    [c]EventHandler.handleMouseUp(_1=>[object Event], _2=>undef)
                    [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(), _2=>[object Event])
                    anonymous(event=>undef)
                    "if (!isc.Browser.isIE && event == null) return;var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

                    17:12:30.723:MDN1:WARN:Log:Error:
                    ''isc.EH.mouseDownEvent.target' is null or not an object'
                    in http://nrdapp1.csg.tnsi.com/amitidm/sc/system/modules/ISC_Core.js
                    at line 1801
                    [c]EventHandler.handleMouseDown(_1=>[object Event], _2=>undef)
                    "if((isc.Browser.isTouch||navigator.pointerEnabled)&&!_2)return;var _3=isc.EH;_3.$km=true;var _4=_3.doHandleMouseDown(_1,_2);_3.$km=false;return _4"
                    [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseDown(), _2=>[object Event])
                    anonymous(event=>undef)
                    "if (!isc.Browser.isIE && event == null) return;var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

                    17:12:30.817:MUP5:WARN:Log:Error:
                    ''isc.EH.mouseDownEvent.target' is null or not an object'
                    in http://nrdapp1.csg.tnsi.com/amitidm/sc/system/modules/ISC_Core.js
                    at line 1801
                    [c]EventHandler.handleMouseDown(_1=>null, _2=>Obj)
                    "if((isc.Browser.isTouch||navigator.pointerEnabled)&&!_2)return;var _3=isc.EH;_3.$km=true;var _4=_3.doHandleMouseDown(_1,_2);_3.$km=false;return _4"
                    [c]EventHandler.handleMouseUp(_1=>[object Event], _2=>undef)
                    [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(), _2=>[object Event])
                    anonymous(event=>undef)
                    "if (!isc.Browser.isIE && event == null) return;var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

                    Comment


                      #11
                      After debugging further, this issue is with IE8 on Window Server 2003. Tried with IE8 on win XP and it's working. I believe I have provide you enough information to provide some solution or answer to this issue.

                      Comment


                        #12
                        We've investigated this extensively, and we've found a large range of machines that don't reproduce the problem, and just one that does - but the one that does is running Windows 7 Pro.

                        However, that same laptop shows a number of issues in IE and other browsers that can't be reproduced in any other machine.

                        We suspect that some third-party software - possibly an OS customization by the manufacturer, or a third-party software package that ties deeply into the OS - is at fault here. Alternatively, this could be the fault of some very subtle malware.

                        You mentioned you had tracked it to Windows Server 2003. Some questions:

                        1. do you have *multiple* machines with this OS exhibiting the problem?

                        2. do they exhibit it on a clean OS install?

                        3. for the clean install are you using a disk provided by the OEM, that also installs software packages from that OEM?

                        Comment

                        Working...
                        X