{"id":35258,"date":"2018-01-01T03:01:04","date_gmt":"2017-12-31T17:01:04","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=35258"},"modified":"2018-01-01T07:32:43","modified_gmt":"2017-12-31T21:32:43","slug":"textarea-pointing-email-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/textarea-pointing-email-tutorial\/","title":{"rendered":"Textarea Pointing Email Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/textarea_pointing.htm\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Textarea Pointing Email Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/textarea_pointing_email.jpg\" title=\"Textarea Pointing Email Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Textarea Pointing Email Tutorial<\/p><\/div>\n<p>Yesterday&#8217;s <a title='Textarea Pointing Primer Tutorial' href='#tppt'>Textarea Pointing Primer Tutorial<\/a> was a little too localised in its application in our books.  Not if a web application is not of generic use, but this one could be of generic use, in our <strike>pamphlettes<\/strike> books.<\/p>\n<p>Our favourite &#8220;sharing&#8221; idea is email, by far, as today, as far as that goes, we are going to offer email &#8220;services&#8221; via a <a target=_blank title='Client pre-emptive iframe' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/?s=pre-emptive'>&#8220;client pre-emptive iframe&#8221;<\/a> determination of whether where you have placed today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/textarea_pointing.htm\" title=\"Click picture\">live run<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/textarea_pointing.html-GETME\" title=\"textarea_pointing.htm\">textarea_pointing.htm<\/a> code (changed <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/textarea_pointing.html-GETME\" title=\"textarea_pointing.htm\">this way<\/a>) has, relative to it, an existant <i>..\/PHP\/Geographicals\/prediff.php<\/i> PHP code source (that we left to go on our Textarea Pointing project) of <a target=_blank title='Linux diff PDF Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-diff-pdf-tutorial\/'>Linux diff PDF Tutorial<\/a> (<a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php\">live run<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php--GETME\">prediff.php<\/a> PHP code&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php--GETME\">last changes<\/a> were used to cater for the Textarea Pointing HTML email attachment requirement).<\/p>\n<p>We like to use a &#8220;client pre-emptive iframe&#8221; technique initial check for whether the HTML finds <i>prediff.php<\/i> because the email functionality is optional after all.  If <i>prediff.php<\/i> is not found, then the Email button is never shown, simple as that.  But the other two displays of the HTML in new popup windows &#8230;<\/p>\n<ul>\n<li>with menu<\/li>\n<li>without menu &#8230; as well as &#8230;<\/li>\n<li>email with HTML attachment<\/li>\n<\/ul>\n<p> &#8230; complete the scope of the new &#8220;Sharing&#8221; functionalities today, and this year, on this!<\/p>\n<p>So &#8230; <font size=9>Happy New Year!<\/font><\/p>\n<hr>\n<p id='tppt'>Previous relevant <a target=_blank title='Textarea Pointing Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/textarea-pointing-primer-tutorial\/'>Textarea Pointing Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/textarea_pointing.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Textarea Pointing Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/\/HTMLCSS\/textarea_pointing.jpg\" title=\"Textarea Pointing Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Textarea Pointing Primer Tutorial<\/p><\/div>\n<p>Completely new idea today, so hoping this does not put some of you &#8220;episodic&#8221; users off.  <font size=1>We&#8217;ll get back to incomplete recent &#8220;threads&#8221; at a later date.<\/font>  This is because we had pause for thought, due to yesterday&#8217;s <a target=_blank title='Linux diff PDF Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-diff-pdf-tutorial\/'>PDF textual data positioning work<\/a>, regarding <b>one<\/b> of our favourite HTML fundamental element types of interest (that we are always comparing) &#8230;<\/p>\n<ul>\n<li><a target=_blank title='HTML div information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_div.asp'>div<\/a><\/li>\n<li><a target=_blank title='HTML textarea information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_textarea.asp'><b>textarea<\/b><\/a><\/li>\n<\/ul>\n<p>To quote <a target=_blank title='HTML Textarea and Div Talents Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/html-textarea-and-div-talents-primer-tutorial\/'>HTML Textarea and Div Talents Primer Tutorial<\/a> (as it was addressing the <b>textarea<\/b> HTML element) &#8230;<\/p>\n<blockquote cite='https:\/\/www.rjmprogramming.com.au\/ITblog\/html-textarea-and-div-talents-primer-tutorial\/'>\n<p>It&#8217;s crucial for getting HTML or non-caretted Text (that is internally turned into HTML behind the scenes) &#8230; via those <a target=_blank title='Excel Online Spreadsheet Monthly Planner Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/excel-online-spreadsheet-monthly-planner-primer-tutorial\/'>wonderful<\/a> <a target=_blank title='Tab navigation button or panel information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Tab_(GUI)'>tabs<\/a> &#8230; off the user and onto the MySql database, and then out to the client user as part of a webpage.  Out at that webpage, though, we&#8217;ve no doubt this content is embedded in an HTML <a target=_blank title='HTML div tag information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_div.asp'>div<\/a> element, the other &#8220;talent&#8221; here.<\/p>\n<p><\/p>\n<p>But their strengths and weaknesses go like this, at least to us, in the limited HTML text view of things &#8230;<\/p>\n<p><\/p>\n<table border=\"100\">\n<tbody>\n<tr>\n<th>Text Functionality Issue<\/th>\n<th>HTML Element Type<\/th>\n<th>Strength<\/th>\n<th>Weakness (where a \u201cYes\u201d is like \u2026 \u201cOh No!\u201d)\n<\/th>\n<\/tr>\n<tr>\n<td rowspan=\"2\">Display Monocolour Text<\/td>\n<td>Textarea\n<\/td>\n<td>Yes<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Div\n<\/td>\n<td>Yes<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">Display Editable Text<\/td>\n<td>Textarea\n<\/td>\n<td>Yes<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Div\n<\/td>\n<td><\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<\/tr>\n<tr>\n<td rowspan=\"2\">Display Multicolour Text<\/td>\n<td>Textarea\n<\/td>\n<td><\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>Div\n<\/td>\n<td>Yes<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/blockquote>\n<p>Nothing there above gives much encouragement about the HTML <b>textarea<\/b>&#8216;s &#8220;positioning&#8221; talents.  But what if we were to create a <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=-kbTbg00AJU'>&#8220;posse&#8221;<\/a>, or perhaps a <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=zgywD3XJaWU'>&#8220;phalanx&#8221;<\/a>, of <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=wIrHAa0WljQ'>&#8220;textarea&#8221;<\/a>s to bank up with &#8220;bits and pieces&#8221; of the positioning <i>&#8220;issue&#8221;<\/i> (under the auspices of an HTML <a target=_blank title='HTML form information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_form.asp'>form<\/a> element, for later accountability)?<\/p>\n<p>What do we mean by <i>&#8220;issue&#8221;<\/i> here?  Well, something like a letter, as with the end product of a scanning process involving a hardcopy letter, is that much more useful if what we end up with is the &#8220;characters&#8221; that go to make up that letter (or report, or essay), not some graphic (or totally visual) encapsulation of it, which can be what happens when you involve as your HTML &#8220;capture&#8221; element the <a target=_blank title='HTML Canvas element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/ref_canvas.asp'>&#8220;canvas&#8221;<\/a> element.  No, we want that &#8220;posse&#8221; of &#8220;textarea&#8221;s be that &#8220;character&#8221; source, which later, we can present as an overall graphic at a later date, for sharing purposes for instance, and maintain the &#8220;letter&#8221; (or report or essay) data continuously as the user edits.<\/p>\n<p>How to do?  We click\/touch with a base &#8220;textarea&#8221; and that is enough to arrange for an <a target=_blank title='Overlay blog postings here' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/overlay'>&#8220;overlay&#8221;<\/a> &#8220;textarea&#8221; (via CSS <a target=_blank title='CSS position:absolute information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/pr_class_position.asp'>position:absolute<\/a> and <a target=_blank title='CSS z-index information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/pr_pos_z-index.asp'>z-index<\/a> properties, some <a target=_blank title='CSS3 background-color information from w3schools' href='https:\/\/www.w3schools.com\/cssref\/pr_background-color.asp'>background-color:transparent<\/a> styling, along with <i>div id=dscript<\/i> (innerHTML) appended dynamic CSS styling making use of CSS <a target=_blank title='CSS3 calc information' href='https:\/\/www.htmlgoodies.com\/html5\/css\/using-the-css3-calc-function.html'>calc<\/a>&#8216;ing <i>&lt;style&gt; .mboard2 { width: calc(85% &#8211; 56px); } &lt;\/style&gt;<\/i> type syntax (where the <i>56px<\/i> would have been derived via the onclick event logic, the <i>85%<\/i> is to allow for a 15% width menu at the right, and the <i>2<\/i> in <i>mboard2<\/i> refers to the second <i>textarea<\/i> in question)) to follow (ironically an HTML div element is by far the best &#8220;container&#8221; in a (Javascript DOM controlled) <a target=_blank title='Linked list information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Linked_list'>linked list<\/a> fashion for this, rather than appending to the HTML form element&#8217;s innerHTML (which seems to wipe out previous textarea values)), like a linked list of &#8220;textarea&#8221;s.  Along the way we allow for font information to be collected and kept as well (for now, via the <i>textarea<\/i>&#8216;s <a target=_blank title='HTML alt attribute information from w3schools' href='https:\/\/www.w3schools.com\/tags\/att_alt.asp'><i>alt<\/i><\/a> attribute), to add to the chances for variety with our overall &#8220;letter&#8221; (or report or essay) reporting end product.<\/p>\n<p>Which leaves us to talk about the &#8220;textarea pointing&#8221; <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/textarea_pointing.html\" title=\"Click picture\">live run<\/a>&#8216;s underlying HTML and Javascript and CSS <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/textarea_pointing.html_GETME\" title=\"textarea_pointing.html\">textarea_pointing.html<\/a> code for your perusal.<\/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='#d35213' onclick='var dv=document.getElementById(\"d35213\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/textarea\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d35213' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d35258' onclick='var dv=document.getElementById(\"d35258\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/email\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d35258' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday&#8217;s Textarea Pointing Primer Tutorial was a little too localised in its application in our books. Not if a web application is not of generic use, but this one could be of generic use, in our pamphlettes books. Our favourite &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/textarea-pointing-email-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,37],"tags":[2432,211,342,354,380,2339,400,452,564,576,587,1525,652,2431,703,861,1861,894,967,997,1054,1262,1319,1418,1496],"class_list":["post-35258","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-alt","tag-click","tag-div","tag-dom","tag-email","tag-essay","tag-event","tag-form","tag-hierarchy","tag-html","tag-iframe","tag-innerhtml","tag-javascript","tag-letter","tag-linked-list","tag-onclick","tag-outerhtml","tag-overlay","tag-popup","tag-programming","tag-report","tag-textarea","tag-tutorial","tag-webpage","tag-z-index"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/35258"}],"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=35258"}],"version-history":[{"count":5,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/35258\/revisions"}],"predecessor-version":[{"id":35273,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/35258\/revisions\/35273"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=35258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=35258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=35258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}