Jquery Plugin to only allow numeric input..

Ok.. so this is my first Jquery Plugin – VERY SIMPLE…

All it does is attach to the keydown of any element it is attached to and look to see if the key being pressed is numeric via a regular expression. Nothing fancy. no periods, no commas, no currency formatting.

Useful for making sure credit card numbers or bank account numbers are being entered correctly in a web page.

(function($) {
    $.fn.PreventNonNumeric = function() {
            function(x) {
                if (x.key.replace(/\D/, "") == ""|| x.key === "Spacebar")
                { x.preventDefault(); }

        return this;
})(jQuery, event);

Attach to an element as




Rebuilding the UMBRACO Undex’s

There is an off chance that your index files in UMBRACO ( umbraco.config ) may become corrupt. If this is the case there is a nice built-in utilitie that can be used to rebuild all the index’s and fix the issues that your site is experiencing.

add the following to your website’s root address “Umbraco/dialogs/republish.aspx?xml=true”

e.g. if the site was http://www.someurl.com you would enter http://www.someurl.com/Umbraco/dialogs/republish.aspx?xml=true

Follow the prompts.

I found myself having to use this to fix a problem where the Dynamic menus were adding nodes that didn’t exist and breaking links on nodes that did.

Quick and easy fix

Well done umbraco team.


CMS Systems.. (UMBRACO)

I have reciently started looking at what i feel to be a superior CMS system that is both intuative and powerfull. It’s name is UMBRACO and is based on the .net framework. To make learning the system easy, they have a great series of video tutorials that will allow a dotnet developer to quickly take advantage of this platform and end users to do much the same.

From the developers perspective after you have loaded the site on your system I would recomend the following videos (free) – it is also worth mentioning that a lot of the videos have tutorial documents that are linked to them at the bottom right hand corner.. These are defniitely worth grabbing as they contain sample code used in the tutorial and can help to jump start understanding.

So.. in order of what makes sense of you are thinking about creating a “Custom” umbraco installation.

(start here - select free to eliminate videos that you cant view – but it is worth getting the full series.. I would just review all the free content before you purchase your subscription..)

  1. http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/building-the-cws-site/creating-the-basic-structure/TVPlayer

PS.. as i work through the tutorials and gain a greater undrstanding this page will get updated (probably quite quickly)


Java Script Libs worth looking at.

Of course you need to start with

JQuery, JQueryUI, JQuery Mobile but there are a number of other libs that are worth keeping an eye on.







Kill “right click” from a webpage with JQuery

This was always a pain with pure javascript, however Jquery has made our lives infinatly easier. Just bind to the “contextmenu” object and kill any action.

return false;