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