JavaScript: what if nested ‘this’ doesn’t work? | Blinded by the lights
Note: Examples used in that post require usage of prototype.js. Imagine you have a JavaScript class with some features related to the current view. One of the method in that class is supposed to add an observer on all anchors marked with class “delete”. That observer is also defined in this class. In other words,…
AJAX activity indicator | Blinded by the lights
Users are familiar with indications of work performed in background since first versions of MS Windows. Besides being fancy, they are also informative. AJAX, a Web 2.0 technique, aim at exchanging only small amounts of data with a server; this should be performed behind the scenes. If so, why not expose the moments when user…
Using PUT and DELETE methods in AJAX requests with prototype.js | Blinded by the lights
Whenerver I write JavaScript I use prototype.js. I find it brilliant, especially when you deal with AJAX. With this library it’s easy to create an AJAX request and process its response from the server. To send an AJAX request you create a following HTML code: a link … $(‘ahref’).onclick = function() { new Ajax.Request(‘/some_url’, {…
Microsoft JScript runtime error: Object doesn't support this property or method. | Blinded by the lights
Yesterday I spent two hours analyzing this issue, which of course I had only with Internet Explorer… As the background: I wrote a library that would make a table sortable and paginable. I decided to use prototype.js and script.aculo.us. I tried to test the result not only in Firefox which I use by default, but…