Problem with HTML Parser in IE
Posted
by Luis Armando
on Stack Overflow
See other posts from Stack Overflow
or by Luis Armando
Published on 2008-11-19T10:31:47Z
Indexed on
2010/05/25
12:01 UTC
Read the original article
Hit count: 423
I am trying to create a dialog box that will appear only if the browser selected is IE (any version) however I get this error:
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
That's all in "Line/Char/Code" 0 so I do not know where is the error. The code I'm using is this:
<script type="text/javascript">
<!--
if(BrowserDetect.browser.contains("Explorer"))
{
var Nachricht = 'Hemos detectado que está utilizando ' + BrowserDetect.browser + ' ' +
BrowserDetect.version + '. Puede que algunas funciones no estén habilitadas. <p></p> Si desea experimentar todo el potencial del portal, por favor intente desde otro navegador (browser). <p></p>Gracias
showDialog('¡Aviso Importante!',Nachricht,'warning',10);
}
</script>
I've noticed if I remove the "BrowserDetect.browser" and .version it removes the error, but I need those to check =/...any ideas will be appreciated =).
© Stack Overflow or respective owner