こんにちは私は、スタックオーバーフローに表示される通知ヘッダーと同様の動作を作成するjqueryプラグインを知っている人がいるかどうか疑問に思っていました。要素を隠して表示する方法を理解していますが、トグルステータスをサイト全体で永続化する方法はわかりません。私は基本的には、誰かがそれを閉じてから別のページに行くと通知が表示されないように、スクリプトにクッキーを追加する方法です。Persistant notification
0
A
答えて
2
jQuery Cookie pluginを使用して、通知メッセージが表示されたかどうかの値を読み書きすることもできます。
1
私はあまりWeb UIの人ではありませんが、通知の「閉じる」ボタンをクリックするとAJAXリクエストがサーバーに返され、通知がクリアされたことが伝えられます。 (あなたが何かをするためにそのリクエストの結果を使用するかどうかは、あなた次第です。あなたがやりたいことがたくさんあるとは想像もできません。その間に新しいものが登場した場合)
基本的にユーザーを表示するための「現在の通知」の一覧を保持し、ユーザーがUIから削除するときに削除します。
関連する問題
- 1. android multiple notification
- 2. Rails App Notificationプラグイン
- 3. Apple Push Notification Bulk
- 4. Facebook counter notification vanish
- 5. android list contents notification
- 6. Soundpool onloadcomplete notification
- 7. Apple Push Notificationサービス
- 8. Apple Push Notificationサービスアイドルタイムアウト
- 9. Push Notification in android c2dm
- 10. Android - EditText on status notification
- 11. Java APNS(Apple Push Notification Service)エラー
- 12. Android Notification PendingIntentのクリア方法
- 13. Amazon SNS(Simple Notification Service)Perlライブラリ
- 14. は、Apple Push Notificationサービスに
- 15. Apple Push Notification Service with Python
- 16. Apple push notification one app more subdomains
- 17. Notification、PendingIntent、Intent Flagsの問題
- 18. Apple Push Notificationサービス統計(apns)
- 19. rest api design - > email notification
- 20. Android-status bar notification with progress bar
- 21. android deplayed notificationすぐに作業する
- 22. アップルについてEnhanced notification format
- 23. laravel-push-notification返信本体のhtmlタグ
- 24. CORBA Notification Serviceの適用方法は?
- 25. django-notification emit_notices余分なSQLクエリ?
- 26. JavaでApple Push Notificationサービスを実装するのに役立つ
- 27. JavaによるApple Push Notification ServerとのSSLハンドシェイク
- 28. Azure NotificationハブiOSテンプレートがバッジフィールドを受け入れない?
- 29. iPhoneアプリからApple Push Notificationをテストする方法は?
- 30. ルビーのWindows Phone 8用Microsoft Push Notificationサービスに接続