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 run the above code in IE6, nothing is displayed to Read more…

By Chris West, ago
Blog

JavaScript’s Logical Operators

Most people that have written JavaScript realize that the and operator is && and the or operator is ||. Did you know, though, that these operators are short-circuit operators? Did you know that these operators don’t make the expression evaluate to a boolean per se? Short-Circuit Operators When someone says Read more…

By Chris West, ago
Blog

Where jPaq is Going Next

I apologize for not writing any posts in the past few weeks, but I promise I was working hard on something big. Besides the normal work at work and my friend’s wedding, I have also been hard at work on the next version of jPaq. I still have more coding Read more…

By Chris West, ago
Blog

Match Beginning & End of Words

One of the things I had to study up on while creating jPaq was regular expressions. The reason for this is because I wanted a way for those who know how to use wildcard expressions, but not regular expressions, to be able to use equivalent regular expressions. One of the Read more…

By Chris West, ago
Blog

PostgreSQL – String To Rows

Working Solution – Custom Function I have to say that using PostgreSQL has been great compared to MySQL. Recently, though, I ran into an issue while working with iReports designer. I needed to be able to accept a string of comma-delimited integers and then JOIN on those ID’s. Therefore, I Read more…

By Chris West, ago
Blog

Escape & Unescape – Deprecated?

Two of the most widely used JavaScript functions that are now deprecated are the escape() and unescape() functions. This means that in order to ensure that your code will continue to work in all future browsers, you should use one of the alternative functions as was indicated on MDN: encodeURI() Read more…

By Chris West, ago