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 [...]
Posts Tagged ‘JavaScript’
Debugging JavaScript With IE
Posted: October 30, 2008 in EngineeringTags: Debugging, IE, Internet Explorer, JavaScript, MSIE, Web Development
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:
Private JavaScript class members
Posted: June 2, 2008 in EngineeringTags: Closures, JavaScript, Private members, Web Development
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.