{"id":6098,"date":"2014-02-07T05:01:38","date_gmt":"2014-02-06T18:01:38","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=6098"},"modified":"2014-02-07T05:01:38","modified_gmt":"2014-02-06T18:01:38","slug":"ross-browserplatform-javascript-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/ross-browserplatform-javascript-primer-tutorial\/","title":{"rendered":"Cross Browser\/Platform Javascript Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/fjcindex.html\"><img decoding=\"async\" id='imqgmovh' onmouseover=\"var xqw=this.src;  if (xqw.indexOf('132') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-133of.jpg'; } else if (xqw.indexOf('133') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-134of.jpg'; }  else if (xqw.indexOf('134') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-5of.jpg'; } else if (xqw.indexOf('-5') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-6of.jpg'; } else if (xqw.indexOf('-6') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-11of.jpg'; } else if (xqw.indexOf('-11') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-9of.jpg'; } else if (xqw.indexOf('-9') != -1) { this.src = 'http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-21of.jpg'; } else { this.src = 'http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-132of.jpg'; }  \"  style=\"float:left;border: 15px solid pink;\" alt=\"Cross Browser\/Platform Javascript Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/Frameset_Javascript_BrowserCrossPlatform-132of.jpg\" title=\"Cross Browser\/Platform Javascript Primer Tutorial (try twirling round bottom of image for a synopsis ... 'do the twirl now')\"  \/><\/a><p class=\"wp-caption-text\">Cross Browser\/Platform Javascript Primer Tutorial (try twirling round bottom of image for a synopsis ... 'do the twirl now')<\/p><\/div>\n<p>Today&#8217;s tutorial shows a cross browser and cross platform consideration of a styling issue where CSS (any type) cannot help but Javascript can.  The issue is that with the HTML frameset element the <i>cols<\/i> property cannot be changed by CSS, so we will change it dynamically using Javascript.<\/p>\n<p>This is an opportunity to introduce some if\/else if\/else code in Javascript to differentiate browsers and platforms based on <a target=_blank title='Javascript Browser Detection \u2013 Navigator User Agent' href='http:\/\/www.surfingsuccess.com\/javascript\/javascript-browser-detection.html#.Ut5fZfZ9KYV'>Javascript Browser Detection \u2013 Navigator User Agent<\/a> &#8230; thanks.<\/p>\n<p>The mobile platforms do not like HTML frameset at all, and you will see in the code an approach that wipes the slate clean to work with table\/iframe instead, and using document.writeln<\/p>\n<p>Enjoy this <a target=_blank title='Cross Browser\/Platform Javascript Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/fjcindex.html'>tutorial<\/a> or <a target=_blank title='Cross Browser\/Platform Javascript Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/new_frameset_supervisor.html'>live run<\/a> that has logic for Internet Explorer, Firefox, Safari, Chrome and Opera browsers, and for iOS and Android platforms.<\/p>\n<p>Here is a link to the HTML supervising programming source code that you might want to rename to <a target=_blank title='new_frameset_supervisor.html' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/new_frameset_supervisor.html_GETME'>new_frameset_supervisor.html<\/a><\/p>\n<p>Here is a link to the HTML supervised programming source code that you might want to rename to <a target=_blank title='new_frameset_content.html' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/Frameset\/new_frameset_content.html_GETME'>new_frameset_content.html<\/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='#d6098' onclick='var dv=document.getElementById(\"d6098\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Javascript\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d6098' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s tutorial shows a cross browser and cross platform consideration of a styling issue where CSS (any type) cannot help but Javascript can. The issue is that with the HTML frameset element the cols property cannot be changed by CSS, &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/ross-browserplatform-javascript-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":[3,12,20,33,37],"tags":[76,207,275,276,439,461,576,622,626,652,884,951,997,1083,1166,1319,1405],"class_list":["post-6098","post","type-post","status-publish","format-standard","hentry","category-android","category-elearning","category-ios","category-software","category-tutorials","tag-android","tag-chrome","tag-cross-browser","tag-cross-browser-issues","tag-firefox","tag-frameset","tag-html","tag-internet-explorer","tag-ios","tag-javascript","tag-opera","tag-platforms","tag-programming","tag-safari","tag-software-2","tag-tutorial","tag-web-browsers"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/6098"}],"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=6098"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/6098\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=6098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=6098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=6098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}