Error loading "CMS Maintenance" page in IE9 #426

Closed
jgambarios opened this Issue May 25, 2012 · 3 comments

Projects

None yet

3 participants

@jgambarios

Trying to load the: CMS Admin -> CMS Maintenance page will result in a wrong rendering of the page, see image below:
CMS Maintenance error image

No errors in console, and it only appears to happen with that CMS Maintenance page and in internet explorer.

@jgambarios jgambarios was assigned May 25, 2012
@jgambarios jgambarios added a commit that referenced this issue May 29, 2012
@jgambarios jgambarios #426 Fixing some Internet Explorer "Unknown runtime error" errors wit…
…h the innerHTML method modifying the way some nodes are create them and the way they are set.
06941d3
@jgambarios

The dwr.util.setValue is causing problems in IE, mostly when setting data to tables, this setValue method do an element.innerHTML = "some value"; and that code is throwing "Unknown runtime error" errors with tables.
This is one of the explanations I found:

In IE some elements are in readonly: COL, COLGROUP, FRAMESET, HEAD, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR.
Therefore if you try to set innerHTML for these elements IE notify alter with Unknown Runtime Error.

So, I changed the way the rows are create them and how they are set into the tables.

@jgambarios

Also the view_cms_maintenance.jsp was cleaned to avoid some IE errors specially to avoid form submits on some ajax calls (causing that even for ajax calls the page was reloaded).

@DeanGonzalez

tested in IE8 & 9, Safari, and FF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment