Ajax is not new, its not revolutionary, but it has changed the way I view web development. Javascript no longer comes as a might-have, instead it comes as a critical part of any website application. These days I use JavaScript as the UI scripting tool of choice, and I try to steer away from doing [...]
Microsoft come in for a lot of flack from the OSS world and the Mac users think they are better than everyone else when it comes to software. But I was surprised again today by how good Windows Live Writer integrates with my WordPress Blog, to such an extent that I will in all probability [...]
After following a link from Kevin Dente to a twitter client called Mixero and installing it I thought I would just list my 2 favourite Twitter clients, why I like them and what I dont like. First of all to those who do not see or understand the value of Twitter, its NOT Facebook and [...]
Yesterday I was busy with HTML to PDF conversion and for this I used the HTML Agility Pack. Everything worked great, except it seemed IE and FF/Chrome render different HTML. So today I took some fairly straightforward HTML and pushed it through HTMLAgility: New Website Under Construction And if I use this code to loop [...]
Continue reading about Interesting code with HtmlAgilityPack
Today I had this scenario where I wanted to post items from multiple HTML input elements to a generic handler (.ashx) file without using the action attribute of the form. Specifying the action meant that that you are navigated away from the page where the action is happening, which means re-creating UI logic. How did [...]
Continue reading about Getting POST values with an ASHX file
So A < a, which means if you use the sort() function and your array contains elements starting with upper and lowercase then the uppercase will appear first, i.e.: Art, ASP.NET, LawDeed, LINQ will appear as: ASP.NET Art LawDeed LINQ To get this working correctly you need the following function: charOrdA: function(a, b) { a [...]
Continue reading about JavaScript alphabetical sorting (A is less than a)
JQuery, prototype, scriptalicious, moo tools and Microsoft Ajax are all JavaScript libraries that encapsulate common functionality, or rather commonly repeated tasks, into a re-usable form. One such example is accessing DOM elements. Usually you would type document.getElementById to get to a div element for example, which also implies for each element you access you have [...]
Continue reading about Choosing a JavaScript library/strategy
Earlier today I posted a blog about using a generic handler (.ashx) to upload a file to a web server, and in the back of my head I wanted to use it somewhere neat and special, and I also want to find the most reliable and working version. And I also want to learn what [...]
Continue reading about Mimicking AJAX behaviour with Generic Handler (.ashx) file uploader
One of the things that are quite weird to get use to, from a C# developer’s perspective, is JavaScript’s prototypical nature. Check out this basic example: var objXMLHTTP = { getXMLHTTPObject: function(url,elementName) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else if (window.ActiveXObject) { // code [...]
Continue reading about Getting to understand JavaScripts prototypal nature
I mean really, the performance sucks! The Firebug add-on is a 600Kb+ download and it feels as if it really, really slows it down. I have for a while now switched over to Google Chrome, because it is such a fast and responsive browser. I have found one or two issues when using Facebook with [...]