{"id":5034,"date":"2013-11-02T05:00:10","date_gmt":"2013-11-01T18:00:10","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=5034"},"modified":"2020-02-29T11:15:55","modified_gmt":"2020-02-29T01:15:55","slug":"yui-ui-colour-picker-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/yui-ui-colour-picker-primer-tutorial\/","title":{"rendered":"YUI UI Colour Picker Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/yui\/Colourpicker\/index.html\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"YUI UI Colour Picker Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/yui\/Colourpicker\/YUI_Colourpicker_Primer.jpg\" title=\"YUI UI Colour Picker Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">YUI UI Colour Picker Primer Tutorial<\/p><\/div>\n<p>A lot of the things people like about the Web are to do with JavaScript and client-side activities.   Adding to that experience are Javascript libraries packed full of features.    One of the best of these is the YUI library by Yahoo!<\/p>\n<blockquote><p>The Yahoo! User Interface Library (YUI) is an open-source JavaScript library for building richly interactive web applications using techniques such as Ajax, DHTML and DOM scripting. YUI includes several core CSS resources. It is available under a BSD License.[1] Development on YUI began in 2005 and Yahoo! properties such as My Yahoo! and the Yahoo! front page began using YUI in the summer of that year. YUI was released for public use in February 2006.[2] It is actively developed by a core team of Yahoo! engineers.<\/p>\n<p>In September 2009, Yahoo! released YUI 3, a new version of YUI rebuilt from the ground up to modernize the library and incorporate lessons learned from YUI 2. Among the enhancements are a CSS selector driven engine for retrieving DOM elements, a greater emphasis on granularity of modules, a smaller seed file that loads other modules when necessary, and a variety of syntactic changes intended to make writing code faster and easier.[3]<\/p>\n<p>The YUI Library project at Yahoo! was founded by Thomas Sha and sponsored internally by Yahoo! co-founder Jerry Yang; its principal architects have been Sha, Adam Moore, and Matt Sweeney. The library&#8217;s developers maintain the YUIBlog; the YUI community discusses the library and implementations in its community forum.\n<\/p><\/blockquote>\n<p>Click <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/yui\/Colourpicker\/index.php'>for live run<\/a> to see some PHP code that mainly contains Javascript and HTML and CSS for a Colour Picker control brought up within a YUI dialog control via an HTML input button element.  That code can be downloaded and renamed to <a target=_blank title='yui_colourpicker.php' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/yui\/Colourpicker\/yui_colourpicker.php_GETME'>yui_colourpicker.php<\/a>, and a <a target=_blank title='Live Run' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/yui\/Colourpicker\/yui_colourpicker.php'>live run<\/a> here.<\/p>\n<p>The start of the tutorial shows some Gimp work making the white background of two small png images to be transparent, which makes the workings of the Colour Picker better, because the pointer for the selected colour is best seen through so that you get the accuracy plus the colour all at once.   These two small images are tailorable by the user.<\/p>\n<p>This YUI Colour Picker is beast achieved by the downloading of the relevant yui and assets directories (and below) from YUI, to the relevant place on your website.<\/p>\n<p>Two very useful tutorials for this were <a target=_blank title='Colour Picker useful tutorial 1' href='http:\/\/developer.yahoo.com\/yui\/examples\/colorpicker\/colorpicker-dialog-from-script.html'>tutorial1<\/a> and <a target=_blank title='Colour Picker useful tutorial 2' href='http:\/\/developer.yahoo.com\/yui\/examples\/colorpicker\/colorpicker-dialog-from-script_clean.html'>tutorial2<\/a> &#8230; thanks.<\/p>\n<p>Link to YUI Library information <a target=_blank title='YUI Library information' href='http:\/\/en.wikipedia.org\/wiki\/YUI_Library'> &#8230; via Wikipedia, from where quote above is derived<\/a>.<br \/>\nLink to YUI Library spiritual home page  <a target=_blank title=YUI Library spiritual home' href='http:\/\/yuilibrary.com\/'> &#8230; via Yahoo!<\/a><br \/>\nLink to YUI Library download page  &#8230; <a target=_blank title='Download' href='http:\/\/yuilibrary.com\/download\/yui3\/'>download YUI Library here<\/a>.<br \/>\nLink to YUI Library UI Colour Picker control page  &#8230; <a target=_blank title='YUI Library UI Calendar control' href='http:\/\/developer.yahoo.com\/yui\/colorpicker\/'>YUI Library UI Colour Picker control<\/a> (one of many YUI Library UI ideas).<\/p>\n<p><strong><em>Did you know &#8230;<\/em><\/strong><br \/>\nJavaScript makes a great easy-access Calculator?<\/p>\n<p>Try typing the lines below into the address bar of your favourite browser:<\/p>\n<p>Javascript: eval(512 \/ 380);<br \/>\nJavascript: eval(512 * 380);<br \/>\nJavascript: eval(512 &#8211; 380);<br \/>\nJavascript: eval(512 + 380);<br \/>\nJavascript: eval(512 % 380);<\/p>\n<p>These days we spend so much time on the Internet it is a much quicker way to get to a calculator!\n<\/p>\n<p><strong><em>And did you know &#8230;<\/em><\/strong><\/p>\n<p>Yahoo! also host a great question and answers website at <a target=_blank title='Yahoo Answers' href='http:\/\/answers.yahoo.com'>Yahoo! Answers<\/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='#d5034' onclick='var dv=document.getElementById(\"d5034\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=51\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d5034' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A lot of the things people like about the Web are to do with JavaScript and client-side activities. Adding to that experience are Javascript libraries packed full of features. One of the best of these is the YUI library by &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/yui-ui-colour-picker-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,16,17,37],"tags":[228,281,491,576,652,932,997,1319,1495],"class_list":["post-5034","post","type-post","status-publish","format-standard","hentry","category-elearning","category-gimp","category-gui","category-tutorials","tag-colour-picker","tag-css","tag-gimp","tag-html","tag-javascript","tag-php","tag-programming","tag-tutorial","tag-yui"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5034"}],"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=5034"}],"version-history":[{"count":1,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5034\/revisions"}],"predecessor-version":[{"id":48173,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5034\/revisions\/48173"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=5034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=5034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=5034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}