{"id":1372,"date":"2016-10-28T13:53:13","date_gmt":"2016-10-28T20:53:13","guid":{"rendered":"http:\/\/deepinthecode.com\/?p=1372"},"modified":"2022-12-20T10:02:02","modified_gmt":"2022-12-20T16:02:02","slug":"when-javascripts-deleterow-method-doesnt-work","status":"publish","type":"post","link":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/","title":{"rendered":"When JavaScript&#8217;s deleteRow() Method Doesn&#8217;t Work"},"content":{"rendered":"\n<p>A section of JavaScript code that uses the method <a href=\"https:\/\/www.w3schools.com\/jsref\/met_table_deleterow.asp\" target=\"_blank\" rel=\"noopener\">deleteRow()<\/a> was giving me a headache in IE 11. I did not encounter this when using Chrome.<\/p>\n\n\n\n<p>In the code segment below, the variable &#8220;oHtmlTable&#8221; is assigned to an HTML table that already exists on a webpage.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/delete prior entries\nwhile(oHtmlTable.rows.length &gt; 1)\n{\n\toHtmlTable.deleteRow(-1);\n}\n<\/pre><\/div>\n\n\n<p>For no apparent reason, during the execution of the while loop, the deleteRow() method would quit working, but did not cause an exception to be thrown. Since the condition on the while loop would never be met if the rows in the table were no longer being deleted, this became an infinite loop.<\/p>\n\n\n\n<p>IE gave no obvious indication as to what the problem was, just the standard &#8220;[domain name] is not responding&#8221; message at the bottom of the screen.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"525\" height=\"42\" src=\"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?resize=525%2C42&#038;ssl=1\" alt=\"not responding\" class=\"wp-image-1373\" srcset=\"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?w=616&amp;ssl=1 616w, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?resize=150%2C12&amp;ssl=1 150w, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?resize=300%2C24&amp;ssl=1 300w, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?resize=600%2C49&amp;ssl=1 600w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/figure>\n<\/div>\n\n\n<p>The code inside the while loop deletes the last row in the table. Whatever was inside the last row was keeping IE from successfully deleting it. First, I tried emptying the <a href=\"https:\/\/www.w3schools.com\/jsref\/prop_html_innerhtml.asp\" target=\"_blank\" rel=\"noopener\">innerHTML<\/a> contents of the last row to see if that would allow the deletion to continue. This had no effect. However, deleting the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Element\/outerHTML\" target=\"_blank\" rel=\"noopener\">outerHTML<\/a> contents of the row did the trick.<\/p>\n\n\n\n<p>I created a variable in which to store the number of rows in the table, then an if statement to determine whether the row count changed after the deleteRow method was executed. If it was not, then on the next pass through the loop, the row would be deleted.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/delete prior entries\nvar nLength = 0;\nwhile(oHtmlTable.rows.length &gt; 1)\n{\n\tnLength = oHtmlTable.rows.length;\n\toHtmlTable.deleteRow(-1);\n\tif (nLength == oHtmlTable.rows.length)\n\t{\n\t\toHtmlTable.rows&#x5B;nLength-1].outerHTML = '';\n\t}\n}\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>A section of JavaScript code that uses the method deleteRow() was giving me a headache in IE 11. I did not encounter this when using Chrome. In the code segment below, the variable &#8220;oHtmlTable&#8221; is assigned to an HTML table that already exists on a webpage. For no apparent reason, during the execution of the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;When JavaScript&#8217;s deleteRow() Method Doesn&#8217;t Work&#8221;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":1373,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"When JavaScript's deleteRow() Method Doesn't Work - #js #html","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[46],"class_list":["post-1372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>When JavaScript&#039;s deleteRow() Method Doesn&#039;t Work - Deep in the Code<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"When JavaScript&#039;s deleteRow() Method Doesn&#039;t Work - Deep in the Code\" \/>\n<meta property=\"og:description\" content=\"A section of JavaScript code that uses the method deleteRow() was giving me a headache in IE 11. I did not encounter this when using Chrome. In the code segment below, the variable &#8220;oHtmlTable&#8221; is assigned to an HTML table that already exists on a webpage. For no apparent reason, during the execution of the &hellip; Continue reading &quot;When JavaScript&#8217;s deleteRow() Method Doesn&#8217;t Work&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/\" \/>\n<meta property=\"og:site_name\" content=\"Deep in the Code\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/deepinthecode\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/deepinthecode\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-28T20:53:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-20T16:02:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png\" \/>\n\t<meta property=\"og:image:width\" content=\"616\" \/>\n\t<meta property=\"og:image:height\" content=\"49\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"David Young\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@deepinthecode\" \/>\n<meta name=\"twitter:site\" content=\"@deepinthecode\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Young\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/\"},\"author\":{\"name\":\"David Young\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#\\\/schema\\\/person\\\/2d8883371cb9a0d1d86ad28246d1b514\"},\"headline\":\"When JavaScript&#8217;s deleteRow() Method Doesn&#8217;t Work\",\"datePublished\":\"2016-10-28T20:53:13+00:00\",\"dateModified\":\"2022-12-20T16:02:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/\"},\"wordCount\":243,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#\\\/schema\\\/person\\\/2d8883371cb9a0d1d86ad28246d1b514\"},\"image\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/notresponding.png?fit=616%2C49&ssl=1\",\"keywords\":[\"HTML\"],\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/\",\"url\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/\",\"name\":\"When JavaScript's deleteRow() Method Doesn't Work - Deep in the Code\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/notresponding.png?fit=616%2C49&ssl=1\",\"datePublished\":\"2016-10-28T20:53:13+00:00\",\"dateModified\":\"2022-12-20T16:02:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/notresponding.png?fit=616%2C49&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/notresponding.png?fit=616%2C49&ssl=1\",\"width\":616,\"height\":49},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/2016\\\/10\\\/28\\\/when-javascripts-deleterow-method-doesnt-work\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/deepinthecode.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"When JavaScript&#8217;s deleteRow() Method Doesn&#8217;t Work\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#website\",\"url\":\"https:\\\/\\\/deepinthecode.com\\\/\",\"name\":\"Deep in the Code\",\"description\":\"Adventures in Software Development ... by David Young\",\"publisher\":{\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#\\\/schema\\\/person\\\/2d8883371cb9a0d1d86ad28246d1b514\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/deepinthecode.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/deepinthecode.com\\\/#\\\/schema\\\/person\\\/2d8883371cb9a0d1d86ad28246d1b514\",\"name\":\"David Young\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/monolith2.png?fit=902%2C559&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/monolith2.png?fit=902%2C559&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/monolith2.png?fit=902%2C559&ssl=1\",\"width\":902,\"height\":559,\"caption\":\"David Young\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/deepinthecode.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/monolith2.png?fit=902%2C559&ssl=1\"},\"description\":\"I solve problems. Solutions Architect \\\/ Senior Software Engineer \\\/ Business Analyst \\\/ Full-Stack Developer \\\/ Data Scientist\\\/ IT Generalist\",\"sameAs\":[\"https:\\\/\\\/deepinthecode.com\",\"https:\\\/\\\/facebook.com\\\/deepinthecode\",\"https:\\\/\\\/instagram.com\\\/deepinthecode\",\"https:\\\/\\\/linkedin.com\\\/in\\\/deepinthecode\",\"https:\\\/\\\/x.com\\\/deepinthecode\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"When JavaScript's deleteRow() Method Doesn't Work - Deep in the Code","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/","og_locale":"en_US","og_type":"article","og_title":"When JavaScript's deleteRow() Method Doesn't Work - Deep in the Code","og_description":"A section of JavaScript code that uses the method deleteRow() was giving me a headache in IE 11. I did not encounter this when using Chrome. In the code segment below, the variable &#8220;oHtmlTable&#8221; is assigned to an HTML table that already exists on a webpage. For no apparent reason, during the execution of the &hellip; Continue reading \"When JavaScript&#8217;s deleteRow() Method Doesn&#8217;t Work\"","og_url":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/","og_site_name":"Deep in the Code","article_publisher":"https:\/\/facebook.com\/deepinthecode","article_author":"https:\/\/facebook.com\/deepinthecode","article_published_time":"2016-10-28T20:53:13+00:00","article_modified_time":"2022-12-20T16:02:02+00:00","og_image":[{"width":616,"height":49,"url":"https:\/\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png","type":"image\/png"}],"author":"David Young","twitter_card":"summary_large_image","twitter_creator":"@deepinthecode","twitter_site":"@deepinthecode","twitter_misc":{"Written by":"David Young","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/#article","isPartOf":{"@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/"},"author":{"name":"David Young","@id":"https:\/\/deepinthecode.com\/#\/schema\/person\/2d8883371cb9a0d1d86ad28246d1b514"},"headline":"When JavaScript&#8217;s deleteRow() Method Doesn&#8217;t Work","datePublished":"2016-10-28T20:53:13+00:00","dateModified":"2022-12-20T16:02:02+00:00","mainEntityOfPage":{"@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/"},"wordCount":243,"commentCount":0,"publisher":{"@id":"https:\/\/deepinthecode.com\/#\/schema\/person\/2d8883371cb9a0d1d86ad28246d1b514"},"image":{"@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?fit=616%2C49&ssl=1","keywords":["HTML"],"articleSection":["JavaScript"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/","url":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/","name":"When JavaScript's deleteRow() Method Doesn't Work - Deep in the Code","isPartOf":{"@id":"https:\/\/deepinthecode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/#primaryimage"},"image":{"@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?fit=616%2C49&ssl=1","datePublished":"2016-10-28T20:53:13+00:00","dateModified":"2022-12-20T16:02:02+00:00","breadcrumb":{"@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/#primaryimage","url":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?fit=616%2C49&ssl=1","contentUrl":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?fit=616%2C49&ssl=1","width":616,"height":49},{"@type":"BreadcrumbList","@id":"https:\/\/deepinthecode.com\/2016\/10\/28\/when-javascripts-deleterow-method-doesnt-work\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/deepinthecode.com\/"},{"@type":"ListItem","position":2,"name":"When JavaScript&#8217;s deleteRow() Method Doesn&#8217;t Work"}]},{"@type":"WebSite","@id":"https:\/\/deepinthecode.com\/#website","url":"https:\/\/deepinthecode.com\/","name":"Deep in the Code","description":"Adventures in Software Development ... by David Young","publisher":{"@id":"https:\/\/deepinthecode.com\/#\/schema\/person\/2d8883371cb9a0d1d86ad28246d1b514"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/deepinthecode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":["Person","Organization"],"@id":"https:\/\/deepinthecode.com\/#\/schema\/person\/2d8883371cb9a0d1d86ad28246d1b514","name":"David Young","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2022\/07\/monolith2.png?fit=902%2C559&ssl=1","url":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2022\/07\/monolith2.png?fit=902%2C559&ssl=1","contentUrl":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2022\/07\/monolith2.png?fit=902%2C559&ssl=1","width":902,"height":559,"caption":"David Young"},"logo":{"@id":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2022\/07\/monolith2.png?fit=902%2C559&ssl=1"},"description":"I solve problems. Solutions Architect \/ Senior Software Engineer \/ Business Analyst \/ Full-Stack Developer \/ Data Scientist\/ IT Generalist","sameAs":["https:\/\/deepinthecode.com","https:\/\/facebook.com\/deepinthecode","https:\/\/instagram.com\/deepinthecode","https:\/\/linkedin.com\/in\/deepinthecode","https:\/\/x.com\/deepinthecode"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2016\/10\/notresponding.png?fit=616%2C49&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3J1Ni-m8","jetpack-related-posts":[{"id":334,"url":"https:\/\/deepinthecode.com\/2013\/07\/04\/converting-a-sql-table-to-json-objects-using-the-asp-net-mvc-web-api\/","url_meta":{"origin":1372,"position":0},"title":"Converting a SQL Table to JavaScript Objects Using the ASP.NET MVC Web API","author":"David Young","date":"2013.07.04","format":false,"excerpt":"Happy Independence Day! Here I will describe an alternative to an earlier post that described using a SQL stored procedure to convert a SQL table into a JavaScript object. One of the comments left on that post made me wonder why someone would not want to use the stored procedure\u2026","rel":"","context":"In &quot;ASP.NET&quot;","block_context":{"text":"ASP.NET","link":"https:\/\/deepinthecode.com\/category\/asp-net\/"},"img":{"alt_text":"ASP.NET MVC Web API logo","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2013\/06\/ASPNET-MVC-WEB-API.jpg?fit=629%2C419&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2013\/06\/ASPNET-MVC-WEB-API.jpg?fit=629%2C419&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2013\/06\/ASPNET-MVC-WEB-API.jpg?fit=629%2C419&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":367,"url":"https:\/\/deepinthecode.com\/2013\/07\/15\/making-the-syntaxhighlighter-evolved-plugin-work-with-infinite-scroll-on-wordpress-org-sites\/","url_meta":{"origin":1372,"position":1},"title":"Making the SyntaxHighlighter Evolved Plugin Work with Infinite Scroll on WordPress.org Sites","author":"David Young","date":"2013.07.15","format":false,"excerpt":"SyntaxHighlighter Evolved is a great plugin to format source code on a WordPress.org blog. Also, WordPress.org blogs can now allow you to use Infinite Scroll, which uses AJAX to load posts as you scroll down the blog. The problem is that once you begin scrolling past the first block of\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/deepinthecode.com\/category\/php\/"},"img":{"alt_text":"WordPress logo","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2013\/07\/wp.png?fit=512%2C512&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":768,"url":"https:\/\/deepinthecode.com\/2014\/08\/05\/converting-a-sql-datetime-to-a-javascript-date\/","url_meta":{"origin":1372,"position":2},"title":"Converting a SQL DATETIME to a JavaScript Date","author":"David Young","date":"2014.08.05","format":false,"excerpt":"It should come as no surprise to anyone who has developed for multiple browsers that each one has its own quirks when it comes to enforcing standards, whether they be CSS, HTML5, or even JavaScript. I have been working on some JavaScript that will take a date (in the DATETIME\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/deepinthecode.com\/category\/javascript\/"},"img":{"alt_text":"JavaScript logo","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/08\/JavaScript-logo.png?fit=1052%2C1052&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/08\/JavaScript-logo.png?fit=1052%2C1052&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/08\/JavaScript-logo.png?fit=1052%2C1052&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/08\/JavaScript-logo.png?fit=1052%2C1052&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2014\/08\/JavaScript-logo.png?fit=1052%2C1052&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2036,"url":"https:\/\/deepinthecode.com\/2018\/08\/08\/return-url-with-javascript-that-prevents-loading-of-cached-pages\/","url_meta":{"origin":1372,"position":3},"title":"Return URL with JavaScript that Prevents Loading of Cached Pages","author":"David Young","date":"2018.08.08","format":false,"excerpt":"If you want to force a page to reload from the server rather than getting a cached copy, one way to do it is to append a query string to the URL. If you want your web application to generate URLs that have this functionality, the code below can be\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/deepinthecode.com\/category\/javascript\/"},"img":{"alt_text":"HTML and JS logos","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/08\/html_js.jpeg?fit=1200%2C992&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/08\/html_js.jpeg?fit=1200%2C992&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/08\/html_js.jpeg?fit=1200%2C992&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/08\/html_js.jpeg?fit=1200%2C992&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/08\/html_js.jpeg?fit=1200%2C992&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2030,"url":"https:\/\/deepinthecode.com\/2018\/07\/31\/executing-stored-procedures-in-loops-using-pl-sql-tables\/","url_meta":{"origin":1372,"position":4},"title":"Executing Stored Procedures in Loops Using PL\/SQL Tables","author":"David Young","date":"2018.07.31","format":false,"excerpt":"I needed to be able to run a stored procedure once for each item in a list. In Microsoft SQL Server, I would probably do this with a table variable and a cursor, and the code would look something like this: DECLARE @wo_table TABLE (wo_id VARCHAR(10) NOT NULL); DECLARE @wo_id\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/deepinthecode.com\/category\/oracle-database\/"},"img":{"alt_text":"Oracle Database PL\/SQL","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/07\/oracle_plsql.png?fit=1073%2C644&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/07\/oracle_plsql.png?fit=1073%2C644&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/07\/oracle_plsql.png?fit=1073%2C644&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/07\/oracle_plsql.png?fit=1073%2C644&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2018\/07\/oracle_plsql.png?fit=1073%2C644&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1078,"url":"https:\/\/deepinthecode.com\/2015\/09\/28\/why-is-this-website-garbled\/","url_meta":{"origin":1372,"position":5},"title":"Why is this Website Garbled?","author":"David Young","date":"2015.09.28","format":false,"excerpt":"I use Thesis from DIYthemes for this blog, and have found it to be a very versatile system for customizing their themes. However, I saw that my HTML 5 validation was failing due in part to the use of deprecated attributes on a link tag. I decided to report the\u2026","rel":"","context":"In &quot;CSS&quot;","block_context":{"text":"CSS","link":"https:\/\/deepinthecode.com\/category\/css\/"},"img":{"alt_text":"DIYthemes site on Chrome","src":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/09\/themes_chrome.png?fit=1200%2C621&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/09\/themes_chrome.png?fit=1200%2C621&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/09\/themes_chrome.png?fit=1200%2C621&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/09\/themes_chrome.png?fit=1200%2C621&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/deepinthecode.com\/wp-content\/uploads\/2015\/09\/themes_chrome.png?fit=1200%2C621&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/posts\/1372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/comments?post=1372"}],"version-history":[{"count":5,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/posts\/1372\/revisions"}],"predecessor-version":[{"id":3118,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/posts\/1372\/revisions\/3118"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/media\/1373"}],"wp:attachment":[{"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/media?parent=1372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/categories?post=1372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepinthecode.com\/wp-json\/wp\/v2\/tags?post=1372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}