A jQuery plugin to check if anything has changed in any form on a page, and warn the user before leaving the page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* @license ChangePolling | |
* Copyright © 2012 Joel Purra <http://joelpurra.se/> | |
* Released under MIT, BSD and GPL license. Comply with at least one. | |
* | |
* A jQuery plugin to check if the value has changed in an input/select/textarea | |
* without relying on the jQuery .change() event. This is perfomed using polling | |
* at a configurable interval, which will then trigger the .change() event. | |
*/ | |
// https://gist.github.com/2944926 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace JoelPurra.Web.Binders | |
{ | |
using System; | |
using System.Diagnostics.Contracts; | |
using System.Linq; | |
using System.Web.Mvc; | |
using rDoing.Scraper.Web.Mvc.Controllers.ViewModels.Binder.Helpers; | |
/// <remarks> | |
/// Based on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------- | |
// <copyright file="MvcScriptHelper.cs" company="The Swedish Post and Telecom Authority (PTS)"> | |
// Copyright (c) 2011, 2012 The Swedish Post and Telecom Authority (PTS) | |
// Developed for PTS by Joel Purra <http://joelpurra.se/> | |
// Released under the BSD license. | |
// </copyright> | |
//----------------------------------------------------------------------- | |
// https://gist.github.com/2398969 | |
namespace JoelPurra.Web.Helpers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------- | |
// <copyright file="MvcAnnotationHelper.cs" company="The Swedish Post and Telecom Authority (PTS)"> | |
// Copyright (c) 2011, 2012 The Swedish Post and Telecom Authority (PTS) | |
// Developed for PTS by Joel Purra <http://joelpurra.se/> | |
// Released under the BSD license. | |
// </copyright> | |
//----------------------------------------------------------------------- | |
// https://gist.github.com/2398934 | |
namespace JoelPurra.Web.Helpers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../jquery-1.7.js" /> | |
/// <reference path="../jquery.validate.js" /> | |
/// <reference path="../jquery.validate.unobtrusive.js" /> | |
// Originally by XHalent, @xhalent | |
// http://xhalent.wordpress.com/ | |
// http://xhalent.wordpress.com/2011/01/24/applying-unobtrusive-validation-to-dynamic-content/ | |
// Modified by Joel Purra | |
// http://joelpurra.com/ |
A jQuery plugin to clean input fields with common functionality, like trim, normalize whitespace, digits only. It is also easily extensible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------- | |
// <copyright file="UriCssHelper.cs" company="The Swedish Post and Telecom Authority (PTS)"> | |
// Copyright (c) 2011, 2012 The Swedish Post and Telecom Authority (PTS) | |
// Developed for PTS by Joel Purra <http://joelpurra.se/> | |
// Released under the BSD license. | |
// </copyright> | |
//----------------------------------------------------------------------- | |
// https://gist.github.com/2253509 | |
namespace JoelPurra.Web.Helpers |
NewerOlder