こんにちは私は、スタックオーバーフローに表示される通知ヘッダーと同様の動作を作成するjqueryプラグインを知っている人がいるかどうか疑問に思っていました。要素を隠して表示する方法を理解していますが、トグルステータスをサイト全体で永続化する方法はわかりません。私は基本的には、誰かがそれを閉じてから別のページに行くと通知が表示されないように、スクリプトにクッキーを追加する方法です。Persistant notification
0
A
答えて
2
jQuery Cookie pluginを使用して、通知メッセージが表示されたかどうかの値を読み書きすることもできます。
1
私はあまりWeb UIの人ではありませんが、通知の「閉じる」ボタンをクリックするとAJAXリクエストがサーバーに返され、通知がクリアされたことが伝えられます。 (あなたが何かをするためにそのリクエストの結果を使用するかどうかは、あなた次第です。あなたがやりたいことがたくさんあるとは想像もできません。その間に新しいものが登場した場合)
基本的にユーザーを表示するための「現在の通知」の一覧を保持し、ユーザーがUIから削除するときに削除します。
関連する問題
- 1. Persistant UDID alternate
- 2. android multiple notification
- 3. Apple Push Notificationサービス
- 4. Facebook counter notification vanish
- 5. Apple Push Notificationサービスアイドルタイムアウト
- 6. Rails App Notificationプラグイン
- 7. Apple Push Notification Bulk
- 8. Soundpool onloadcomplete notification
- 9. Azure Notificationハブエラー401
- 10. Drools 6 Fusion Notification
- 11. android list contents notification
- 12. NS Notification Confused Swift 3
- 13. セットアップlaravel-notification-channels/webpush
- 14. Android - EditText on status notification
- 15. c#windows 10 permanent notification
- 16. laravel notification slack channel webkook
- 17. Firebase Notification Swift 3 SecondViewController
- 18. Push Notification in android c2dm
- 19. は、Apple Push Notificationサービスに
- 20. C#Android Push NotificationのFCM
- 21. Firebase Auth/Notificationリアルタイムデータベースとデータストレージ
- 22. GCM Notification Receiver for Android SDK
- 23. Amazon SNS(Simple Notification Service)Perlライブラリ
- 24. Android Notification PendingIntentのクリア方法
- 25. Android-status bar notification with progress bar
- 26. Apple Push Notification Development in Objective-C
- 27. Apple Push Notificationサービス統計(apns)
- 28. mysql/notificationスクリプトの問題
- 29. Apple Push Notification Service with Python
- 30. rest api design - > email notification