Writing JavaScript specific CSS

Posted on Wed 22 April 2009 in JavaScript • Tagged with css, javascriptLeave a comment

In your html template or page add a nojs class to your html node and a script tag in the head section below your title changing the className to js:

In this very simple example all of your non-javascript users would see links with a class of myclass as red ...

Continue reading

Prevent double submit with jQuery

Posted on Tue 16 September 2008 in jQuery • Tagged with javascript, jquery, submitLeave a comment

Another great "little" solution with jQuery. Needed a simple way to protect all the forms on our site from being double submitted. There was an attempted solution in place on our app, that added an onsubmit to every form with a function above it called ignoreDoubleSubmit that tried to trap ...

Continue reading

Suckerfish DHTML dropdown menu with JQuery

Posted on Thu 21 February 2008 in jQuery • Tagged with javascript, jquery, suckerfishLeave a comment

DHTML dropdown menu's have been greatly improved in terms of accessibility, standards compliance, and weight using the Suckerfish technique of building pure CSS-based menus and then attaching a small javascript that allows Internet Explorer 6 to mimic the CSS hover method. Once the die-hards hanging onto IE6 let go ...

Continue reading