php - Trigger HTML5 notification when new Wordpress post published -
i want trigger notification appear in bottom of user's screen when publish new post on wordpress blog (for committed readers!).
edit: forgot say, need c2 lines of post text appear in notification!
i've read on notifications in html5 api. e.g.: http://www.html5rocks.com/en/tutorials/notifications/quick/
i understand previous post on se javascript (or client side in general) needs passed notification server side. can web app give desktop notification
i can add filter action in wordpress when post published, using plugin. http://codex.wordpress.org/plugin_api#create_an_action_function
then think plugin needs pass variable javascript script, can picked html5 api. https://wordpress.stackexchange.com/questions/50770/add-javascript-when-post-is-published
if can me connect dots on this, , lay out step step how work, appreciated! thanks
(ps apart wordpress, none of tech choices above mandatory)
use information https://wordpress.stackexchange.com/questions/50770/add-javascript-when-post-is-published provided instead of doing alert() in notice.js example trigger message jquery. there notification plugins use minimal coding: http://webtoolkit4.me/2009/08/13/jquery-growl-likenotification-systems/.
Comments
Post a Comment