c# - Pnotify database driven alert -


i using pnotify statically , dynamic data now.

i when javascript checks database boolean value(1) display corresponding tables alert.

(only 1 row ever have value of 1 set @ time.)

below id script using statically modify.

<script type="text/javascript">     $(function() {          $.pnotify({             title: 'my note,             text: 'reboot computer',             addclass: 'stack-bar-top',             opacity: '0.89',         });     }); </script>  

 tablenotetification   -------------------------  - id (pk)  - notificationtext  - notificationstatus(boolean 1= active, 0=inactive)  

you provide little , looks did nothing @ accomplish it, here's i'm willing give person tries nothing @ all:

  1. either database information when user refresh page, or call through script method ($.get() example)
  2. soon have data, create new pnotify object or if there's several alerts, stack them using examples plugin website.

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -