Posted by Jacob Wright in ActionScript 3, Flash, JavascriptNov 28th, 2009 | 5 Comments
So there may not be an exorbitant amount of use-cases for displaying an image in HTML that was generated real-time in Flash, but I thought’s cool, so I’m sharing anyway. It makes the inner-geek in me smile.
Short background: I was looking into creating a Flash drawing app that consisted only of the canvas portion, with the rest of the UI in HTML. This is for many reasons including the size of Flex, the native OS components in the browser, speed, and hey, it forces separation of core app logic from the presentation logic, right? ;)
So I wanted a way to display thumbnails of the pages...
Posted by Jacob Wright in Applications, General, Javascript, PHPSep 14th, 2005 | No Comments
Mint is a new product recently released to track the statistics on your website. It has gotten much attention from several areas, and I thought it would be worth it to check it out.
I am currently using StatCounter.com to track the traffic to my site. It is really useful when you use their paid service which keeps track of more than the last 100 visits to your site (the free version cap). It lets you view all the regular stats as well as “drill down” to see the actual path a single visitor took through your site. But, it is a monthly subscription service, which means potenially...
Posted by Jacob Wright in General, JavascriptAug 11th, 2005 | No Comments
I have created a method that assists in creating your HTML elements in Javascript. textToNode takes a string of text and converts it into a DOM element which you may then use for insertion. It's much easier to use than creating each node seperately, adding attributes to it, then appending it to the parent. It also works for table elements (tr, td, etc.) and the option element in a drop-down box.
This was created for DOMClass objects but has been very nice for creating elements on the fly. It is as easy to use as the innerHTML property of an element, but it works with table elements etc. and...
Posted by Jacob Wright in General, Javascript, Object Oriented ProgrammingAug 4th, 2005 | No Comments
It's alive!! I have created a very cool, very simple, function to create new javascript objects that are (not just act upon) HTML DOM elements. Let me explain. Say I have a cool new tree menu I'm creating (true story), and I want others to be able to just start creating the menu items and adding them in via javascript if they need to. The ideal way would be to just say myItem = new MenuItem('Cool Item'); and have it return to me the actual menu item (the TR tag or LI tag) which can be inserted into the menu.
No more of this element wrapper stuff. I don't want to code my classes to act upon a...