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:
- either database information when user refresh page, or call through script method (
$.get()example) - soon have data, create new
pnotifyobject or if there's several alerts, stack them using examples plugin website.
Comments
Post a Comment