Joined June 2012
·

Felipe Brandão

Duxus
·
SP, Brazil
·
·
·

Hey, try checking if your $expire parameter is not too small (like a few milliseconds).

never tried that, but its an option!

Usually when i need a "no submit" button I go for onclick='foo();return false' or onclick='return foo()'

Posted to Chrome notification over 1 year ago

Worth saying that this could also be used in webpages, you'll need to add permission handling with: window.webkitNotifications.checkPermission() and window.webkitNotifications.requestPermission().

Note: You must try this using a server request (it won't work with a file:// URL )

A complete example can be found here: http://www.html5rocks.com/en/tutorials/notifications/quick/

regards!

Posted to The single most useful thing in bash over 1 year ago

i think it is a middle term solution between CTRL+R and ZSH!

;)

Posted to OSX .bashrc and .bash_profile over 1 year ago

@amalrik vlw! tks!

Achievements
149 Karma
13,203 Total ProTip Views