Chris West's Blog

  • Home
  • Site Search
  • About Me
  •  YourJS
  • Search for:

JavaScript, Math, and much more.

Blog

PostgreSQL – Converting Rows Into A String

One thing that I often have to do is convert a subquery into a string that is delimited by a comma. For example, I may need to write a quick report that shows the users’ names, their login ID, and Read more…

By Chris West, 14 years ago July 14, 2011
Blog

JavaScript – Array.prototype.randomize()

Here is a little snippet that you may find useful if you ever have to randomize the contents of an array: Here is an example of how to use it with an array: The above example will show the names Read more…

By Chris West, 14 years ago July 6, 2011
Blog

VBScript To JavaScript – Space Function

In VBScript, there is a space function which takes an integer and returns a string with the specified number of spaces. At times, you may need such a function to make you text look neat while working with a monospace Read more…

By Chris West, 14 years ago July 5, 2011
Blog

JScript – Global Scope Object

If you have ever written JavaScript for a web page, one of the first things that you learned may have been that the window object is basically a reference to the global scope. On the other hand, if you have Read more…

By Chris West, 14 years ago July 4, 2011
Blog

JavaScript – Logical Operator Array Functions

As a follow-up to my previous article about the AND (&&) and OR (||) logical operators, I decided to create to Array prototype functions that mimic these operators to a certain degree: Here are two examples of using a series Read more…

By Chris West, 14 years ago July 1, 2011
Blog

JavaScript – forEach with Breaking

It seems that one of the top complaints about the Array.prototype.forEach() function is the fact that there is no easy way to break out of the loop. If you are one of those people that would like to see an Read more…

By Chris West, 14 years ago June 30, 2011
Blog

JavaScript – Function.prototype.getCall()

As I was writing jPaq v2.0, one of the things I wanted in quite a few cases were functions in which the this object could be parameterized without using the theFunction.apply() function or the theFunction.call(). Here is an example of Read more…

By Chris West, 14 years ago June 29, 2011
Blog

Excel – Day of the Week By Name

Have you ever had to work with a spreadsheet which contained a column full of dates, but you actually needed to see column full of the corresponding days of the week by name? Believe it or not, translating dates to Read more…

By Chris West, 14 years ago June 28, 2011
Blog

JavaScript – Add Commas To Numbers

At times, I have had to add commas to numbers in order to make them look better in different applications. Even though there isn’t a native way to do this in JavaScript, the code can be quite short, sweet and Read more…

By Chris West, 14 years ago June 23, 2011
Blog

JavaScript – for…in Loop IE Bug

While testing out jPaq v2.0 in IE6 on GoToChrisWest.com, I found an IE6 bug (go figure). The issue can be illustrated with the following code: The above code should display one thing in the alert box: toString. Unfortunately, when you Read more…

By Chris West, 14 years ago June 22, 2011

Posts navigation

Previous 1 … 31 32 33 … 36 Next
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Archives
Categories
Blog (346) CSharp (1) Games (3) HTA (2) Java (5) JavaScript (220) JScript (149) Math (49) Microsoft Office (16) Movie Trailers (2) PHP (13) POW Answer (2) Problem of the Week (31) Python (15) Reporting (1) Salesforce (6) SQL (28) VBA (6) VBScript (8) Videos (10)
Tags
Apache (1) Apex (3) Array (37) Audio (2) Bash (3) Canvas (7) Chrome (3) CSS (12) CSS3 (2) Curry (1) Date (6) EcmaScript 6 (8) Encryption (2) Español (2) Excel (20) Function (136) GitHub (12) Hack (9) HTML (4) HTML5 (2) JasperReport (2) JasperServer (1) jPaq (35) JSON (2) JSONP (2) JW.org (5) Logic Puzzle (2) LWC (2) Mail Merge (1) Math (53) Network (1) OpenKM (2) PostgreSQL (27) Private Data (4) Problem of the Week (31) Prototype (41) Quirk (3) Recursion (10) Regular Expressions (22) String (62) SVN (1) Video (2) Wildcards (3) WScript (2) YourJS (18)
  • About Me
Hestia | Powered by WordPress