Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2020-10

plea for simple code which show text in web page notification area

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mgr. Janusz Chmiel

WEB notification area is being videly used by many modern pages. This approach could be even used to inform user if some question have been answerred correctly with no need to add some text as A first line of textual block or with no need to use windowalerd procedure. The question is, if somebody kind in this mailing list would be so positive and kind and if this human being would have some time to create simple .lpr file which used htmlwidgets unit to display some text in The WEB notification area?
Thank you very very much for yours help.

Reply by email

Michael Van Canneyt
to Mgr. Janusz Chmiel
Mgr. Janusz Chmiel wrote 8 lines
WEB notification area is being videly used by many modern pages. This approach could be even used to inform user if some question have been answerred correctly with no need to add some text as A first line of textual block or with no need to use windowalerd procedure. The question is, if somebody kind in this mailing list would be so positive and kind and if this human being would have some time to create simple .lpr file which used htmlwidgets unit to display some text in The WEB notification area?

Please have a look at the TToastManager component in the bootstrapwidgets unit. It shows a 'notification' also known as a toast. It is demonstrated in the demo program.

To show a notification in the tray area requires
a) user permission
b) a HTTPs server.

See e.g.
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API

so I would advise against using that for simple message display.

Michael.

Reply by email