<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RandomStringOfWords &#187; JS/CSS Etc</title>
	<atom:link href="http://randomstringofwords.com/category/dev-diary/rsow-com/jscss-etc/feed/" rel="self" type="application/rss+xml" />
	<link>http://randomstringofwords.com</link>
	<description>RandomStringOfWords.com &#124;&#124; RSoW.com</description>
	<lastBuildDate>Mon, 26 Mar 2012 20:35:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Delphi like IDE/VCL for Javascript, written in javascript</title>
		<link>http://randomstringofwords.com/delphi-like-idevcl-for-javascript-written-in-javascript/</link>
		<comments>http://randomstringofwords.com/delphi-like-idevcl-for-javascript-written-in-javascript/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 19:05:04 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Dev Diary]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JS/CSS Etc]]></category>
		<category><![CDATA[BuildForge]]></category>
		<category><![CDATA[delphi]]></category>

		<guid isPermaLink="false">http://info.rsow.com/?p=622</guid>
		<description><![CDATA[So something that I have been pondering is the creation of a rapid application framework/IDE similar to Delphi for javascript, in javascript..  Bear with me..  This is more or less theoretical conjecture at this point, but it amuses me and I wonder what kind of value there would be to be had from such a [...]]]></description>
			<content:encoded><![CDATA[<p>So something that I have been pondering is the creation of a rapid application framework/IDE similar to Delphi for javascript, in javascript..  Bear with me..  This is more or less theoretical conjecture at this point, but it amuses me and I wonder what kind of value there would be to be had from such a platform.</p>
<p>Where Delphi has always excelled, even to this day, is where its IDE and it&#8217;s VCL meet &#8211; you design the look of the application first, and then slap code in behind it second.   Not the other way around.   Users are given a &#8220;form&#8221; on which they can drag components from the visual component library.   The VCL is a vast palette of components and elements really allowing you to make your program look however you want..   Afterward positioning everything and making the program look &#8220;correct&#8221; you go into each component and add the various bits needed to make them do what you want.  </p>
<p>When it comes to rapid application development, Delphi is king.   It beats VB, VC and Java hands down for easy of program design.  This is my opinion of course and largely an opinion based on my experiences with it years ago.   I don&#8217;t use it any more but I know a lot of folks still do and it&#8217;s doing fairly well..  I also see a lot of elements of Delphi&#8217;s innovated IDE in other IDE&#8217;s out there.. (*cough*Eclipse*cough*)</p>
<p><span id="more-622"></span></p>
<p>So my thought is.. How useful would that be for javascript?  This fits in nicely with a project I&#8217;m doing at work in that some of the same concepts are there..    You have a framework in the background that all this rests on (lets call it a desktop), then on top of that you have delphi like &#8220;forms&#8221; (lets call them viewlets) which are nothing more than a window framework container.  Each viewlet would have components that would be pulled from a common component library that you have positioned how you see fit and now have working how you want.</p>
<p>With jQuery it would be fairly simple to allow for any kind of function definitions; from onclicks to mouseovers.. Custom code would be simple and all of that could easily be serialized into a simple object definition that would be easy to store remotely..</p>
<p>You would need a &#8220;component inspector&#8221; like object that allowed you to edit and change things within a viewlet but once that&#8217;s done you simply disable the component inspector and you&#8217;re off to the races..</p>
<p>There are a lot of good javascript frameworks but they all come at this problem from the other direction.. More over there aren&#8217;t any drag and drop Delphi like application creation tools out there for javascript and certainly not any written entirely in javascript..</p>
<p>For work I am creating a whole new system and I was thinking of how I could keep it easy enough that third party developers could design and create their own viewlets for our system.. That&#8217;s when this whole thing plonked itself into my head..   If you designed it from the onset to be a system that could be entirely dynamically done then it would take very little programming on the part of the third party creator to get something new.. They don&#8217;t even need to know the framework because they could simply drag and drop the components they want onto a form (I have a hard time calling it a viewlet) then you&#8217;d have drop down boxes in the component inspector to attach information to that component..</p>
<p>At that point its just a matter of making your components sophisticated enough to provide the functionality you want..  The other nice thing is your shop goes from being application developers to simply being component developers..  If the framework works, you simply need to continue to develop better and better components..  You aren&#8217;t rewriting the wheel each time you want to make a change..</p>
<p>There would need to be some back end code in place to handle the storage of user generated forms, but all HTML, CSS, JPGS, and Components as well as the window framework and desktop are already written.  They don&#8217;t change. </p>
<p>From a support standpoint it would be nice to give your support folks a way to pop-up some kind of component inspector widget that would allow you to browse components and forms on the fly.. etc.. </p>
<p>I dunno.. its one of those things I was pondering.. I know I wont be allowed to do this for work but it amuses me..</p>
]]></content:encoded>
			<wfw:commentRss>http://randomstringofwords.com/delphi-like-idevcl-for-javascript-written-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Theme Conversion Update</title>
		<link>http://randomstringofwords.com/theme-conversion-update/</link>
		<comments>http://randomstringofwords.com/theme-conversion-update/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 04:24:22 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JS/CSS Etc]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ipb]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://info.rsow.com/?p=168</guid>
		<description><![CDATA[Well as some of you know I have been working on a joint WordPress MU and Invision Power Board theme based on the joomla theme Chromatophore.. I thought I would give an update &#8212; It&#8217;s going well all things considered, but its taking me a little longer than I had for seen to get the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-156" style="float: right;" title="Fan Films Forum plus WordPress MU" src="http://info.rsow.com/files/2008/06/fffpluswpmu.gif" alt="" width="150" height="150" />Well as some of you know I have been working on a joint WordPress MU and Invision Power Board theme based on the joomla theme Chromatophore..  I thought I would give an update &#8212; It&#8217;s going well all things considered, but its taking me a little longer than I had for seen to get the color chooser logic working correctly.</p>
<p>You can see my progress here:</p>
<p><a href="http://info.rsow.com/projects/fffredesign/" target="_blank">http://info.rsow.com/projects/fffredesign/</a></p>
<p>I&#8217;ve run into some interesting javascript foibles that I have had to deal with and have also taken this opportunity to start on my own javascript toolbox.</p>
<p><span id="more-168"></span>Every artist has his favorite paintbrush or pens, every carpenter his favorite hammer, and every plumber his favorite ass crack pants..  I&#8217;m using this project to develop my own javascript toolkits.  For now they are largely unfinished and designed to be used for .. well this project.. but it is a start..</p>
<p>With regards to the theme, I&#8217;m working specifically on getting the colorchooser to work.  Right now it doesn&#8217;t choose colors, and I only got the slider/picker cursors to work today.  But only on clicks, you can&#8217;t drag them yet.</p>
<p>I&#8217;m hoping to have it work better than the Chromatophore stuff, and so far the one thing that works better (in my opinion) is the way the chooser slides out.   Firstly from a purely javascript profiling stand point I win hands down;</p>
<p>The Chromatophore theme makes 454 javascript calls to &#8220;slide&#8221; their colorchooser down, where as my version only makes 88 calls..  454 man!  I have no idea what they are doing of course because they obfuscate their code and I don&#8217;t feel like eval&#8217;ing it out and running tidy to figure it out..</p>
<p>My color chooser will also be fixed once down so you can scroll around the page and have the color chooser open to see how your changes work live on the page, instead of having a mini-preview &#8212; right now this isn&#8217;t the case but it will be.</p>
<p>I&#8217;m still very excited about this and working on it.. but this is taking time.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomstringofwords.com/theme-conversion-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript Obfuscation</title>
		<link>http://randomstringofwords.com/javascript-obfuscation/</link>
		<comments>http://randomstringofwords.com/javascript-obfuscation/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 02:00:35 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JS/CSS Etc]]></category>
		<category><![CDATA[BS]]></category>
		<category><![CDATA[obfuscation]]></category>

		<guid isPermaLink="false">http://info.rsow.com/?p=166</guid>
		<description><![CDATA[Code obfuscators will strip out the unnecessary characters like white space, tabs, newlines and comments. The modern flock of javascript obfuscators will also go through and replace every command and variable in the file with some random key that points to an array which then gets eval&#8217;d back out at run time. Generally speaking the [...]]]></description>
			<content:encoded><![CDATA[<p>Code obfuscators will strip out the unnecessary characters like white space, tabs, newlines and comments.  The modern flock of javascript obfuscators will also go through and replace every command and variable in the file with some random key that points to an array which then gets eval&#8217;d back out at run time.  Generally speaking the code you see in an obfuscated javascript file looks like completely gobbledygook which is sorta the point.</p>
<p>My stance on it is simple;  Don&#8217;t do it &#8212; If you ever catch me encoding or obfuscating my javascript, come kick me square in the jimmy..  I simply cannot abide by people who think they need be secretive with javascript..  And lets be completely honest here, that&#8217;s what it&#8217;s about.<span id="more-166"></span></p>
<p>Some folks will try to sling a steaming pile by saying it&#8217;s to shrink the file size for bandwidth purposes, but that&#8217;s crap &#8212; most .jpgs on this site are larger than its javascript.  Most servers gzip everything before sending it to the client anyway so any file size benefits gained by obfuscation is nearly nil &#8212; unless you&#8217;ve written war and peace in the comments of the file.</p>
<p>Javascript obfuscation is purely about power &#8212; People who think they are smart and have done something they want to be noted for obfuscate their code to play the pointless and asinine game of &#8220;knowledge is power&#8221;.  They yammer on about how they don&#8217;t want anyone to &#8220;steal it&#8221; &#8212; which is again a steaming pile of shash..</p>
<p>Obfuscation is at best like a padlock on a door &#8212; &#8220;it keeps the honest people honest&#8221; as my father would say.. if someone wants it their gonna take it.. More over, javascript on some webpage SHOULD be free and open..</p>
<p>Most of these folks fail to realize that they themselves wouldn&#8217;t be able to write the code in the first place if there wasn&#8217;t a &#8220;view source&#8221; button.  Myself included &#8212; And now you&#8217;ve written something you think is so awesome and innovative you need to hide it?!  Douche..</p>
<p>By obfuscating all you&#8217;re doing is refusing to give back to the community and saying &#8220;fuck you&#8221; to the very system that trained you to begin with.  You are stifling innovation in the industry, screwing over the little guy who doesn&#8217;t know as much, and making yourself look like an ass and generally speaking you should hang your head.</p>
<p>All of us are the modern day equivalent to shade tree mechanics.. You wanna know how something works?  Look under the hood..  That&#8217;s the beauty of the system we use.. There are no secrets, and there shouldn&#8217;t be..</p>
<p>Stop it.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomstringofwords.com/javascript-obfuscation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fixing the Archive Problem</title>
		<link>http://randomstringofwords.com/fixing-the-archive-problem/</link>
		<comments>http://randomstringofwords.com/fixing-the-archive-problem/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 22:25:36 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JS/CSS Etc]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://info.rsow.com/fixing-the-archive-problem/</guid>
		<description><![CDATA[The theme that this theme is based on, &#8220;Oceans Mist&#8221; had a number of problems that I wont go into.. however one of the biggies was its inability to correctly display archives. Basically if you had any more than 10 items (or however many you have your WP set up to display in the admin [...]]]></description>
			<content:encoded><![CDATA[<p>The theme that this theme is based on, &#8220;Oceans Mist&#8221; had a number of problems that I wont go into.. however one of the biggies was its inability to correctly display archives.</p>
<p>Basically if you had any more than 10 items (or however many you have your WP set up to display in the admin area) they just wouldn&#8217;t show up. There was no way to page back through those archives. This is lame, and I&#8217;m fixing it.</p>
<p><span id="more-79"></span></p>
<p>I have no idea if this is an issue with other WordPress Themes, but it certainly was with this one. This fix will happen mostly through a very simple use of Ajax. The main reason is that there is no way to easily pass this information to the PHP with an HTTP/GET that satisfies all problems. AND, do it in such a way as to not have to edit the core code of wordpress.</p>
<p>Thus, a very simple ajax object will now live in the theme to facilitate this change. Soon when you go to an archive you will see an enumeration at the top and bottom of the listing similar to any other pagination system.</p>
<p>Eg: << < 5 6 7 8 > >></p>
<p>Each page will display a fixed number of items.. I&#8217;ll see if I can pull that out of the config for wordpress but I may just default to 10 or something..</p>
<p>Most of the ajax code and server side code is in place to handle the call, however right now the JS object doesn&#8217;t know what to do with the response.</p>
<p>Also, I have fixed the template to correctly use engine logic as opposed to cheating and grabbing information directly from the URL. This means that no matter what your permalink structure, it will correctly know where you are and what you want to display.</p>
<p>EDIT: After looking at the other templates it seems the &#8220;correct&#8221; way to do this is to use the &#8220;next_posts_link&#8221; and &#8220;previous_posts_link&#8221; which will correctly set the HTTP/GET depending on your permalink structure.. However, I still like the pagination system so I&#8217;m going to go ahead and move forward with that. </p>
<p>I am going to dig a little deeper into the default and classic themes that come with WP just to get a better idea how things should have been done.  So if you show up and suddenly the site is in &#8220;classic&#8221; or &#8220;default&#8221; theme then that&#8217;s why.</p>
<p>I&#8217;m also going to explore ways of making a real time theme switcher and more themes..</p>
]]></content:encoded>
			<wfw:commentRss>http://randomstringofwords.com/fixing-the-archive-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IE7&#039;s JSFoo sucks so badly it&#039;s painful!</title>
		<link>http://randomstringofwords.com/ie7s-jsfoo-sucks-so-badly-its-painful/</link>
		<comments>http://randomstringofwords.com/ie7s-jsfoo-sucks-so-badly-its-painful/#comments</comments>
		<pubDate>Fri, 19 Jan 2007 18:54:07 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JS/CSS Etc]]></category>
		<category><![CDATA[RandomStrings]]></category>

		<guid isPermaLink="false">http://info.rsow.com/?p=63</guid>
		<description><![CDATA[Since I work for IBM, I can&#8217;t officially say that IE sucks in my code comments &#8212; someone complained.. But by god I can say it here&#8230; IE7&#8242;s javascript engine is complete shit. They need to scrap it completely and start over. Firstly, It&#8217;s sloooowww.. IE7&#8242;s JS is slower than IE6.. which I find to [...]]]></description>
			<content:encoded><![CDATA[<p>Since I work for IBM, I can&#8217;t officially say that IE sucks in my code comments &#8212; someone complained..</p>
<p>But by god I can say it here&#8230; IE7&#8242;s javascript engine is complete shit.  They need to scrap it completely and start over.  Firstly, It&#8217;s sloooowww..  IE7&#8242;s JS is slower than IE6.. which I find to be impressive as IE6 was slow as hell..</p>
<p><span id="more-63"></span></p>
<p>In one of my current projects we have a bunch of objects being cloned in real time to make a popup menu.  It pops up over all other divs and what not from a nested element to a child element of the body.  It&#8217;s a very simple procedure;</p>
<p>Mouse over the icon &#8211; pop goes the menu.</p>
<p>We are attaching the event to fire the pop dynamically.. (Don&#8217;t even get me started on the &#8220;attachEvent&#8221; command.. Can we please use addEventListener like everyone else.. )  When the even fires it is sent to a function which does the work.</p>
<p>All other browsers know that &#8220;this&#8221; in that function is the sender.. Not IE.  IE expressly requires you to define the sender through the function handle and then call &#8220;sender.fromElement&#8221; to get the sender.  That&#8217;s retarded.  Oh but the good times don&#8217;t stop there.. No no..</p>
<p>See it takes time to figure out who the sender is, and it will report the sender as whatever is below the mouse when it finally gets around to it.    So the fromElement could be fricken anything! Its the most unreliable crap on the planet.</p>
<p>Thank you very much Microsoft for this wonderful piece of crap browser.  You&#8217;re an inspiration to us all.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomstringofwords.com/ie7s-jsfoo-sucks-so-badly-its-painful/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MS says De-Hack your CSS for IE7.. Really?!</title>
		<link>http://randomstringofwords.com/ms-says-de-hack-your-css-for-ie7-really/</link>
		<comments>http://randomstringofwords.com/ms-says-de-hack-your-css-for-ie7-really/#comments</comments>
		<pubDate>Sat, 23 Dec 2006 07:21:38 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JS/CSS Etc]]></category>

		<guid isPermaLink="false">http://info.rsow.com/?p=32</guid>
		<description><![CDATA[About a year ago now IE Blog made a &#8220;Call to Action&#8221; regarding the demise of popular CSS hacks which is now causing broken pages in IE7.  They basically said that people needed to remove all the common CSS hacks that they used in order to get some things formatted in Internet Explorer. Hacks such as: html > [...]]]></description>
			<content:encoded><![CDATA[<p>About a year ago now IE Blog made a &#8220;<a title="Call to action! De-hack your CSS" href="http://blogs.msdn.com/ie/archive/2005/10/12/480242.aspx" target="_blank">Call to Action</a>&#8221; regarding the demise of popular CSS hacks which is now causing broken pages in IE7.  They basically said that people needed to remove all the common CSS hacks that they used in order to get some things formatted in Internet Explorer.</p>
<p><span id="more-32"></span></p>
<p>Hacks such as:</p>
<ul>
<li>html > body {element}</li>
<li>* html {element}</li>
<li>head:first-child + body {element}</li>
<li>head + body {element}</li>
<li>body > {element}</li>
</ul>
<p>Or even those that worked inside of the element definition like;</p>
<ul>
<li>_{property}:value</li>
</ul>
<p>Which was actually ignored by all other browsers but Internet Explorer.</p>
<p>The issue is, most of these hacks have been fixed in IE7 and thus that specific IE formatting will not be applied in 7.  Which is great if the rendering quirk your hack was designed to get around had been fixed.  </p>
<p>The issue I&#8217;m having is that I am still seeing quite a lot of CSS tom-foolery in IE7.  Things don&#8217;t render 100% the way they should, sure its leaps and bounds better than previous flavors of IE, and I&#8217;m glad that they are finally getting around to actually listening to a spec, but still.. stuff doesn&#8217;t always work 100% the way it should and that is why those hacks were handy. </p>
<p>MS didn&#8217;t seem to care about most customer complains with regards to the way CSS was implemented in previous versions of IE, and developers got used to dealing with it in a certain way, now they want us to abandon those ways too.  They have taken away the one nice way we could &#8220;fix&#8221; stuff in the CSS file.  Instead they want us to use the <a title="Conditional Comments" href="http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccoment_ovw.asp" target="_blank">conditional comments</a> crap.. which I personally don&#8217;t like and forces you to have multiple files for inclusion or forces you to have completely seperate style blocks.</p>
<p>The thing is, NOW because IE7 wont play nice you have to not only remove your hacks for all flavors of IE, but you also have to divide up all former versions of IE into their own files;</p>
<p>< !--[if lte IE 7 ] > .. Load the IE7 file .. < ![endif]-- ><br />
< !--[if lte IE 6 ] > .. Load the IE6 file .. < ![endif]-- ><br />
< !--[if lte IE 5.5 ] > .. Load the IE5.5 file .. < ![endif]--></p>
<p>This sucks.  I want a CSS solution &#8211; and I&#8217;m going to hold my breath until I get one!</p>
<p>Okay maybe not.. But a CSS solution would be nice.. </p>
]]></content:encoded>
			<wfw:commentRss>http://randomstringofwords.com/ms-says-de-hack-your-css-for-ie7-really/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Persistant Header Images and Colorful Comments</title>
		<link>http://randomstringofwords.com/persistant-header-images-and-colorful-comments/</link>
		<comments>http://randomstringofwords.com/persistant-header-images-and-colorful-comments/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 20:25:59 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JS/CSS Etc]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://info.rsow.com/?p=12</guid>
		<description><![CDATA[Okay so I have updated the JS event object in my theme to allow for persistent header images.  Now when you look at an image, it will save that image id in a cookie so that it can load it again the next time you come by.  Pretty simple.  Check it out. Also, comments from [...]]]></description>
			<content:encoded><![CDATA[<p>Okay so I have updated the JS event object in my theme to allow for persistent header images.  Now when you look at an image, it will save that image id in a cookie so that it can load it again the next time you come by.  Pretty simple.  Check it out.</p>
<p><span id="more-12"></span></p>
<p>Also, comments from me will now have a CSS class applied to their parent object so that they can have their own color.  This will allow users to see comments from me more easily.. not that my comments are worth a damn.. but there ya go.</p>
]]></content:encoded>
			<wfw:commentRss>http://randomstringofwords.com/persistant-header-images-and-colorful-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

