Richard Castera - Explorations in Software Development
Richard Castera - Explorations in Software Development
Browsing Tag
javascript
Resources Scripts

Javascript – Capitalize Each Word in a String

July 26, 2008 3 Comments

This is a great little function that I whipped up and use to capitalize every word in a string. I can’t tell you how many times I’ve had to use this. Hope you find it useful as I have!

JavaScript
1
2
3
4
5
6
7
8
9
<script>
function wordToUpper(strSentence) {
    return strSentence.toLowerCase().replace(/\b[a-z]/g, convertToUpper);
    function convertToUpper() {
        return arguments[0].toUpperCase();
    }
}
</script>
Continue reading
Reading time: 1 min
Share:
Written by: rcastera
Resources Scripts

Datejs – An Open-Source JavaScript Date Library

July 21, 2008 2 Comments

Datejs is an open-source JavaScript Date Library. Comprehensive, yet simple, stealthy and fast. Datejs has passed all trials and is ready to strike. Datejs doesn’t just parse strings, it slices them cleanly in two.

JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script>
// What date is next thrusday?
Date.today().next().thursday();
  
// Add 3 days to Today
Date.today().add(3).days();
  
// Is today Friday?
Date.today().is().friday();
  
// Number fun
(3).days().ago();
// 6 months from now
var n = 6;
n.months().fromNow();
  
// Set to 8:30 AM on the 15th day of the month
Date.today().set({ day: 15, hour: 8, minute: 30 });
  
// Convert text into Date
Date.parse('today');
Date.parse('t + 5 d'); // today + 5 days
Date.parse('next thursday');
Date.parse('February 20th 1973');
Date.parse('Thu, 1 July 2004 22:30:00');
</script>
Continue reading
Reading time: 1 min
Share:
Written by: rcastera
Resources Scripts

MooCrop – A Mootools Image Cropping utility

July 18, 2008 No Comments

MooCrop is an Image Cropping utility using the amazingly powerful Mootools Javascript framework. Alone it serves no practical purpose but used in conjunction with a server side script becomes a powerful image manipulation tool.

Continue reading
Reading time: 1 min
Share:
Written by: rcastera
Resources Scripts

A configurable, AJAX file browser plugin for jQuery

July 15, 2008 1 Comment

jQuery File Tree is a configurable, AJAX file browser plugin for jQuery. You can create a customized, fully-interactive file tree with as little as one line of JavaScript code.

Currently, server-side connector scripts are available for PHP, ASP, ASP.NET, JSP, and Lasso. If you’re a developer, you can easily make your own connector to work with your language of choice.

Continue reading
Reading time: 1 min
Share:
Written by: rcastera
Resources Scripts

Animated Progress Bars Using MooTools

July 11, 2008 No Comments

MooTools progress bar class is highly customizable MooTools class that animates to the desired percentage.

All you need to do is create an instance of the dwProgressBar and pass your desired options. It’s quick and easy. To move the progress bar, all you need to do is call the “set()” method, passing it the desired percentage.

Practical Uses

You could use this progress bar for:

  • An image preloading script
  • Form completion tracking
  • Internal goal tracking applications
  • Anything you want!
Continue reading
Reading time: 1 min
Share:
Written by: rcastera
Resources Scripts

Vista-like Ajax Calendar with Mootools

July 6, 2008 4 Comments

The Vista-like Ajax Calendar (vlaCalendar) is a unobtrusive web version of the slick and profound Windows Vista taskbar calendar, by using the Mootools Javascript Framework, AJAX, XHTML, CSS and PHP.

Key Features

  • Authentic Vista look-and-feel
  • Quick navigation by jumping back and forth between months, years and decades without drop-down boxes
  • Smooth transition animations
  • Customizable features
  • Lightweight
Continue reading
Reading time: 1 min
Share:
Written by: rcastera
Resources Scripts

SPAW – GPL Web Based WYSIWYG Editor Control

June 15, 2008 1 Comment

SPAW Editor is a web based in-browser WYSIWYG HTML editor control. It is a replacement for standard HTML textarea fields for rich text content editing. Version 2 builds on great widely acclaimed features of the first version and includes lots of exciting new features and improvements. The following are some major features that are built into the editor.

Tabbed Multi-document Interface

Version 2 introduces new industry unique tabbed multi-document interface feature. Now you can edit virtually unlimited number of HTML snippets in a single WYSIWYG instance. This can save a lot of screen space, unnecessary scrolling and loading time compared to other solutions where you have to load as many WYSIWYG instances as HTML snippets you want to edit.

Continue reading
Reading time: 1 min
Share:
Written by: rcastera
Page 2 of 2«12

About me

Hello, my name is Richard Castera. I have more than 12 years of experience architecting, implementing, leading and launching large scale, high performance software products in a fast-paced agile environment.

Popular Posts

Magento – Display new products on the home page

May 20, 2009

How to Fix “Internet Explorer Cannot Open the Internet Site- Operation Aborted” Error

May 9, 2009

PHP – Convert Array to Object with stdClass

July 5, 2009

Categories

  • Home Automation
  • Resources
  • Scripts
  • SEO
  • Thoughts
  • Web Server

Tags

Apache Apple Bash CSS Drupal Free home automation htaccess Java Javascript Magento PHP raspberry pi SEO SQL thoughts Wordpress

© 2019 copyright Richard Castera // All rights reserved