We have a .jsp page (p8lookup.jsp) that displays data using the DHTMLXGrid and it works fine with I.E. but errors with ‘Uncaught TypeError: Cannot call method ‘getAttribute’ of undefined’ when using Chrome.
I have simplified it so it loads XML data from a static file, sampledata4.xml. The data is processed using the stylesheet list.xsl, which uses the #RowsetSchema and uses the tags rs:data and <z:row>. The DHTMLXGrid samples from this web site display correctly in the Chrome browser (which is version 20.0.1132.57)
Has anyone seen anything like this before?
I include the code from the 3 files below in case anyone can spot anything that Chrome objects to (I will also attach the source files)…
list.xsl
<?xml version="1.0" encoding="ISO-8859-1" ?><xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace”
xmlns:s=“uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882”
xmlns:dt=“uuid:C2F41010-65B3-11d1-A29F-00AA00C14882”
xmlns:rs=“urn:schemas-microsoft-com:rowset”
xmlns:z=“#RowsetSchema”>
<xsl:output method=“html” />
<xsl:template match=“/”>
View |
---|
<xsl:variable name=“href”>getContent?ut=<xsl:value-of select=“/param/ut”/>objectStoreName=BNHFT_Library;id=<xsl:value-of select=“.”/>objectType=document</xsl:variable>
<xsl:variable name=“prophref”>integrationWebBasedCommand?ut=<xsl:value-of select=“/param/ut”/>;objectType=document;id=<xsl:value-of select=“.”/>;objectStoreName=Library;_commandId=3010</xsl:variable>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
sampledata4.xml
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="./list.xsl"?> <s:AttributeType name ='DocumentClass' rs:number= '2'>
<s:datatype dt:type='string' dt:maxLength='' />
</s:AttributeType>
<s:AttributeType name ='Specialty' rs:number= '3'>
<s:datatype dt:type='string' dt:maxLength='' />
</s:AttributeType>
<s:AttributeType name ='RecordType' rs:number= '4'>
<s:datatype dt:type='string' dt:maxLength='' />
</s:AttributeType>
<s:AttributeType name ='RecordDate' rs:number= '5'>
<s:datatype dt:type='string' dt:maxLength='' />
</s:AttributeType>
<s:extends type='rs:rowbase' />
</s:ElementType>
</s:Schema>
rs:data
<z:row id=‘q’ DocumentClass=‘{FBD0B11A-4D0F-4C38-8A70-23BD30FB762F}’ Specialty=‘Gyneacology’ RecordType=‘test’ RecordDate=‘2011-12-22T00:00:00.000Z’ />
</rs:data>
p8lookup.jsp
<% String HospNo=request.getParameter(“HospNo”); %>
Clear Filters p8lookup.zip (120 KB)