10
Aug/09
0

Viewing page source after JS/AJAX changes

Ever needed to look at the source of a web page after it has been modified via JS/AJAX? In most browsers, viewing source on the page will show you the HTML as it was downloaded from the server before any changes were made “scriptually” . To view the source of the page as it is being currently displayed do the following:

27
Jul/09
0

Starting XNA Game Development

I’ve had a Wii for a while now have amassed quite a few games. My favourite title by fae would have to be Mario Galaxy. But lately I have been finding myself craving games that aren’t so “cutesy”.

9
Mar/08
0

Javascript Essentials

Looking into creating my own ASP.Net Control Extenders (like in the Ajax Control Toolkit), I found myself having to brush up on my Javascript. So here is a quick revision of what I (and maybe you too) need to remember.

Function declaration:

function SayHelloTo(nameStr) {

document.write('Hello ' + nameStr);

}

Function with return statement:

function add(x, y) {

return x + y;
7
Mar/08
0

Windows Forms Fade in and Fade out Extension Methods

Following is some code I had to write the other day to fade a Windows Forms Form in and out of view. I have implemented the methods FadeIn and FadeOut as extension methods on the System.Windows.Forms.Form class. To use this, simply import the namespace that you copy the class FormExtensions into into the code file of your form. And then call the methods FadeIn and FadeOut as required. Happy Fading :)

using System.Windows.Forms;

///
/// Contains methods to extend System.Windows.Forms.Form to have the ability to fade in and fade out
///
public static class FormExtensions
{
    ///
    /// Fade the form in
    ///
    ///
    public static void FadeIn(this Form form, int seconds)
    {