{"id":47535,"date":"2019-12-30T03:01:46","date_gmt":"2019-12-29T17:01:46","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=47535"},"modified":"2019-12-30T07:27:06","modified_gmt":"2019-12-29T21:27:06","slug":"window-sessionstorage-client-versus-server-integration-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-integration-tutorial\/","title":{"rendered":"Window SessionStorage Client Versus Server Integration Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.htm\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Window SessionStorage Client Versus Server Integration Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php_integration.jpg\" title=\"Window SessionStorage Client Versus Server Integration Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Window SessionStorage Client Versus Server Integration Tutorial<\/p><\/div>\n<p>We hope, when performing a &#8220;software integration&#8221; task, that the two or more components of that integration work <i>with<\/i> each other&#8217;s talents, rather than a big tussle like reinventing the wheel.  This ideal makes the work &#8230;<\/p>\n<ul>\n<li>sometimes difficult but rewarding because &#8230;<\/li>\n<li>the differences between two independent software components can be quite large and daunting &#8230; and the programmer has to see that &#8230;<\/li>\n<li>care is applied so as not to wreck previous functionality and integrations in making the current integration work<\/li>\n<\/ul>\n<p> &#8230; and that is why we&#8217;ve made corollaries to &#8220;building from scratch&#8221; (when planning and design is a huge component) can be a lot simpler than a software integration &#8220;renovation&#8221;, in the past, here at this blog.<\/p>\n<p>Our primary integration today is to (software) integrate the great <a target=_blank title='Weather Underground' href='http:\/\/www.wunderground.com'>Weather Underground<\/a> and its great API service for autocomplete name searches for weather (and hurricane) information.  Why bother?  Well, can you not envisage a user using that Ajax functionality of yesterday&#8217;s <a title='Window SessionStorage Client Versus Server Ajax Tutorial' href='#wsscvsat'>Window SessionStorage Client Versus Server Ajax Tutorial<\/a> as a trip planner, perhaps, or as a &#8220;checking up on relatives overseas&#8221; tool, perhaps?   And not all the capital cities are timezone places, and so for some of those we can use Weather integration to still show apt online information when click\/touching a Countries Report row.  Speaking of this &#8220;row&#8221;, we make an improvement whereby on a first click of a right hand (Country) row cell, that cell is not initially a <i>contenteditable=&#8221;true&#8221;<\/i> one (that may frustrate showing the keyboard on mobile, when most likely it was the row touch intended), but then becomes a <i>contenteditable=&#8221;true&#8221;<\/i> cell henceforth.<\/p>\n<p>As a user experience improvement for &#8220;trip planners&#8221; perhaps, we allow the user to alphabetically sort the presented select (dropdown) element entries &#8230;<\/p>\n<p><code><br \/>\nvar firstopt='';<br \/>\nvar wasopts='';<br \/>\nvar restopts='';<br \/>\n<br \/>\nfunction readyitforsort(iselid) {<br \/>\n  var optsare=[];<br \/>\n  var huhisel=document.getElementById(iselid).innerHTML;<br \/>\n  var huhsopts=huhisel.split('&lt;\/option&gt;');<br \/>\n  for (var ihuh=0; ihuh&lt;huhsopts.length; ihuh++) {<br \/>\n    if (huhsopts[ihuh].trim() != '') {<br \/>\n      if (firstopt == '') {<br \/>\n        firstopt=huhsopts[ihuh] + '&lt;\/option&gt;';<br \/>\n      } else {<br \/>\n        wasopts+=huhsopts[ihuh].replace('option ','option data-ih=\"' + (huhsopts[ihuh].split('&gt;')[eval(-1 + huhsopts[ihuh].split('&gt;').length)] + '\" ')) + '&lt;\/option&gt;';<br \/>\n        optsare.push(huhsopts[ihuh].replace('option ','option data-ih=\"' + (huhsopts[ihuh].split('&gt;')[eval(-1 + huhsopts[ihuh].split('&gt;').length)] + '\" ')) + '&lt;\/option&gt;');<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n  optsare.sort();<br \/>\n  for (var jhuh=0; jhuh&lt;optsare.length; jhuh++) {<br \/>\n    restopts+=optsare[jhuh];<br \/>\n  }<br \/>\n}<br \/>\n<\/code><\/p>\n<p> &#8230; controlled by a new dropdown in the left hand column header cell.<\/p>\n<p>We also allow the user to move the iframe element with some positioning emoji buttons near the &#8220;Close&#8221; button one (of yesterday&#8217;s work).<\/p>\n<p>Into the future, too, we&#8217;ll have more to say regarding the germination of an idea &#8220;to allow a mobile onmouseover simulator (of sorts)&#8221; be to allow the user to perform a swipe across an individual HTML element of interest on mobile platforms (ie. harness ontouchmove event) as per (so far) &#8230; <b>kicked off<\/b> by &#8220;&lt;body <b>onload=&#8221; setTimeout(athn, 5000); &#8220;<\/b>&gt;&#8221; &#8230;<\/p>\n<p><code><br \/>\nvar last24='';<br \/>\nvar rectdc;<br \/>\n<br \/>\nfunction nodivalert() {<br \/>\n  document.getElementById('divalert').style.display='none';<br \/>\n  document.getElementById('divalert').style.zIndex='-456';<br \/>\n  document.getElementById('divalert').style.left=('-' + rectdc.left).replace('px','') + 'px';<br \/>\n  document.getElementById('divalert').style.top=('-' + rectdc.top).replace('px','') + 'px';<br \/>\n}<br \/>\n<br \/>\nfunction ourdivalert(inmsg) {<br \/>\n  document.getElementById('divalert').style.position='absolute';<br \/>\n  document.getElementById('divalert').style.left=('' + rectdc.left).replace('px','') + 'px';<br \/>\n  document.getElementById('divalert').style.top='' + eval(-80 + eval(('' + rectdc.top).replace('px',''))) + 'px';<br \/>\n  document.getElementById('divalert').style.backgroundColor='#e0e0e0';<br \/>\n  document.getElementById('divalert').style.display='block';<br \/>\n  document.getElementById('divalert').style.zIndex='456';<br \/>\n  document.getElementById('divalert').style.opacity='0.8';<br \/>\n  document.getElementById('divalert').style.padding='5px 5px 5px 5px';<br \/>\n  document.getElementById('divalert').innerHTML=inmsg + '&lt;br&gt;&lt;br&gt;&lt;input type=button value=Close onclick=nodivalert();&gt;&lt;\/input&gt;';<br \/>\n  setTimeout(nodivalert,9000);<br \/>\n}<br \/>\n<br \/>\nfunction athn() {<br \/>\n  rectdc=document.getElementById('dc').getBoundingClientRect();<br \/>\n  if (navigator.userAgent.match(\/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile\/i)) {<br \/>\n  document.getElementById('dc').ontouchmove=function(event) { if (last24.substring(0,eval(-1 + last24.length)) == event.target.title.substring(0,eval(-1 + event.target.title.length))) { last24=last24; } else { last24=event.target.title; ourdivalert(event.target.title); } }<br \/>\n  } else {<br \/>\n  document.getElementById('dc').onmousemove=function(event) { if (last24.substring(0,eval(-1 + last24.length)) == event.target.title.substring(0,eval(-1 + event.target.title.length))) { last24=last24; } else { last24=event.target.title; ourdivalert(event.target.title); } }<br \/>\n  }<br \/>\n}<br \/>\n<\/code><\/p>\n<p> &#8230; working <i>with<\/i> <b>the new<\/b> HTML &#8230;<\/p>\n<p><code><br \/>\n<b>&lt;div id=divalert&gt;&lt;\/div&gt;<\/b><br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n<\/code><\/p>\n<p> &#8230; to try to allow the &#8220;explainer of an element&#8221; advantages non-mobile platforms have for hovering over an HTML element with a <i>title<\/i> attribute filled in.<\/p>\n<p>And so, yet again, see <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html-----GETME\" title=\"wls_vs_php.htm\">the changed<\/a<> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html-----GETME\" title=\"wls_vs_php.htm\">wls_vs_php.htm<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.htm\" title=\"Click picture\">Capital City Find Matching Country Report live run<\/a> link&#8217;s new Weather integration functionality.  It caused <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/colour_wheel.html-------GETME\" title=\"colour_wheel.html\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/colour_wheel.html-------GETME\" title=\"colour_wheel.html\">colour_wheel.html<\/a>&#8216;s colour wheel (at this <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/colour_wheel.html\" title='Click picture'>live run<\/a> link) to be affected (by integrations &#8220;up&#8221;).<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-integration-tutorial\/'>Window SessionStorage Client Versus Server Integration Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wsscvsat'>Previous relevant <a target=_blank title='Window SessionStorage Client Versus Server Ajax Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-ajax-tutorial\/'>Window SessionStorage Client Versus Server Ajax 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\/wls_vs_php.htm\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Window SessionStorage Client Versus Server Ajax Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php_ajax.jpg\" title=\"Window SessionStorage Client Versus Server Ajax Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Window SessionStorage Client Versus Server Ajax Tutorial<\/p><\/div>\n<p>We have a few &#8220;clientside chestnuts&#8221; to use with our current Capital City Find Matching Country Report web application project today, those being &#8230;<\/p>\n<ul>\n<li> <a target=_blank title='Ajax information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Ajax_%28programming%29'>Ajax<\/a> functionality, kicked off by an &#8220;onclick&#8221; event set of logic, allowing mobile platforms to also have a look in (the look in that they miss when the event logic is off the &#8220;onmouseover&#8221; event)<\/li>\n<li>iframe and its &#8230;\n<ol>\n<li><i><a target=_blank title='Iframe srcdoc information from w3schools' href='https:\/\/www.w3schools.com\/tags\/att_iframe_srcdoc.asp'>srcdoc<\/a><\/i> attribute (&#8220;content&#8221; alternative to <i>src<\/i> &#8220;url&#8221; attribute) &#8230; along with, and crucially needing (because <i>srcdoc<\/i> ignores its own document.body <i>onload<\/i> goings on, that we need the <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/?s=client+pre-emptive+iframe' title='Client Pre-emptive Iframe techniques blog postings'>&#8220;Iframe Client Pre-Emptive&#8221;<\/a> methods below to circumvent) the &#8230;<\/li>\n<li><i>onload<\/i> event opportunity of an iframe element (we group into &#8220;Iframe Client Pre-Emptive&#8221; methods, here)<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p> &#8230; adding onto yesterday&#8217;s <a title='Window SessionStorage Client Versus Server Canvas Tutorial' href='#wsscvsct'>Window SessionStorage Client Versus Server Canvas Tutorial<\/a>.<\/p>\n<p>It&#8217;s not that involved with the Ajax work today, given that there are no cross-domain issues, though there are cross-protocol (SSL https: versus non-SSL http:) issues to be careful about.  Those can be addressed because the web application is recalled to present its &#8220;Country Report&#8221; and that is the opportunity to check on protocol navigation requirements.<\/p>\n<p>Along the way, we also make this happen for the user on &#8230;<\/p>\n<ul>\n<li>click\/touching a table row &#8230; it sets off new &#8220;tr&#8221; (table row) element logic calling our (inhouse) Timezone and Wikipedia Place Information helper (HTML) via Ajax (so not leaving the webpage) &#8230; and because of place name oddities we allow for &#8230;<\/li>\n<li>&#8220;td&#8221; (table cell) element user amendments by setting their <i><a target=_blank title='Global contenteditable attribute information from W3schools' href='https:\/\/www.w3schools.com\/tags\/att_global_contenteditable.asp'>contenteditable<\/a><\/i> attributes to &#8220;true&#8221; (since fixed, but we found the Timezone Europe\/Tirane pointing at Tirane in Albania used to be spelt &#8220;Tirana&#8221;)<\/li>\n<\/ul>\n<p> &#8230; that latter methodology normally a technique we apply to &#8220;div&#8221; elements <font size=1>(so, there you are!)<\/font><\/p>\n<p>Also used are &#8220;overlay&#8221; techniques, two of the &#8220;usual suspects&#8221; here coming into play, to present to the &#8220;Ajax content to srcdoc iframe arrangements&#8221; &#8230;<\/p>\n<ul>\n<li><a target=_blank title='CSS position:absolute information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/pr_class_position.asp'>position:absolute<\/a> property (with associated top and left (px defined) properties)<\/li>\n<li><a target=_blank title='CSS z-index information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/pr_pos_z-index.asp'>z-index<\/a><\/li>\n<\/ul>\n<p>Yet again, see <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html----GETME\" title=\"wls_vs_php.htm\">the changed<\/a<> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html----GETME\" title=\"wls_vs_php.htm\">wls_vs_php.htm<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.htm\" title=\"Click picture\">Capital City Find Matching Country Report live run<\/a> link&#8217;s new &#8220;Ajax&#8221; functionality.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-ajax-tutorial\/'>Window SessionStorage Client Versus Server Ajax Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wsscvsct'>Previous relevant <a target=_blank title='Window SessionStorage Client Versus Server Canvas Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-canvas-tutorial\/'>Window SessionStorage Client Versus Server Canvas 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\/wls_vs_php.htm\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Window SessionStorage Client Versus Server Canvas Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php_canvas.jpg\" title=\"Window SessionStorage Client Versus Server Canvas Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Window SessionStorage Client Versus Server Canvas Tutorial<\/p><\/div>\n<p>Yesterday&#8217;s <a title='Window SessionStorage Client Versus Server Share Tutorial' href='#wsscvsst'>Window SessionStorage Client Versus Server Share Tutorial<\/a> dealt with ascii text clipboard copy assisted sharing options with our current Capital City Find Matching Country Report web application project.  This suited both Email and SMS share options we coded for, but today&#8217;s extension of functionality from &#8220;ascii text&#8221; data to &#8220;graphical data&#8221; only suits Email sharing.  The other caveat with our work is that no serverside (for us, PHP) help is allowed, so no PHP mail here.<\/p>\n<p>What comes into play with a &#8220;graphical data&#8221; clientside (only) sharing approach?  It will not surprise many readers that, for us, it involves &#8230;<\/p>\n<ul>\n<li><a target=_blank title='HTML Canvas element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/ref_canvas.asp'>canvas<\/a> element &#8230; converting HTML table outerHTML &#8220;ascii text&#8221; data &#8230; via &#8230;<\/li>\n<li>canvas drawing methods &#8220;[canvasContext].<a target=_blank href='http:\/\/www.w3schools.com\/tags\/canvas_stroketext.asp' title='HTML5 Canvas strokeRect() method information from w3schools ... thanks'>strokeRect<\/a>()&#8221; and &#8220;[canvasContext].<a target=_blank href='http:\/\/www.w3schools.com\/tags\/canvas_stroketext.asp' title='HTML5 Canvas strokeText() method information from w3schools ... thanks'>strokeText<\/a>()&#8221; via &#8220;[cellElement].<a target=_blank title='Javascript getBoundingClientRect method information from Mozilla' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Element\/getBoundingClientRect'>getBoundingClientRect<\/a>()&#8221; &#8230; to convert that canvas element content via &#8230;<\/li>\n<li>[canvasElement].<a target=_blank title='HTML5 canvas element toDataURL method information' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/HTMLCanvasElement\/toDataURL'>toDataURL<\/a>() &#8230; to an &#8230;<\/li>\n<li>img element nested in a div <a target=_blank title=Global contenteditable attribute information from W3schools' href='https:\/\/www.w3schools.com\/tags\/att_global_contenteditable.asp'>contenteditable<\/a>=true element &#8230; so as to hook in with today&#8217;s <a target=_blank title='Very useful link, thanks' href='https:\/\/stackoverflow.com\/questions\/27863617\/is-it-possible-to-copy-a-canvas-image-to-the-clipboard'>very useful helper link<\/a>, thanks &#8230; use &#8230;<\/li>\n<li>\n<code><br \/>\nfunction tabletoclipboard(canvas) { \/\/ thanks to https:\/\/stackoverflow.com\/questions\/27863617\/is-it-possible-to-copy-a-canvas-image-to-the-clipboard<br \/>\n var img = document.createElement('img');<br \/>\n img.src = canvas.toDataURL();<br \/>\n<br \/>\n var div = document.createElement('div');<br \/>\n div.contentEditable = true;<br \/>\n div.appendChild(img);<br \/>\n document.body.appendChild(div);<br \/>\n<br \/>\n \/\/ do copy<br \/>\n SelectText(div);<br \/>\n document.execCommand('Copy');<br \/>\n document.body.removeChild(div);<br \/>\n}<br \/>\n<br \/>\nfunction SelectText(element) { \/\/ thanks to https:\/\/stackoverflow.com\/questions\/27863617\/is-it-possible-to-copy-a-canvas-image-to-the-clipboard<br \/>\n    var doc = document;<br \/>\n    if (doc.body.createTextRange) {<br \/>\n        var range = document.body.createTextRange();<br \/>\n        range.moveToElementText(element);<br \/>\n        range.select();<br \/>\n    } else if (window.getSelection) {<br \/>\n        var selection = window.getSelection();<br \/>\n        var range = document.createRange();<br \/>\n        range.selectNodeContents(element);<br \/>\n        selection.removeAllRanges();<br \/>\n        selection.addRange(range);<br \/>\n    }<br \/>\n}<br \/>\n<\/code>\n<\/li>\n<li>to leave the user&#8217;s device&#8217;s clipboard containing a useful table (with linework) &#8230; ready to &#8230;<\/li>\n<li>paste into an email body section<\/li>\n<\/ul>\n<p> &#8230; sharing off to an emailee collaborator.<\/p>\n<p>Again, see <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html---GETME\" title=\"wls_vs_php.htm\">the changed<\/a<> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html---GETME\" title=\"wls_vs_php.htm\">wls_vs_php.htm<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.htm\" title=\"Click picture\">Capital City Find Matching Country Report live run<\/a> link&#8217;s new &#8220;Email Table&#8221; button functionality.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/new-window-sessionstorage-client-versus-server-share-tutorial\/'>New Window SessionStorage Client Versus Server Share Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wsscvsst'>Previous relevant <a target=_blank title='Window SessionStorage Client Versus Server Share Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-share-tutorial\/'>Window SessionStorage Client Versus Server Share 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\/wls_vs_php.htm\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Window SessionStorage Client Versus Server Share Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php_email.jpg\" title=\"Window SessionStorage Client Versus Server Share Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Window SessionStorage Client Versus Server Share Tutorial<\/p><\/div>\n<p>Yesterday&#8217;s <a title='Window SessionStorage Client Versus Server Tutorial' href='#wsscvst'>Window SessionStorage Client Versus Server Tutorial<\/a> has been amended today for two new sharing and collaboration options, those being &#8230;<\/p>\n<ul>\n<li>email<\/li>\n<li>SMS<\/li>\n<\/ul>\n<p> &#8230; but you may well be familiar with the restrictions on email and SMS client (program) approaches to this, coming from HTML &#8220;a&#8221; link &#8220;mailto:&#8221; and &#8220;sms:&#8221; href property prefixes respectively.  We&#8217;re going to need help with the 800 odd character (length) restrictions with the (resultant) web address (bar) URL, but what?  How about working off the great advice of this <a target=_blank title='Great link' href='https:\/\/hackernoon.com\/copying-text-to-clipboard-with-javascript-df4d4988697f'>wonderful link<\/a>, thanks, to copy what we&#8217;d have assembled into an ascii text Report into the characters contained by the user&#8217;s device&#8217;s clipboard?<\/p>\n<p><code><br \/>\nfunction copytoclipboard(str) { \/\/ thanks to https:\/\/hackernoon.com\/copying-text-to-clipboard-with-javascript-df4d4988697f<br \/>\n  var el = document.createElement('textarea');<br \/>\n  el.value = str;<br \/>\n  el.setAttribute('readonly', '');<br \/>\n  el.style.position = 'absolute';<br \/>\n  el.style.left = '-9999px';<br \/>\n  document.body.appendChild(el);<br \/>\n  el.select();<br \/>\n  document.execCommand('copy');<br \/>\n  document.body.removeChild(el);<br \/>\n}<br \/>\n<\/code><\/p>\n<p>An issue that springs up here using such clipboard ascii text content, whenever you get the Font choice given to you, pick a monospaced Font like Courier New or &#8220;Fixed Width&#8221;.<\/p>\n<p>See <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html--GETME\" title=\"wls_vs_php.htm\">the changed<\/a<> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html--GETME\" title=\"wls_vs_php.htm\">wls_vs_php.htm<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.htm\" title=\"Click picture\">Capital City Find Matching Country Report live run<\/a> link&#8217;s new sharing functionality.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-share-tutorial\/'>Window SessionStorage Client Versus Server Share Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wsscvst'>Previous relevant <a target=_blank title='Window SessionStorage Client Versus Server Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-tutorial\/'>Window SessionStorage Client Versus Server 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\/wls_vs_php.htm\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Window SessionStorage Client Versus Server Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php_session.jpg\" title=\"Window SessionStorage Client Versus Server Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Window SessionStorage Client Versus Server Tutorial<\/p><\/div>\n<p>Sometimes it&#8217;s the case at this blog that we&#8217;d like to introduce a new topic, but do not do so, because we cannot show any real world (or real application) use of that concept.  So it has been, up until now, with the concept of (web browser) window (object) <a target=_blank title='Window object sessionStorage property' href='https:\/\/www.w3schools.com\/jsref\/prop_win_sessionstorage.asp'>sessionStorage<\/a> property.  But yesterday&#8217;s <a title='Window LocalStorage Client Versus Server Primer Tutorial' href='#wlscvspt'>Window LocalStorage Client Versus Server Primer Tutorial<\/a> represented an opportunity akin to when Haley&#8217;s Comet gets at its closest to the Earth &#8230; <a target=_blank title='?' href='https:\/\/www.youtube.com\/watch?v=0j6g_uUhH2c'>while you see a chance, take it<\/a> &#8230; chance because of that nuance whereby we were not trying to store data for any other purpose than passing data onto &#8230;<\/p>\n<ol>\n<li>a known entity &#8230; ie. same web application &#8230; at &#8230;<\/li>\n<li>a known time &#8230; ie. immediately<\/li>\n<\/ol>\n<p> &#8230; two conditions that make the code design &#8220;marginally&#8221; more ideal for the window object property concept of <a target=_blank title='Window object localStorage property' href='https:\/\/www.w3schools.com\/jsref\/prop_win_sessionstorage.asp'>sessionStorage<\/a> rather than <a target=_blank title='Window object sessionStorage property' href='https:\/\/www.w3schools.com\/jsref\/prop_win_localstorage.asp'>localStorage<\/a>, in that any &#8230;<\/p>\n<p><code><br \/>\nlocalStorage.removeItem([knownLocalStorageName]);<br \/>\n<\/code><\/p>\n<p> &#8230; becomes superfluous as with <a target=_blank title='Window object sessionStorage property' href='https:\/\/www.w3schools.com\/jsref\/prop_win_sessionstorage.asp'>sessionStorage<\/a> data will disappear between web browser sessions, anyway.<\/p>\n<p>We offer this new concept as a non-default option of a select (dropdown) element replacement to the h1 element hardcoding &#8220;localStorage&#8221; with <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html-GETME\" title=\"wls_vs_php.htm\">the changed<\/a<> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html-GETME\" title=\"wls_vs_php.htm\">wls_vs_php.htm<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.htm\" title=\"Click picture\">Capital City Find Matching Country Report live run<\/a>.  The other nuance of difference with <a target=_blank title='Window object sessionStorage property' href='https:\/\/www.w3schools.com\/jsref\/prop_win_sessionstorage.asp'>sessionStorage<\/a> usage is that in the document.body <i>onload<\/i> event logic, we may as well <font color=green>(as part of other changes)<\/font> pre-emptively look for, and if there, respond to, any found <a target=_blank title='Window object sessionStorage property' href='https:\/\/www.w3schools.com\/jsref\/prop_win_sessionstorage.asp'>sessionStorage<\/a> data points, <font color=blue>even without the user having flagged it specifically<\/font> &#8230;<\/p>\n<p><code><br \/>\nvar datamode='localStorage';<br \/>\n<br \/>\nfunction checkforreport() {<br \/>\n  var divcont='';<br \/>\n  var dcaps, dctys, idis;<br \/>\n  if (getcapitals == 'localStorage') {<br \/>\n   if (window.localStorage) {<br \/>\n    getcapitals=decodeURIComponent(localStorage.getItem('wls_vs_php_capitals')).replace(\/\\+\/g,' ');<br \/>\n    localStorage.removeItem('wls_vs_php_capitals');<br \/>\n   } else {<br \/>\n    getcapitals='';<br \/>\n   }<br \/>\n  } <font color=green>else if (getcapitals == 'sessionStorage') {<br \/>\n   document.getElementById('smode').value=getcapitals;<br \/>\n   datamode=getcapitals;<br \/>\n   if (window.sessionStorage) {<br \/>\n    getcapitals=decodeURIComponent(sessionStorage.getItem('wls_vs_php_capitals')).replace(\/\\+\/g,' ');<br \/>\n   } else {<br \/>\n    getcapitals='';<br \/>\n   }<br \/>\n  }<\/font> <font color=blue>else if (getcapitals == '' && window.sessionStorage) {<br \/>\n   getcapitals=decodeURIComponent(('' + sessionStorage.getItem('wls_vs_php_capitals')).replace(\/^null$\/g,'')).replace(\/\\+\/g,' ');<br \/>\n   if (getcapitals != '') {<br \/>\n    document.getElementById('smode').value='sessionStorage';<br \/>\n    datamode='sessionStorage';<br \/>\n   }<br \/>\n  }<\/font><br \/>\n  if (getcountries == 'localStorage') {<br \/>\n   if (window.localStorage) {<br \/>\n    getcountries=decodeURIComponent(localStorage.getItem('wls_vs_php_countries')).replace(\/\\+\/g,' ');<br \/>\n    if (getcapitals.replace('localStorage','') != '' && getcountries.replace('localStorage','') != '') { document.getElementById('myh1').innerHTML+=' &lt;font size=1&gt;... yes, it was needed&lt;\/font&gt;'; }<br \/>\n    localStorage.removeItem('wls_vs_php_countries');<br \/>\n   } else {<br \/>\n    getcountries='';<br \/>\n   }<br \/>\n  } <font color=green>else if (getcountries == 'sessionStorage') {<br \/>\n   if (window.sessionStorage) {<br \/>\n    getcountries=decodeURIComponent(sessionStorage.getItem('wls_vs_php_countries')).replace(\/\\+\/g,' ');<br \/>\n    if (getcapitals.replace('sessionStorage','') != '' && getcountries.replace('sessionStorage','') != '') { document.getElementById('myh1').innerHTML+=' &lt;font size=1&gt;... yes, it was needed&lt;\/font&gt;'; }<br \/>\n   } else {<br \/>\n    getcountries='';<br \/>\n   }<br \/>\n  }<\/font> <font color=blue>else if (getcountries == '' && document.getElementById('smode').value == 'sessionStorage' && window.sessionStorage) {<br \/>\n   getcountries=decodeURIComponent(('' + sessionStorage.getItem('wls_vs_php_countries')).replace(\/^null$\/g,'')).replace(\/\\+\/g,' ');<br \/>\n   if (getcountries != '') {<br \/>\n    document.getElementById('smode').value='sessionStorage';<br \/>\n    datamode='sessionStorage';<br \/>\n   }<br \/>\n  }<\/font><br \/>\n  if (getcapitals != '' && getcountries != '') {<br \/>\n    divcont='&lt;table border=5 style=\"width:95%;vertical-align:top;background-color:white;\"&gt;&lt;tr style=background-color:#f0f0f0;\"&gt;&lt;th&gt;Capital&lt;\/th&gt;&lt;th&gt;Country&lt;\/th&gt;&lt;\/tr&gt;&lt;\/table&gt;';<br \/>\n    dcaps=getcapitals.split('|');<br \/>\n    dctys=getcountries.split('|');<br \/>\n    for (idis=0; idis&lt;dcaps.length; idis++) {<br \/>\n      divcont=divcont.replace('&lt;\/table&gt;', '&lt;tr&gt;&lt;td&gt;' + dcaps[idis] + '&lt;\/td&gt;&lt;td&gt;' + dctys[idis] + '&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;');<br \/>\n    }<br \/>\n    document.getElementById('dreport').innerHTML=divcont;<br \/>\n  }<br \/>\n  <font color=green>document.getElementById('smode').value=datamode;<\/font><br \/>\n }<br \/>\n<\/code><\/p>\n<p>Which beggars the question <a target=_blank title='Difference between sessionStorage and localStorage' href='https:\/\/www.google.com\/search?rlz=1C5CHFA_enAU832AU832&#038;sxsrf=ACYBGNQEjiBrN6mf-JpqOZbxckzjOREa5A%3A1577252199998&#038;ei=Z_UCXoHVPJLorQHI0peoAg&#038;q=differences+between+sessionStorage+and+localStorage&#038;oq=differences+between+sessionStorage+and+localStorage&#038;gs_l=psy-ab.3..0i7i30j0i333l3.36328.36328..36699...0.2..0.215.215.2-1......0....1..gws-wiz.......0i71.WuAPyJrUflA&#038;ved=0ahUKEwjBpOioitDmAhUSdCsKHUjpBSUQ4dUDCAs&#038;uact=5'>&#8220;What are the differences between sessionStorage and localStorage?&#8221;<\/a>   A quick reading might surmise that &#8220;the latter has an expiration date&#8221;.  We leave you with an open ended <a target=_blank title='Google' href='https:\/\/google.com'>Google<\/a> search so that you may extend your readings on this.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-tutorial\/'>Window SessionStorage Client Versus Server Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wlscvspt'>Previous relevant <a target=_blank title='Window LocalStorage Client Versus Server Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/window-localstorage-client-versus-server-primer-tutorial\/'>Window LocalStorage Client Versus Server 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\/wls_vs_php.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Window LocalStorage Client Versus Server Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.jpg\" title=\"Window LocalStorage Client Versus Server Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Window LocalStorage Client Versus Server Primer Tutorial<\/p><\/div>\n<p>Even though we rave on a lot about serverside PHP and its $_POST method=POST (versus HTML\/Javascript recipient via ? and &amp; argument $_GET method=GET scenario) data length advantages as the recipient of an HTML form method=POST set of data that could be sizeable, we&#8217;ve just realized that there is a client Javascript and window.localStorage methodology that may help alleviate the need to involve PHP (and any other serverside intervention) on occasions.<\/p>\n<p>Hint: Yes, we&#8217;ve raved on about this too?!  Does the blog posting title give it away?   Okay, yes, it should read <a target=_blank title='localStorage information from w3schools' href='https:\/\/www.w3schools.com\/jsref\/prop_win_localstorage.asp'>&#8220;localStorage&#8221;<\/a>, but thought we&#8217;d gone past such juvenile finickiness since the <a target=_blank title='Whac-A-Mole' href='https:\/\/en.wikipedia.org\/wiki\/Whac-A-Mole'>Whac-A-Mole<\/a> controversy of <a target=_blank title='?' \n href='https:\/\/www.rjmprogramming.com.au\/ITblog\/gimp-guillotine-follow-up-troubleshooting-tutorial\/'>1st December 2019<\/a> (or even <a target=_blank title=\"The Great Tea Trolley Disaster of \u201967\" href='https:\/\/www.google.com\/search?q=The+Great+Tea+Trolley+Disaster+of+%E2%80%9967&#038;rlz=1C5CHFA_enAU832AU832&#038;oq=The+Great+Tea+Trolley+Disaster+of+%E2%80%9967&#038;aqs=chrome..69i57j69i64.232j0j4&#038;sourceid=chrome&#038;ie=UTF-8'>The Great Tea Trolley Disaster of \u201967<\/a>, we daresay).<\/p>\n<p>It can even use a <a target=_blank title='?' href='http:\/\/www.youtube.com\/watch?v=MA2KmJMKFrQ'>&#8220;self-destruct&#8221;<\/a> approach to the use of this &#8220;localStorage&#8221; on having used it because &#8230;<\/p>\n<ul>\n<li>the web application knows who is using it (localStorage) &#8230; and on having accessed and read it &#8230;<\/li>\n<li>the web application knows it (localStorage) is of no use to any other user (in this web application&#8217;s case, at least)<\/li>\n<\/ul>\n<p> &#8230; which is very pleasing for a Land Surveyor who likes to leave cow paddocks as they&#8217;ve seen them <font size=1>so to speak<\/font>.  Except it&#8217;s like having a ten tonne truck worth of data access in amongst the cow pats when having access to &#8220;localStorage&#8221; (or PHP), rather than a little piddle of calf wee <font size=1>(we<strike>e<\/strike> Metcalfes know a thing or two about these things!)<\/font> data access of ? and &amp; HTML\/Javascript URL arguments (or even if we were to use HTTP Cookies).<\/p>\n<p>It&#8217;s not as if we all have access to serverside language usage, though <i>we<\/i> do, because we really like PHP and <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'><i>MAMP<\/i><\/a> and Apache\/PHP\/MySql web servers (and have arranged our development environment accordingly), but what if you are starting out in web development, and still want to allow for sizeable chunks of data with your web applications?  Huh?  Huh?!  See the possibilities?  Try our proof of concept <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html\" title=\"wls_vs_php.html_GETME>wls_vs_php.html<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html\" title=\"Click picture\">Capital City Find Matching Country Report live run<\/a>, and highlight a whole swathe of (multiple mode) dropdown option Capital Cities holding down the shift key before pressing the yellow &#8220;Report&#8221; button.  If the URL ends up as &#8230;<\/p>\n<p><code>https:\/\/rjmprogramming.com.au\/HTMLCSS\/wls_vs_php.html?capitals=localStorage&countries=localStorage<\/code> <\/p>\n<p> &#8230; <font color=blue>that&#8217;s because<\/font> the web application&#8217;s &#8230;<\/p>\n<p><code><br \/>\nfunction analyze() {<br \/>\n  var purl=document.URL.split('#')[0].split('?')[0] + '?capitals=' + encodeURIComponent(document.getElementById('capitals').value) + '&countries=' + encodeURIComponent(document.getElementById('countries').value);<br \/>\n  if (<font color=green>purl.length &gt; 800<\/font>) {<br \/>\n    if (<font color=red>phpexists<\/font>) {<br \/>\n      document.getElementById('myform').method='POST';<br \/>\n      document.getElementById('myform').action='.\/wls_vs_php.php';<br \/>\n    } else <font color=purple>if (window.localStorage) {<\/font><br \/>\n      <font color=blue>localStorage.setItem('wls_vs_php_countries', encodeURIComponent(document.getElementById('countries').value));<br \/>\n      localStorage.setItem('wls_vs_php_capitals', encodeURIComponent(document.getElementById('capitals').value));<br \/>\n      document.getElementById('capitals').value='localStorage';<br \/>\n      document.getElementById('countries').value='localStorage';<br \/>\n      location.href=document.URL.split('#')[0].split('?')[0] + '?capitals=' + encodeURIComponent(document.getElementById('capitals').value) + '&countries=' + encodeURIComponent(document.getElementById('countries').value);<\/font><br \/>\n      <font color=brown>return false;<\/font><br \/>\n    <font color=purple>}<\/font><br \/>\n  }<br \/>\n  return true;<br \/>\n}<br \/>\n<\/code><\/p>\n<p> &#8230; HTML form <i>onsubmit<\/i> event logic &#8230;<\/p>\n<ol>\n<li><font color=red>discovered no PHP web application existant<\/font> (via <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/?s=client+pre-emptive+iframe' title='Client Pre-emptive Iframe techniques blog postings'>Client Pre-emptive Iframe<\/a> techniques) &#8230; and &#8230;<\/li>\n<li>discovered (in a sanity check feeling way) that to go down the proposed HTML form method=GET approach was risking a &#8230;<br \/>\n<code><br \/>\n<font color=green>HTTP 414 \"Request URI too long\"<\/font><br \/>\n<\/code><br \/>\n &#8230; web browser error &#8230; and that &#8230;\n<\/li>\n<li><a target=_blank title='localStorage information from w3schools' href='https:\/\/www.w3schools.com\/jsref\/prop_win_localstorage.asp'>localStorage<\/a> was a <font color=purple>known web browser piece of functionality<\/font><\/li>\n<p> &#8230; and so as per <font color=blue>our localStorage logic<\/font> we &#8230;<\/li>\n<li><font color=brown>back out of the default HTML form method=GET navigation setup<\/font> of the web application in favour of &#8230;\n<ul>\n<li>storing that data into localStorage<\/li>\n<li>substituting into the URL ? and &amp; arguments the hardcoding &#8220;localStorage&#8221; (and in so doing, getting back under the <font color=green>HTTP 414 &#8220;Request URI too long&#8221;<\/font> limitation, piecing together (what amounts to) &#8230;<br \/>\n      location.href=document.URL.split(&#8216;#&#8217;)[0].split(&#8216;?&#8217;)[0] + &#8216;?capitals=localStorage&#038;countries=localStorage&#8217;;<\/font>)<br \/>\n &#8230; that on a recall to this same web application a &#8230;\n<\/li>\n<li>document.body <i>onload<\/i> event piece of Javascript logic <font color=olive>checks the localStorage<\/font> for its incoming Capital City Country Report data, as per &#8230;<br \/>\n<code><br \/>\nvar phpexists=false;<br \/>\nvar getcapitals=location.search.split('capitals=')[1] ? decodeURIComponent(location.search.split('capitals=')[1].split('&')[0]).replace(\/\\+\/g,' ') : '';<br \/>\nvar getcountries=location.search.split('countries=')[1] ? decodeURIComponent(location.search.split('countries=')[1].split('&')[0]).replace(\/\\+\/g,' ') : '';<br \/>\n<br \/>\nfunction checkforreport() {<br \/>\n  var divcont='';<br \/>\n  var dcaps, dctys, idis;<br \/>\n  <font color=olive>if (getcapitals == 'localStorage') {<br \/>\n   if (window.localStorage) {<br \/>\n    getcapitals=decodeURIComponent(localStorage.getItem('wls_vs_php_capitals')).replace(\/\\+\/g,' ');<br \/>\n    <b>localStorage.removeItem('wls_vs_php_capitals');<\/b><br \/>\n   } else {<br \/>\n    getcapitals='';<br \/>\n   }<br \/>\n  }<br \/>\n  if (getcountries == 'localStorage') {<br \/>\n   if (window.localStorage) {<br \/>\n    getcountries=decodeURIComponent(localStorage.getItem('wls_vs_php_countries')).replace(\/\\+\/g,' ');<br \/>\n    if (getcapitals.replace('localStorage','') != '' && getcountries.replace('localStorage','') != '') { document.getElementById('myh1').innerHTML+=' &lt;font size=1&gt;... yes, it was needed&lt;\/font&gt;'; }<br \/>\n    <b>localStorage.removeItem('wls_vs_php_countries');<\/b><br \/>\n   } else {<br \/>\n    getcountries='';<br \/>\n   }<br \/>\n  }<\/font><br \/>\n  if (getcapitals != '' && getcountries != '') {<br \/>\n    divcont='&lt;table border=5 style=\"width:95%;vertical-align:top;background-color:white;\"&gt;&lt;tr style=background-color:#f0f0f0;\"&gt;&lt;th&gt;Capital&lt;\/th&gt;&lt;th&gt;Country&lt;\/th&gt;&lt;\/tr&gt;&lt;\/table&gt;';<br \/>\n    dcaps=getcapitals.split('|');<br \/>\n    dctys=getcountries.split('|');<br \/>\n    for (idis=0; idis&lt;dcaps.length; idis++) {<br \/>\n      divcont=divcont.replace('&lt;\/table&gt;', '&lt;tr&gt;&lt;td&gt;' + dcaps[idis] + '&lt;\/td&gt;&lt;td&gt;' + dctys[idis] + '&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;');<br \/>\n    }<br \/>\n    document.getElementById('dreport').innerHTML=divcont;<br \/>\n  }<br \/>\n}<br \/>\n<\/code><br \/>\n &#8230; the <b>localStorage.removeItem()<\/b> representing that &#8220;self-destruct&#8221; nuance we were talking about before\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>We may well use this methodology in future projects, and hope it has been of some <font size=1>little<\/font> interest to you as well?!<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank title='Window LocalStorage Client Versus Server Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/window-localstorage-client-versus-server-primer-tutorial\/'>Window LocalStorage Client Versus Server Primer Tutorial<\/a>.<\/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='#d47485' onclick='var dv=document.getElementById(\"d47485\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/localstorage\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d47485' 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='#d47508' onclick='var dv=document.getElementById(\"d47508\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/session\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d47508' 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='#d47516' onclick='var dv=document.getElementById(\"d47516\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/share\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d47516' 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='#d47523' onclick='var dv=document.getElementById(\"d47523\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/canvas\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d47523' 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='#d47527' onclick='var dv=document.getElementById(\"d47527\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/ajax\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d47527' 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='#d47535' onclick='var dv=document.getElementById(\"d47535\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/weather\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d47535' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We hope, when performing a &#8220;software integration&#8221; task, that the two or more components of that integration work with each other&#8217;s talents, rather than a big tussle like reinventing the wheel. This ideal makes the work &#8230; sometimes difficult but &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/window-sessionstorage-client-versus-server-integration-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":[2,12,14,33,37],"tags":[69,88,1835,2354,184,214,1604,2442,264,380,451,452,541,576,3168,587,590,599,614,652,2415,1830,2997,830,861,870,3170,1712,2723,894,2134,997,2024,3169,1133,1137,1159,1168,1173,2902,1262,1693,1319,1357,1399,1431,1496],"class_list":["post-47535","post","type-post","status-publish","format-standard","hentry","category-ajax","category-elearning","category-event-driven-programming","category-software","category-tutorials","tag-ajax","tag-api","tag-arguments","tag-bad-request","tag-canvas","tag-clipboard","tag-collaboration","tag-contenteditable","tag-cookies","tag-email","tag-font","tag-form","tag-graphics","tag-html","tag-http-cookies","tag-iframe","tag-image","tag-img","tag-integration","tag-javascript","tag-localstorage","tag-method","tag-monospaced","tag-navigation","tag-onclick","tag-onload","tag-onmouseoiver","tag-onsubmit","tag-ontouchmove","tag-overlay","tag-place","tag-programming","tag-session","tag-sessionstorage","tag-share","tag-sharing","tag-sms","tag-software-integration","tag-sort","tag-srcdoc","tag-textarea","tag-timezone","tag-tutorial","tag-validate","tag-weather","tag-wikipedia","tag-z-index"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/47535"}],"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=47535"}],"version-history":[{"count":13,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/47535\/revisions"}],"predecessor-version":[{"id":47548,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/47535\/revisions\/47548"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=47535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=47535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=47535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}