Posts Tagged ‘debugging’

“This Page Contains Both Secure and Non-Secure Items”

By David Pratt / Tags: , , / 2 Comments » / Published: 24-11-09

When you get this message on a webpage, you might be needing a protocol-independent absolute path that switches between HTTP and HTTPS.

Debugging JavaScript the easy way

By David Pratt / Tags: , / 1 Comment » / Published: 21-11-09

A function that tests for the existence of the console.log method, and if it doesn’t exist, instead calls alert(). Handy when you’re testing in different browsers that don’t all have Firebug installed.