Colleague Johan asked whether someone could knock up a script which exports all text layers from a Photoshop document to a text file. Since I’ve scripted Photoshop before (heck, I even steered Photoshop from within C#) it was no biggie for me to knock up a simple script, which I dubbed
TextExport
Javascript html_entity_decode
Dirty, but it works 😛
function html_entity_decode(str) {
var ta = document.createElement("textarea");
ta.innerHTML=str.replace(/</g,"<").replace(/>/g,">");
toReturn = ta.value;
ta = null;
return toReturn;
}
Consider donating.
I don’t run ads on my blog nor do I do this for profit. A donation however would always put a smile on my face though. Thanks!
JS_BRAMUS.lazierLoad 0.4
JS_BRAMUS.lazierLoad
, a Javascript Image Lazy Loader has been updated to version 0.4 thanks to some excellent suggestions by mo from pictor.us
flashLightBoxInjector spinoff: flashShadowboxInjector
With the release of PictureFlow 2.7 – a Flash Coverflow implementation – the author osamwal has switched from Lightbox to the multifunctional Shadowbox which provides extra functionality like showing videos and websites in a Lightbox style.
Continue reading “flashLightBoxInjector spinoff: flashShadowboxInjector”
Native CSS selector system to look up DOM nodes hits Webkit/Safari
Many javascript libraries have implemented functions to use the powerful CSS selector system to look up DOM nodes. Continuing the trend of standardizing and speeding up commonly used functionality from these libraries, WebKit now has support for the new W3C Selectors API, which consists of the
querySelector
andquerySelectorAll
methods.
Sweet! 🙂
Native CSS selector system to look up DOM nodes hits Webkit/Safari →
My Javascript (non-AJAX) Progress / Percentage Bar : jsProgressBarHandler 0.3
A new version of
jsProgressBarHandler
is avaiable. Changes are a bugfix to making multiple barImages properly work with Safari and addition of an internal queue.
Continue reading “My Javascript (non-AJAX) Progress / Percentage Bar : jsProgressBarHandler 0.3”
Javascript isArray() : Check if an element/object is an Array
The isArray()
function over at BreakingPar.com looks great at first, but unfortunately does not work in Safari. This one here does work 😉
// Cross-Browser isArray(), including Safari
function isArray(obj) {
return obj.constructor == Array;
}
JavaScript substrings : the difference between substring()
and substr()
As I tend to forget this all the time, a note to myself (again):
substr()
takes 2 parameters:start
andlength
.substring()
takes 2 parameters:start
andstop
.
Subtle difference, yet a great impact.
My Maintenance : jsProgressBarHandler 0.2.1
Ever since version 0.2 of
jsProgressBarHandler
hit the net earlier this week some extra ideas popped up in my head. New in this version are the ability to show/hide the percentage text and the ability to define which images to use (did anyone say multi-colored bars?!)
Continue reading “My Maintenance : jsProgressBarHandler 0.2.1”
My Javascript (non-AJAX) Progress / Percentage Bar : jsProgressBarHandler 0.2
I seem to be in a scripting mood this week, as
jsProgressBarHandler
has been updated to version 0.2. This version is a total rewrite of version 0.1 making it even better!
Continue reading “My Javascript (non-AJAX) Progress / Percentage Bar : jsProgressBarHandler 0.2”