fr3dr1k on October 30th, 2009

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 [...]

  • Share/Bookmark

Continue reading about JavaScript alphabetical sorting (A is less than a)

fr3dr1k on October 30th, 2009

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 [...]

  • Share/Bookmark

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 [...]

  • Share/Bookmark

Continue reading about Mimicking AJAX behaviour with Generic Handler (.ashx) file uploader

fr3dr1k on October 28th, 2009

In recent times, the last year or so, I have come to move away from web forms and move more towards an architecture that involves plain html combined with web services or in some cases generic handlers. I like this approach because it allows me to perfectly control the quality of the HTML that is [...]

  • Share/Bookmark

Continue reading about Uploading files with a generic handler (.ashx)

fr3dr1k on October 24th, 2009

One thing I kinda realised again today is that a website is much like a garden, the care you take with it shows. It applies perfectly to a website, because a website needs constant maintenance. Sure you can use a blog engine like WordPress and get a blog up and running quickly, but it still [...]

  • Share/Bookmark

Continue reading about A website requires dedication

So today I started reading about the Bing API and I got myself an API key and I read through the basic instruction manual, which tells you how to get search results from the web through the Bing REST service. Its pretty straight forward, just get your own key though! But here is some sample [...]

  • Share/Bookmark

Continue reading about Getting search results from Bing REST service and using LINQ to process results

fr3dr1k on October 21st, 2009

Extension methods in C# enable you to extend existing types without having to create a new type. This essentially means that you can take the class String and add methods to it that extends it, and when you create a string those methods become available. You just have to make sure you include the namespace [...]

  • Share/Bookmark

Continue reading about What are extension methods?

fr3dr1k on October 20th, 2009

So you want to use video on your website? Well there are a few options to consider and they all have their distinct advantages and disadvantages. The first thing that you need to understand is that the majority of people, those regular non-techie ones, use browsers that will need some form of plugin, or a [...]

  • Share/Bookmark

Continue reading about Using video on the web – what are your options?

fr3dr1k on October 20th, 2009

C# uses a lot of streams, or at least it seems so in some of the code examples I have looked at. Having said that I felt the need to read up on the Stream class. The stream class is an abstract class and an abstract acts as a type of base class from which [...]

  • Share/Bookmark

Continue reading about C# and streams

fr3dr1k on October 20th, 2009

Those of you who haven’t noticed yet MSDN has changed its look and feel from the frame-based layout to a brand new layout. My first impressions are that it really rocks. Reading the content feels much easier. I would have liked to see some more AJAX. Notably you can also switch to the old classic [...]

  • Share/Bookmark

Continue reading about New look MSDN

Get Adobe Flash playerPlugin by wpburn.com wordpress themes