What's Wrong With This Code? (#28)

Posted by: K. Scott Allen, on 15 Aug 2011 | View original | Bookmarked: 0 time(s)

Victor Brumble is writing code again, and this time he's writing a jQuery plugin. His plugin makes alert boxes easy, because Victor loves pointless, model dialogs. (function ($) { var settings = { text: 'Thank you for clicking!' }; $.fn.alerter = function (options) { return this.each(function () { if (options) { $.extend(settings, options); } $(this).click(function () { alert(settings.text); ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: JavaScript | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 346 | Hits: 44

Similar Posts

  • A [WP7] Code Project for CodeProject more
  • What's Wrong With This Code? (#29) more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD