Posts Tagged ‘JavaScript’

AJAX And Sessions

Posted: June 1, 2010 in Software
Tags: , , , ,

I came across an unusual situation in a PHP based shopping cart where the normal page loads would have different session data than the AJAX callbacks. I came up with a simple solution but I don’t really like it because it seems inherently insecure. But I’ll post it here, and let the world decide. The [...]

Debugging JavaScript code in Firefox is easy, but what to do with poor old Internet Explorer? Well here’s your answer. To debug JavaScript in MSIE follow these steps:

After always wondering if it was possible to create private members somehow in JavaScript, I finally took it upon myself to investigate. Due to a concept of ‘closures’ relating a symbol’s scope it is possible to create private class instance members/methods.