Leave a legacy.

giffgaff Should use HTML5

By: 930913 | 10-05-2012 19:32

I was looking through some recent HTML5 specifications (as one does), when I came across a cool feature that giffgaff should use. Text boxes on forms, can be validated from the browser, which will stop people from submitting incorrectly formatted information. 

 

If this were used on the adult content form for the license and passport number, browsers would tell users if it was incorrectly put in, and not let them submit it until they correct it.

 

The Technical Details

Spoiler

Add this attribute to the driving licence text input, and a similar one for the passports.

pattern="^[A-Za-z0-9]{5}\d[0156]\d([0][1-9]|[12]\d|3[01])\d[A-Za-z0-9]{3}[A-Za-z]{2}\d\d$"

Old browsers will ignore it, but newer browsers will make sure that the licence is properly formatted before letting the user submit it.

 This should be just the first steps to giffgaff using HTML5 on their site. Which is better than Lithium. I mean they're still stuck in the stone age of computing >.>

Ps. The agree button is on the left :smileywink:

 

Spoiler

Let's make a list of things to change/add: (Website only, forum is beyond the scope of this idea.)

  • Pattern on license/passport numbers.
  • The most obvious one that I forgot, pointed out by awardle: type email on email textboxes.

 

Comments

by: barishna
on: 29-05-2020 03:57

great idea

by: vijay42924
on: 23-04-2020 11:58

brilliant and supported

by: muddycalhoun
on: 16-02-2020 19:03

This is something that others have suggested, possibly this preceded many that I have seen.

However I think that this is still not the situation even with the new hosting of the forums. Possibly this was opportunity missed

Edited
by: mezeit
on: 08-12-2019 20:03

progress is good

by: bing5582
on: 15-11-2019 14:52

Voted

by: iqbal92307
on: 18-10-2019 13:53

Great idea

by: c55amg2005
on: 18-09-2019 20:19

You've got my vote.

by: p7dwy
on: 18-01-2019 13:48

Very old idea, it should of been well sorted out by now.

by: bethanykelly
on: 18-06-2018 15:58

Marvellous!

by: mikeclubs181040
on: 11-05-2018 16:44

Hello everyone, what a great Idea. I would love to see this implemented.