Quantcast
Channel: And Slaters Go Plop » javascript
Browsing latest articles
Browse All 3 View Live

Some Handy Regular Expressions

At least something /.+/ A positive integer /^\d*$/ A decimal number /^\d*\.?\d/ A valid email address /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/ A valid web address...

View Article



CSS max-width proportional scaling in IE6

The CSS property ‘max-width’ and ‘max-height’ doesn’t work in Internet Explorer 6. Here’s a workaround: .myclass { width:expression(this.width > 100 ? (this.height > this.width ? (this.width /...

View Article

Escaping a Plus in Javascript

I got stuck trying to send a string that contained a “+” via Javascript to a Flash component. Using “escape()” didn’t help as it continued to come through as a space. The workaround I discovered is to...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images