Sunday, November 25, 2012

iOS drop down list bug/fix


Remember when IE used to misbehave with select boxes on html forms? No, I'd forgotten long ago as well. Anyway, it used to be the case that IE users could select all options in drop down lists, even the ones that had been marked as disabled.


<option disabled="disabled" value="big_one">Big One (out of stock)</option>


So, the above option could be selected in IE (but not in well behaved browsers). IE8 and later browsers no longer mess you around with forms in this way, so the problem has all but disappeared... but...

...along comes the iPhone and the problem returns, but this time it's worse! Now, on iOS devices, the disabled options can be wrongly selected, but result in no value being sent for that drop down list at all. Of course, a bit of validation will stop these empty values, but it's better for the user if you can stop them selecting the disabled options at all. What I've decided to do, is simply remove the disabled options for browsers that wrongly allow them to be selected.


var forms = {
    start: function() {
        // disabled options can be selected in iOS and old IE, so remove them
        if ( navigator.platform.match(/^(iPhone|iPad|iPod)$/) || ($.browser.msie && parseFloat($.browser.version) < 8) ) {
            $('select optgroup[disabled]').remove();
            $('select option[disabled]').remove();
        }
    }
}
$(forms.start);


You may decide to do this server side, rather than lean on jQuery.


Monday, December 14, 2009

Wednesday, October 14, 2009

Flip : random nice bits from the @cycleshow

Download now or watch on posterous
nice_bits.m4v (17667 KB)

Monochrome £200 BMX from Ruption

Lugs and lushness ahoy from Demon

Capo wisely back in raw finish

Monochrome Evil scribblings

Kinesis and Cannondale forks

Tuesday, October 13, 2009

Sunday, September 13, 2009

Monday, June 08, 2009

"Red Red Rose" #musicmonday Help make the video

The Track:

Red Red Rose by Hope And Social  
Download now or listen on posterous
08 Red Red Rose.mp3 (13904 KB)


Help make the Video:
 
http://www.hopeandsocial.com/redRedRose_video
 
 
The lyrics:
 
At ten past eight,
I'm leaving home,
We'll drive along the bypass 'til we find that road.
The coastal road,
To somewhere new,
Where they don't treat the drink they drink as something they should cling on to.
 
At ten past nine,
I'll take that flight,
And yes we're looking older now but you live this way you're bound to.
We'll wave goodbye,
To all that grey,
But at least a climate where the seasons mark out with distinctive change.
 
And tomorrow am,
We'll start anew,
In a village where the people there can talk about religious views,
Without the need,
Of laws in reams.
Or the worry that the words you use will light some all engulfing fuse.
 
The blue skies the green fields i keep them all in here...
The blue skies the green fields i keep them all in here...
The blue skies the green fields i keep them all in here...
The blue skies the green fields i keep them all in here...
 
And tomorrow am,
In somewhere new,
In a different place you feel the weight of everything you've been through.
So I've got to change,
I need to change,
Cos I don't talk to you no more without the need of fear or rage.
 
The speeches, the anthem, the law with no momentum; I cannot give myself to you.
We're so much older now we need a new home town, a place that we can call our own.
And doll you're proof enough that people are some good they just need space where they can grow.
With speeches and anthems the shape and size of this one, they just need space where they can grow.
 
The blue skies the green fields i keep them all in here...
The blue skies the green fields i keep them all in here...
The blue skies the green fields i keep them all in here...
The blue skies the green fields I'm tired of keeping them in here..

Thursday, May 07, 2009

Robots Save Lives


Robots Save Lives, originally uploaded by Kelvin Owers.

4 years on, and the T-shirt now fits!

Thursday, April 30, 2009

XCracer report : World Cup rd2 : Kate Potter


Begin forwarded message:

From: Kate Potter <kate@aquickrelease.com>
Date: 30 April 2009 16:01:54 BST
To: Cy Turner - Cotic <cy@cotic.co.uk>
Cc: Kelvin Owers <kelvin@spittingcat.com>, "Griffin, Andrew" <andrew_griffin@trekbikes.com>
Subject: media

Hi Guys,
 
Check me out on a world class drop http://www.xcracer.com/content.php?pid=2572   :)
 
Cheerios
KPxo

A Quick Release Holidays
Tel: 0845 1304824

http://www.aquickrelease.com

Friday, April 24, 2009

Cotic Soda World Cup


Begin forwarded message:

From: Kate Potter <kate@aquickrelease.com>
Date: 24 April 2009 17:57:49 BDT
To: Cy Turner - Cotic <cy@cotic.co.uk>
Cc: Kelvin Owers <kelvin@spittingcat.com>
Subject: photos of soda

Hi Guys,
 
Photos of new bike.......Let's call it AWESOME!!!!!!!
 
Neil has also changed my position big time, and there is more gap between seat height and bars, so I feel like I'm in more of a racier position.
 
There have been plenty of 'oohs and ahhhhs' as it looks very nice.
 
I have had loads of people already come up and take photos of it and look closely at it.
 
It is much quicker through the single track, and around the bends, and I lost control a few times, as I'm not used to how agile it is. I was tired yesterday and kept going off line because it was taking me by surprise. I rode it again today and had to do two laps at race pace.....I love it!!!!
 
Anyway will get more pics to you soon.
 
Cheerios
KPxo
 

A Quick Release Holidays
Tel: 0845 1304824

http://www.aquickrelease.com

See and download the full gallery on posterous

Posted via email from spittingcat's posterous

Friday, January 23, 2009

Little Boots : Stuck On Repeat

Little Boots

The radio length edit of this was a free iTunes track recently, and being late to the game I've only just discovered the fantastic 12" version posted on Pitchfork. Get it, and then, once you're hooked check out the new EP on the UK iTunes store. Don't start looking at her YouTube videos though, she makes it all look so easy.