Ie Appendchild Unspecified Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings script16389 unspecified error ie 11 and policies of this site About Us Learn more about Stack Overflow ie11 unspecified error the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unspecified error DOM IE up vote 0 down vote favorite I'm building application using pop-ups. I'm getting new information with Ajax in the main page and updating the popup page. In the side window (pop-up) I've got a table and when new data is received I'm just adding row in this table. In FF, Chrome and Opera that is working pretty well but when I try to append child (no matter if I'm using jquery or not) IE gives me a Unspecified error. I'm trying to append the child directly to the table like that: var tableHeader = this.config.newResultsWindow.document.getElementById('newResultsTableHeader'); tableHeader.appendChild(newRow); When I'm using just innerHTML (for example this.config.newResultsWindow.document.body.innerHTML = updatedTable) everything is OK but the table's content is very big and I cant write it all every time. What can I do? javascript jquery internet-explorer popup share|improve this question edited Nov 9 '11 at 22:11 Lightness Races in Orbit 218k36337584 asked Nov 9 '11 at 22:01 user551761 1 What's the type of the '#newResultsTableHeader' element? Table? –Šime Vidas Nov 9 '11 at 22:09 Provide a debuggable testcase please.... –Lightness Races in Orbit Nov 9 '11 at 22:12 //It's thead element. This is how I'm creating the row: buildTableRow: function (data) { var row = '
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/8072364/unspecified-error-dom-ie minute: Sign up IE9 selectAllChildren on an out-of-view element up vote 0 down vote favorite I am trying to replicate a service that is provided by Tynt.com that appends some text to a user's selection when copying. I understand that users don't particularly like this, but it is a client's request to append the URL and copyright notice whenever a user copies http://stackoverflow.com/questions/19792435/ie9-selectallchildren-on-an-out-of-view-element something from their website. In current browsers, I am able to do this by creating a DOM element, adding the selected text, appending the copyright text and then selecting the new node: var newSelection = document.createElement( 'div' ); newSelection.style.cssText = "height: 1px; width: 1px; overflow: hidden;"; if( window.getSelection ) { var selection = window.getSelection( ); if( selection.getRangeAt ) { var range = selection.getRangeAt( 0 ); newSelection.appendChild( range.cloneContents( ) ); appendCopyright( ); document.body.appendChild( newSelection ); selection.selectAllChildren( newSelection ); // ... remove element, return selection } } In IE9, this errors out on the selection.selectAllChildren( newSelection ) statement and I was able to figure out that this is because newSelection was effectively "hidden" from the viewport due to the styles applied in the second line above. Commenting that out works, but obviously the new node is shown to the end user. It appears that this was resolved in later versions of IE, but I am having trouble coming up with a workaround that is sufficient for IE9, a browser that I need to support. I've tried a variety of alternatives, like setting visibility: hidden;, posit
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about http://stackoverflow.com/questions/1886547/access-is-denied-javascript-error-when-trying-to-access-the-document-object-of Stack Overflow the company Business Learn more about hiring developers or posting ads with https://github.com/mathjax/MathJax/issues/337 us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “Access is denied” JavaScript error when trying to access the document object of a unspecified error programmatically-created
Sign in Pricing Blog Support Search GitHub This repository Watch 161 Star 3,472 Fork 542 mathjax/MathJax Code Issues 220 Pull requests 0 Projects 0 Wiki Pulse Graphs New issue IE 9 error, SCRIPT16389: Unspecified error. #337 Closed dbellizzi opened this Issue Oct 17, 2012 · 4 comments Projects None yet Labels Duplicate Fixed v2.1 Milestone No milestone Assignees No one assigned 3 participants dbellizzi commented Oct 17, 2012 I get the following when loading mathJax in IE9. I'm running the latest from git: SCRIPT16389: Unspecified error. mml2jax.js, line 59 character 5 It looks like the problem is with "document.namespaces", if i comment out the "if" statement, it blows up again on line 63 with the same error. I saw this link which suggests using document.namespaces must be delayed until "load", "ready" is not sufficient. I'm not sure if that applies. http://stackoverflow.com/questions/1081812/javascript-unspecified-error-in-open-layers Another interesting link says it relates to broken images on the page: http://drupal.org/node/613002 Forcing compatibility mode in my IE9 does fix the problem, so this might be correct. However, trying it on a page without any broken images still shows the problem. In fact, on a page with no images, it is still broken. MathJax member pkra commented Oct 18, 2012 Could you try with the 2.1 branch? It's still in beta but will hopefully be released this week. dbellizzi commented Oct 18, 2012 Looks like it is working fine on the 2.1 branch in IE9, thanks MathJax member pkra commented Oct 18, 2012 Great. Not sure what to tag this bug. Can we just close it? MathJax member dpvc commented Oct 20, 2012 I think we can mark this as a duplicate of issue #324, or #203, or #284, all