Tags Archive

Displaying posts with tag: Javascript

Running jQuery in Windows 8 apps

I wrote a jQuery wrapper for the native WinJS library that is both light-weight and fast.Read the full article here: http://practicaljs.com/jquery-wrapper-for-winjs/

Javascript Querystring Parameters

Javascript Querystring Parameters

Hi all, just wrote up a javascript object to parse url parameters. You can take parameters out of the querystring or the url hash.Usage//assuming http://www.example.com/index/?foo=bar&baz=baa#test=trueurl.href; //returns http://www.example.com/index/?foo=bar&baz=baa#test=trueurl.path //return /index/?foo=bar&baz=baa#test=trueurl.get('foo'); //returns 'bar'url.get('test'); //returns trueScriptvar url = (function(){ var _href = location.href; var _path = location.pathname; var _qs = location.search.replace(/\?/, ''); var _hash = location.hash.replace(/\#/, ''); var _parse = function(string){ var params = string.split('&'); var holder = ; for(var Read More

Simplified Interface to HTML5 local storage

Simplified Interface to HTML5 local storage

Documentation & Sandbox: http://rmcvey.github.com/jsper Cart example: http://rmcvey.github.com/jsper/cart_example.htmlI decided it was time to dive into the HTML5 local storage API the other night, knowing that it has a lot of potential. There are a few problems inherent to using it, the biggest problem being lack of support in older browsers (and to a lesser degree that Read More

Geocoding with Google Maps and the Zend Framework

Geocoding with Google Maps and the Zend Framework

Download Example Files : Zip RAR Maps are a great way to engage your users and visualize data, but it can be a little tricky to setup. Here I will walk you through the steps needed to get a map up and running. //Sign Up Apply for a Google Maps API Key (free) here using your domain without Read More

jQuery Tabs Keyboard Shortcuts

jQuery Tabs Keyboard Shortcuts

I have integrated jQuery's UI tabs into a number of my projects and have had to significantly modify the code to achieve some goals (like being able to easily add and remove tabs. One of the simpler thing I have done with the tabbed interface is let users navigate them using keyboard shortcuts. Here is Read More

Actionscript 2.0: Centered Popup Window

Actionscript 2.0: Centered Popup Window

At some point we all need a centered popup windows. Here is a useful Actionscript 2.0 function to help get a popup window, that allows for some customization based on input parameters. Check the actual implementation at the bottom. It is also worth mentioning here, that no AS popup script will work in local testing Read More

jQuery Form Validation: theory and practice

jQuery Form Validation: theory and practice

jQuery makes it very easy to validate forms. There are a number of useful plugins, the most prominent being validate. If you are wanting something very lightweight or are just interested in how something like this works, read on. The $.each function allows you to iterate over collections in jQuery, it is really one of Read More