Geeks With Blogs

News Google

Nick Harrison Blog<Nick>.Next() jQuery
Reviewing Syncfusion: jQuery Succinctly
The nice folks at Syncfusion reached out to me last week to tell me a little bit about their Succinctly series of books. As they describe the concept, their goal is take 500+ pages of content and distill it down to 100 pages of essentials. I was intrigued but apprehensive with visions of “For Dummies” books running through my head. So I looked through their offerings and decide to check out a topic that I am already somewhat familiar with. I downloaded jQuery Succinctly to examine. I was pleasantly ......

Posted On Monday, February 25, 2013 12:53 PM

jQuery snippet to make fieldsets collapsible
I often will put stuff like report filters or control break groups inside fieldsets.Its also nice to group related input fields. This snippet will automatically wire up event handlers to allow you to show and hide the contents of the fieldset when the user clicks on the legend.$(document).ready(fu... () { $('legend').click(function () { var $this = $(this); var parent = $this.parent(); var contents = parent.contents().not(this); if (contents.length > 0) { $this.data("contents", contents.remove()); ......

Posted On Tuesday, January 15, 2013 4:04 PM

Easily Add a Table of Contents to Any Web Page with jQuery
This snippet will add a list of links to every named anchor in your web page. Each link will have an associated click event handler to animate scrolling to that section. I hope you find this useful. First we build up our links. We use a jQury selector to find all of the anchor tags with a name attribute: var toc = ""; $("a[name]").each(function (index, e) { toc += "<li><a href='#' onclick=\"scrollToAnchor('" +$(e).prop("name")+"')\">" + $(e).prop("name") + "</li>"; }); If you are ......

Posted On Friday, January 11, 2013 9:18 AM

Copyright © Nick Harrison | Powered by: GeeksWithBlogs.net