{"id":62992,"date":"2024-03-15T03:01:42","date_gmt":"2024-03-14T17:01:42","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=62992"},"modified":"2024-03-14T16:11:00","modified_gmt":"2024-03-14T06:11:00","slug":"linked-sentence-story-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/linked-sentence-story-primer-tutorial\/","title":{"rendered":"Linked Sentence Story Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/linked_sentence_creator.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Linked Sentence Story Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/linked_sentence_creator.gif\" title=\"Linked Sentence Story Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Linked Sentence Story Primer Tutorial<\/p><\/div>\n<p>We don&#8217;t know what amazes you <font size=1>&#8230; doh<\/font>!  But we get amazed by web application &#8220;kludges&#8221; that end up working <font size=1>&#8230; well, you had to be there<\/font>!   Let me explain!  In yesterday&#8217;s <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/google-geo-chart-and-map-chart-hashtag-sms-tutorial\/' title='Google Geo Chart and Map Chart Hashtag SMS Tutorial'>Google Geo Chart and Map Chart Hashtag SMS Tutorial<\/a> &#8230; assuming &#8230;<\/p>\n<ol>\n<li>you were aware of it &#8230;<\/li>\n<li>you visited it &#8230;<\/li>\n<li>your eyes were not glazed over &#8230;<\/li>\n<li>a pet was not barfing on the floor <font size=1>(or elsewhere)<\/font> &#8230; at the crucial time when &#8230; <font size=1>doopy doopy doop doop, doop doop doop, doop doop doop doop, doopy doopy doop doop &#8230;<\/font><\/li>\n<li>there it was &#8230; <font color=blue>what?!<\/font> &#8230; I&#8217;m about to tell you &#8230;<br \/>\n&#8230;<br \/>\n.<br \/>\n..<br \/>\n&#8230;.<br \/>\n.<br \/>\n&#8230;&#8230;..<br \/>\n..<br \/>\n&#8230;&#8212;&#8230;<br \/>\n&#8212;&#8230;&#8212; &#8230; huh?! &#8230;<br \/>\n&#8230;<br \/>\n&#8230;&#8230;..<br \/>\n.<br \/>\n&#8230;. the codeline &#8230;<\/p>\n<blockquote style=font-size:9px;><p>\n       document.getElementById(&#8216;remail&#8217;).innerHTML=&#8217;&amp;#128231;&lt;\/a&gt;&nbsp;&#8216; + inplace.split(&#8216;&gt;&#8217;)[0] + &#8216;&gt;&amp;#128223;&#8217;;\n<\/p><\/blockquote>\n<p> &#8230; <font size=1>(unassumingly 9px but, still &#8230;)<\/font> gleaming, in the morning&#8217;s first rays, within the safety of its <i>code<\/i> element &#8230;<br \/>\n &#8230; <font color=blue>what?!<\/font> &#8230; I&#8217;m about to tell you &#8230;<br \/>\n&#8230;<br \/>\n.<br \/>\n..<br \/>\n&#8230;.<br \/>\n.<br \/>\n&#8230;&#8230;..<br \/>\n..<br \/>\n&#8230;&#8212;&#8230;<br \/>\n&#8212;&#8230;&#8212; &#8230; huh?! &#8230;<br \/>\n&#8230;<br \/>\n&#8230;&#8230;..<br \/>\n.<br \/>\n &#8230; &#8220;the kludge&#8221; &#8230; and not just any old &#8220;<a target=_blank title='Claytons ... the drink you are having when you are not having a drink.' href='https:\/\/www.youtube.com\/watch?v=3qf4yUMxnjw'>Clayton&#8217;s<\/a> Kludge&#8221; <font size=1>(sorry, you&#8217;re too late &#8230; we&#8217;ve patented it already)<\/font> &#8230;\n<\/li>\n<\/ol>\n<p>Yes, regarding Javascript DOM thinking, we still usually encase a &#8220;display:inline&#8221; type of scenario in an all encompassing div or span before the contemplation of appending content.  But the implication of this codeline is that for the HTML example &#8230;<\/p>\n<table>\n<tr>\n<td>\n<code><br \/>\n&lt;a id=\"remail\" href=\"mailto:blah\" title=\"First a element\"&gt;Email link ... This is roughly the wording of our \"a\" link&lt;\/a&gt;<br \/>\n<\/code><\/td>\n<td style=vertical-align:top;> \/\/ looking like <br \/><a id=\"remail\" href=\"#\" title=\"First a element\">Email link &#8230; This is roughly the wording of our &#8220;a&#8221; link<\/a><\/td>\n<\/tr>\n<\/table>\n<p><code><br \/>\n       document.getElementById('remail').innerHTML='&amp;#128231;&lt;\/a&gt;&nbsp;' + inplace.split('&gt;')[0] + '&gt;&amp;#128223;';<br \/>\n<\/code><\/p>\n<p> &#8230; could cause one &#8220;a&#8221; element to be spliced into two &#8230; and become &#8230;<\/p>\n<table>\n<tr>\n<td>\n<code><br \/>\n&lt;a id=\"remail\" href=\"mailto:blah\" title=\"First a element\"&gt;&amp;#128231;&gt;\/a&gt;&nbsp;&lt;\/a&gt;&lt;a id=\"rsms\" href=\"sms:blah\"&gt;&amp;#128223;&lt;\/a&gt;<br \/>\n<\/code><\/td>\n<td style=vertical-align:top;> \/\/ looking like <br \/><a id=\"remail\" href=\"mailto:blah\" title=\"First a element\">&#128231;<\/a>&nbsp;<\/a><a id=\"rsms\" href=\"sms:blah\">&#128223;<\/a><\/td>\n<\/tr>\n<\/table>\n<p> &#8230; without using any overseeing nesting element of any sort!<\/p>\n<p>Anyway, we were gobsmacked, and today we write a proof of concept Linked Sentence web application making heavy use of this principle.<\/p>\n<p>We thought with this Linked Sentence it could be like a &#8220;piecing together&#8221; of a story type of thing, with some similarities to the web application of <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/fairy-story-chrome-dictation-punctuation-tutorial' title='Fairy Story Chrome Dictation Punctuation Tutorial'>Fairy Story Chrome Dictation Punctuation Tutorial<\/a> times, with <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/linked_sentence_creator.html_GETME\">this first draft<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/linked_sentence_creator.html\" title=\"Click picture\">Linked Sentence Creator<\/a> web application also &#8220;playable&#8221; below &#8230;<\/p>\n<p><iframe style=\"width:100%;height:700px;\" src=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/linked_sentence_creator.html\"><\/iframe><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d62992' onclick='var dv=document.getElementById(\"d62992\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/dom\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d62992' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We don&#8217;t know what amazes you &#8230; doh! But we get amazed by web application &#8220;kludges&#8221; that end up working &#8230; well, you had to be there! Let me explain! In yesterday&#8217;s Google Geo Chart and Map Chart Hashtag SMS &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/linked-sentence-story-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[2236,354,1525,652,1807,4704,710,4701,1861,4703,939,4151,4702,997,1986,1119,1203,1319,1452,1622],"class_list":["post-62992","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-append","tag-dom","tag-innerhtml","tag-javascript","tag-link","tag-linked","tag-list","tag-modify","tag-outerhtml","tag-part","tag-phrase","tag-prepend","tag-primer","tag-programming","tag-proof-of-concept","tag-sentence","tag-story","tag-tutorial","tag-word","tag-words"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/62992"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=62992"}],"version-history":[{"count":39,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/62992\/revisions"}],"predecessor-version":[{"id":63032,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/62992\/revisions\/63032"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=62992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=62992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=62992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}