Friday, June 4, 2010

Wrap my little head around MVC and JQuery

Went to the code camp in Portland this year. Attended a MVC session. The instructor was really great. However during the session, I couldn't stop but wonder – “does MVC brings us back to the old programming world, where we only had ASP scripting language, and JavaScript to do all the magic for us?” Confirmed by the instructor that - in the MVC world, AJAX toolkit is gone gone, page cycles are gone too. There is no page behind code. However, the control looks close enough as code-behind for me, even though the instructor said it is not. For AJAX, well you can still use JQuery, which is what? Duh, JavaScript. Will research on about MVC to understand why people become fan of it...

The same instructor also gave a very informative session about JQuery. JQuery is nice. Now you can forget about the getElementByID() to retrieve object one by one. With a few line of code, you can do so much now. Nice and short! Here is a nice JQuery cheat sheet for easy access later...

Finally, I realized why this same instructor taught both sessions. MVC needs JQuery to do AJAX. ;)