Mulled wine! And BEER!

Home

Mulled wine! And BEER!

Oct312007
Recommended / related

Barbecue tomorrow with added booze, to wash away the pain of this javascript...

This one's mostly for Dean, I know he likes to hear about how hard we're working at work. We're having another one of our fun days tomorrow, one last barbecue to celebrate a big deal working out, and everyone working hard to make it happen. Also, you would have to say that it's pretty much the end of the summer now. It's dark outside now but I'm sure it was quite a nice day, but hey just the fact that it's DARK at this time tells you that not even global warming can stop us slipping into winter. We were already told that there would be mulled wine tomorrow at the barbie, and an excess of puddings, but even better I just saw someone wheeling a barrel of beer through the office. Happy halloween everyone.

This one's not so much for Dean, it is an annoying programming thing that I've just sort of worked out. Been having an issue today where a really simple javascript thing was failing, on Safari only. I just wanted to trigger an onclick event on a link, make as if someone had clicked a link if something happened. I'm using jQuery so I ought to be able to do just

$(this).click()

and that works fine, but not in Safari (the shit Mac browser that people use by default at work)... This is how I'm getting around it, but I shouldn't have to do this, should I?

if ( $.browser.safari ) { eval( $( this ).attr( 'onclick' )) } else { $( this ).click() }

:: :: Comment / reply

Paul Clarke's blog - I live and work near Folkestone. Married to Clare and father to Harry, I am a web dev, and I like javascript, PHP, Folkestone Gerald, pubs, restaurants, history, genealogy, TV, music, popbitch, squirrels, pirates ☠, time travel, stained glass...

Also from the same week

Some more blog posts from the same week as .

Wahey, thankyou! [Monday 29 October 2007]

Splendid weekended [Monday 29 October 2007]

Double history [Tuesday 30 October 2007]

And a Folkestone property update Surely this is worth DOUBLE that..? Maybe not. [Tuesday 30 October 2007]

Mulled wine! And BEER! Barbecue tomorrow with added booze, to wash away the pain of this javascript... [Wednesday 31 October 2007]

10 myths about vegans [Thursday 1 November 2007]

John Lewis Bergerac Oak TV Stand [Friday 2 November 2007]

RE: 10 myths about vegans [Friday 2 November 2007]

vegetarians are scum! [Friday 2 November 2007]

RE: vegetarians are scum! [Friday 2 November 2007]

I don't even know why I said it, a bit of Friday afternoon frivolity is all [Friday 2 November 2007]

TFI The Weekend [Saturday 27 October 2007]

RE: TFI The Weekend [Saturday 27 October 2007]

RE: I don't even know why I said it, a bit of Friday afternoon frivolity is all [Tuesday 6 November 2007]