I have some development tools I've used day-to-day, you might like them too...
Quickly find and replace stuff (commas to line breaks, regular expressions, etc)
http://www.parkapps.com/tools/find_replace.cfm
Other tools can be found at http://www.parkapps.com/tools/
Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts
Wednesday, December 17, 2008
Friday, December 5, 2008
Minify Javascript
We're having some problems with JavaScript not loading entirely for some users... I'm not sure why yet, but I came across this JSMin - JavaScript minifier. Excellent stuff.
http://fmarcia.info/jsmin/test.html
http://fmarcia.info/jsmin/test.html
Tuesday, September 23, 2008
Vertical multi-column list
function ge(obj) {
return document.getElementById(obj);
}
/*
Reorder a list that normally flows horizontally and refactor to flow vertically in the same area.
Assumes that the li element has a css width and uses the shortcut function ge()
*/
function vertMultiColList(parentObj) {
var nextColHtml = '- '; // no quotes b/c IE is weird about rewriting HTML
// if this has already run take out any continued lists
parentObj.innerHTML = parentObj.innerHTML.replace(/<\/ul>
- /ig,''); // Firefox
parentObj.innerHTML = parentObj.innerHTML.replace(/<\/ul>
- /ig,''); // IE
var arrUl = document.getElementsByTagName('UL');
for(var j=0;j
Subscribe to:
Posts (Atom)