Placing right BrowserPlus plug-in in SiteAdmin CMS

This night discovered pretty weird behavior of Internet Explorer when I used BrowserPlus.ascx plug-in. For some reason it was firing me a JavaScript error with very little details, something like this:

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

After short googling i actually found that not only me had the same problem and Microsoft KB explains things in following way:

This problem occurs because a child container HTML element contains script code that tries to modify the parent container element of the child container. The script code tries to modify the parent container element by using either the innerHTML method or the appendChild method.

So, what’s went wrong? Happen to be pretty simple to find, script block generated by BrowserPlus.ascx plug-in was allocated before <form runat=”server”/> tag closed, exactly on the end of the content, so it was a last thing to parse within server side rendered form. ASP.NET is pretty nice weirdo defined thing where usually u have to put all runat=”server” controls within a <form runat=”server”/> DOM element. Well, most of it, controls are actually renders fine even by being placed outside. So all I needed to do is to place my

<plugins:BrowserPlus ID="BrowserPlus1" runat="server" />

exactly after where is my form tag was closed. An it worked. No JavaScript errors in IE anymore.

About...

…SiteAdmin CMS is a powerful but simple, extremely easy to use, low priced, easy to deploy content management system. SiteAdmin CMS offers a rich set of features despite its low price point. It is a leader in its price and feature class…