Bill Robertson's Blog

August NDDNUG Advanced Javascript Presentation

I had a great time presenting an advanced javascript and MS Ajax at the North Dallas .NET User Group.  Attached is the slide deck and code samples I used.  I know...I didn't clean up the project files so there are some extra dll's included.

The code samples are located at /Default.aspx and they run in increasing complexity.

The code samples include:
  • Ajax Helper - Helper class for registering client side script to work with MS Ajax, including the powerful RenderUserControl method.
  • Object pattern - This includes a javascript singleton pattern, namespaces, constructors, inheritance, static and instance methods.
  • Event Modal - Two different patterns for event handling in javascript, with a focus on my preference Event Level 0, inline function declarations.
  • JSProcessor - This will combine multiple JS files into one and will remove excess spacing, comments to make the raw JS as small as possible.
  • JSShortCircuiter - For reaching around the embed scripts when in debug mode so you don't have to constantly rebuild the dlls.
There are many examples of client side caching, retrieving html from server, getting and saving Server Side objects.

There was more interest than I thought on the client side ThreadPool object, so I've included that.  It isn't functional as it stands because there are some other frameworks it relies on.  Send me a message or post in the comments if there is interest for me to make this object standalone and only require the .net framework and I'll work towards that.

Also, if there is any interest I can release a ajax back button module.  It is different from the MS Ajax one in that it is delegate based rather than serialized querystrings.

Hit me with any feedback or questions you have on the presentation or the code.

Thanks!

download

Comments

Ryhow said:

Thanks Bill! Definitely going to download this!

# August 8, 2008 2:56 PM

CS said:

Thanks Bill.  The download link is not working though.

# August 11, 2008 7:09 AM

RJ said:

*Broken download link - 404

Bill your presentation was great!  I'd love to download the code.... thanks

# August 13, 2008 8:42 AM

Blake Niemyjski said:

awesome :D

# August 18, 2008 8:47 AM

John Taylor said:

Thanks for taking the time to give us an excellent technical presentation.  I have downloaded your materials, and will use them to augment your lecture.

# September 8, 2008 1:03 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)