Home > unspecified error > ie appendchild unspecified error

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 = '', width; for (var child in data) { row += '' + data[child] + ''; } row += ''; return $(row); }, //And appending

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