Solution 10

PHP, Javascript, HTML, CSS, Life.

RSS FeedsFollow me on Twitter!

  • Home
  • About

Something for the Weekend: Slip n Slide

Apr 25th

Posted by Alex in Javascript

No comments

Little bit later than originally planned thanks to our old friend IE, but here she is, the second Something for the Weekend!

This week, my focus has shifted to a slider plugin for jQuery.

I hear the groan; another slider. Well, I hope this one is a little different.

View a Demo

Slip n Slide has a huge list of configuration options so it’s super easy to get it working how you want. It also requires next to no css to work, the plugin takes care of all the structural stuff, leaving you to style as you see fit. The only required style is More >

Javascript, jQuery, sftw, slider

Something for the weekend: Placeholder

Apr 10th

Posted by Alex in Javascript

1 comment

Hoping to make this a fairly regular thing, I’ll try and post little code bits and pieces every other weekend or so. Things like jQuery plugins, maybe some Kohana modules, maybe the odd CSS trick.

I’ve been pretty ill this weekend, but have fished out something from my personal stash you might like; a quick jQuery plugin that aims to replicate the HTML5 attribute “placeholder“.

Dead simple to use, simply include the script, change your input[type=text]’s and textareas to include the placeholder=”" attribute and then do :

$('input[type=text], textarea').placeholder();

In your document ready function ($(function())).

Want it? Head on over to GitHub to download:

Download Placeholder More >
html5, jQuery, placeholder, sftw

Use of ‘Class’ in Javascript

Feb 28th

Posted by Alex in Javascript

No comments

Here’s a quick little tip that I discovered today about Javascript.

I’m currently writing a small in-context help addon for jQuery and wanted to add the option to specify a class name to give a help bubble. I did this using a setting and checked for it like such:

if(settings.class != null)
{
    bubble.addClass(settings.class);
}

This works great in Firefox, Opera, Chrome and even IE but throws an error in Safari.

It took me a while to figure out what was going on but I finally figured out that ‘class’ is a reserved word in Safari Javascript. Changing the code to:

if(settings.classname != null)
{ More >
class, Javascript, safari

New Blog

Feb 28th

Posted by Alex in Life sort of stuff

No comments

Figured that I should become one of the cool kids and get myself a blog set up. I’ll be posting on a potentially semi-regular permanent basis on things web dev, gaming and anything else that crosses my mind. Hope you enjoy.

blog, monkeys, new
    • Popular posts
    • Archives
    • Tags
    • Categories
    • Javascript (3)
      • jQuery (2)
    • Life sort of stuff (1)
    blog class html5 Javascript jQuery monkeys new placeholder safari sftw slider
    • April 2010 (2)
    • February 2010 (2)
    • Something for the weekend: Placeholder (1)
    • New Blog (0)
    • Use of ‘Class’ in Javascript (0)
    • Something for the Weekend: Slip n Slide (0)
  • My Tweets

    Loading tweets...
    Follow me on Twitter!
  • Metaness

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top