jQuery

There are 17 entries for the tag jQuery

Responsive Share Buttons using CSS and jQuery

As the bloat of code required to embed various buttons/widgets for sharing continues to increase, maybe you’re looking for something a little subtler for your sharing needs? If so, this may be of interest: Responsive Share Buttons CSS and jQuery. (Surely also this gets a +1 through use of jQuery ) Tags: jQuery

A couple of handy items for your jQuery/ASP.NET toolkit

I’ve recently come across 2 ASP.NET/jQuery related gems on the LavaBlast Software Blog that are worth sharing. Style ASP.NET Web Forms Validators with qTip 2 – I’ve used qTip on a couple of projects/sites, however in those situations it was used somewhat “creatively”. Namely, for rather obtrusive hover-preview popups that were incredibly annoying but actually made sense in the context of the application. However the post above is showing a much better use of qTip, which is form validation. I like this post because I like to use the ASP.NET validators whenever possible, even though (as LavaBlast put...

Juice UI: Open source ASP.NET Web Forms components for jQuery UI widgets

This morning at MVP Summit, Scott Hunter just announced a new open source project fromappendTo called Juice UI. Juice UI is a collection of Web Forms components which make it incredibly easy to leverage jQuery UI widgets in ASP.NET Web Forms applications. You can start using it right away by adding the JuiceUI NuGet package to your app, and you're welcome to go nuts with the source, which is dual licensed under MIT and GPL. Basically this is a version of the AjaxControlToolkit powered by jQuery and jQueryUI. I’m kind of torn on...

Gotchas (and workarounds) with ASP.NET double submit prevention using jQuery

Double submit prevention is one of those things that developers sometimes have a hard time “getting”. It has an obvious fix – JUST CLICK THE BUTTON ONCE! No matter how obvious that fix is for us developers, chances are that at some point you’re going to be asked to go a little further and add code to prevent people from clicking your submit buttons twice – as was the case for me recently, when I had to look at this issue in  2 separate legacy codebases that we were lucky enough to inherit from other dev teams. ...

JavaScript Function Invocation and “this”

Understanding JavaScript Function Invocation and “this” aims to clear up some of the misunderstanding around the semantics of ‘this’ in JavaScript function invocations. If you use jQuery, then you should read the three paragraphs titled ‘On jQuery’, even if you don’t read anything else on the page: Because jQuery makes such heavy use of anonymous callback functions, it uses the call method internally to set the this value of those callbacks to a more useful value. For instance, instead of receiving window as this in all event handlers (as you would without special intervention), jQuery...

jQuery Wildcard Selectors - some simple examples

I wrote about jQuery wildcard selector syntax briefly back in 2009, and since then that post has received a lot of views – way more than a post that brief should ever have seen. After seeing the number of views I did a quick bit of digging, and realised why I was having trouble back then, and possibly why the post has been viewed so often – it seems jQuery 1.3.2 dropped support for inline selector wildcards (i.e. \\S*), and there’s still posts, samples and examples lurking around encouraging people to use this old syntax. What this...

Mobile Development titbits–jQuery Mobile, Appcelerator, and iOS boilerplate

This week has been less than satisfying from a developer’s point of view, and I’ve found myself stuck hanging out with my good buddies Outlook, Word and Excel a lot more than I’d have liked However despite that I’ve still managed to pick up a few useful bits of mobile development information. Allow me to share, if you will.   jQuery mobile – resizing to landscape mode doesn’t work properly. Basically when rotating the device, the windows new size wasn’t quite correct. While it felt like a minor annoyance at first, it quickly became pretty clear it...

jQuery Mobile Beta 3 released

I’ve mentioned jQuery mobile briefly a couple of times over the past couple of weeks, as I’ve got a small work in progress app that I’m chipping away at. One of the first things I was pondering about was the regularity of new releases on the project, and so I’m happy to find that beta 3 was released a couple of days ago. Looking forward to going through the change log when I have a few moments. Tags: jQuery, JavaScript

mockJSON

If you’re using JSON anywhere then you’ll probably find mockJSON pretty interesting. It’s a plugin for jQuery that hijacks JSON and JSONP requests and responds with some randomly generated data that you can define/control via a template. Tags: jQuery, JavaScript

The end for the AjaxControlToolkit?

Is it the end for the AJAX Control Toolkit? I’m not sure as I think there’s always going to be a market for simple declarative ‘pseudo ajax’ additions to the WebForms experience, no matter how bad the markup and JavaScript that they create. So while I can’t see myself using it, a version of the AjaxControlToolkit with some jQuery behind it could be an interesting thing to see. Certainly if there’s going to be sites out there using the ACT it’d be a better world if there was jQuery somewhere in the picture. Watch that space. Tags:...

You down with MVC? Yeah you know me!

I resisted ASP.NET MVC for quite some time. Not intentionally, and not for for any real compelling reason, but for a while WebForms coupled with my version of an MVP implementation was doing its thing pretty nicely, and a few of the WebForms projects I was working on had customers who really had no reason to shift technologies. Whether you’re charging by the hour or working in a fixed price scenario it can be a little hard to justify jumping into new technologies (although at this point you could hardly call MVC ‘new’) without good reason. Having said that,...

Introduction to jQuery templates

If you’ve read anything about the story around Microsoft’s adoption of jQuery then you may of heard mention of jQuery templates. I’ve seen a few older examples of templating approaches using JavaScript before using Microsoft’s Ajax, and while I could easily see the value and appeal it didn’t feel like it was worth switching over to MS Ajax just to use it. As of jQuery version 1.5, templates will be included as part of the core functionality, which says to me that it’s time to get interested and start paying attention, and one of the best way’s to get...

Another useful tablesorter plugin

This timespan parser is a handy addition to your tablesorter toolbox, useful for calendaring / scheduling applications. Tags: jQuery, Web Development

jQuery tablesorter options and useful info

I’ve recently been using a lot of the jQuery tablesorter plugin across many tables containing many different types of data. It’s a great plugin, but occasionally its documentation can be a little lacking in parts. One of the first useful things you might want is the list of inbuilt data types that it handles. Most of the time these will be auto detected, however sometimes you’ll need to specify them manually (either in your jQuery, or by adding some markup to your table header, i.e. <th class="{sorter: false}"> ). Here’s the list of built in data types: ...

A quick jQuery collection

A quick collection of a few jQuery plug-ins and snippets which I’ve found useful over the past couple of weeks. jQuery listmenu plugin - allows you to easily convert a long, hard to navigate list into a compact, easily skimmable 'first-letter' based menuing system. Looks like a slick plug-in if you have the need for something like this. jQuery Style ASP.NET Form Validators – useful styling additions to ASP.NET’s stock validator controls to give you more control over the styling of the warning/error messages. Comes with 2 versions – one with animation, and one without (my preference being...

Mixing ASP.NET Ajax and jQuery

One of my clients has an application which makes extremely heavy use of UpdatePanels.  That’s my way of saying it was “architected” by idiots. It’s okay for me to say that, as they didn’t design it themselves – instead they paid a set of so called experts to do it for them. HINT: when you’re nesting UpdatePanels more than 3-4 levels deep, and using them in repeater templates then you’re doing it wrong. A couple of changes they wanted made were going to be easier done using jQuery, so in it went, however it took a few more tweaks...

jQuery Wildcard Selector Syntax

An application I'm working on at the moment had the need for me to select a group of elements (in this case they're divs) which all contained a common string in their id (in my case, the prefix for the div's id was 'content', so 'contentOne', 'contentTwo', etc). I found a lot of people saying they way to go was to use \\S* as shown in sample One below, however I couldn't get it to work no matter how many variations I tried. I found a few other people who'd had the same problem as me – reassuring, but...