Vancouver Web Consultants

January 10, 2010

Fixing Safari Upload Hangs with Mootools

Filed under: Mootools, PHP, Tutorials, Web Browsers — Tags: , — Nelson @ 6:32 pm

Safari has a tendency to hang when uploading files, and it turns out there’s an easy fix. (more…)

June 5, 2009

Secure Javascript Form Validation with Mootools

Filed under: Mootools, Tutorials, Usability — Tags: , , , — Nelson @ 8:33 am

Did I get you with the title? That’s right, it’s not possible to securely validate a form with Javascript. That is, you can’t prevent invalid data from being submitted to the server by using Javascript for validation. We’ve all seen Javascript-based form validation classes (and classes for Javascript libraries like Mootools, which is my favourite, so I’ll be making reference to it here), but it’s all too often not made clear enough to those who might use such classes that javascript validation alone provides no security against invalid data being sent to your back-end processing script and making it into your database.

(more…)

May 1, 2009

Getting Time Zone from Latitude & Longitude

The problem:

I was recently tasked with building an application that relied heavily on accurate time zone conversions. I, like many people I soon found out, thought there were just a handful of timezones and the usual select list would suffice:

(more…)

Triggering File Downloads with Mootools

Filed under: Mootools, Tutorials — Tags: , — Nelson @ 6:37 am

Creating a javascript links that uses AJAX (or, more accurately, an asynchronous http request) to trigger a file download, usually results in disappointment. Headers returned by a PHP script called asynchronously do not trigger a download in the browser.

(more…)

March 25, 2009

Mootools Fx.Scroll bug with IE6/IE7

Filed under: Mootools, Tutorials — Tags: , , — Nelson @ 12:08 pm

You may be having trouble getting Fx.Scroll to scroll to the correct coordinates in Microsoft browsers. Apparently Mootools 1.2.1 introduced a new bug that as yet has not been cured by the developers.

There’s a temporary solution posted in this forum that involves a replacement for Fx.Scroll. The author created a class called Fx.Scroll2 that corrects these issues.

(more…)

March 13, 2009

Mootools Function for Limiting Number of Checkboxes Checked

Filed under: Mootools, Tutorials — Tags: , , , , — Nelson @ 1:33 pm

Here’s a handy function for controlling how many boxes can be checked in a group of checkboxes. (more…)

Powered by WordPress