V
V
Veronika Stepanovna2017-05-27 03:27:34
JavaScript
Veronika Stepanovna, 2017-05-27 03:27:34

How to write a dynamically appearing navigation bar?

There is a small site, a la technical support. The user in the telegram writes a message to the bot, which he sends to my site. A separate chat is created, and the manager is sitting in it. Through pusher.com, a message flies into the chat with Ajax. At the same time, the backend knows when a new message arrives. If there are more than 15 posts, a simple navigation appears at the bottom of the page, but this requires a page reload. I need that, provided that there are more than 15 messages, this very navigation appears WITHOUT reloading. But I just can't figure out how to do it, because I know very little about JS. We need an algorithm on how to do this, and at the same time, it is desirable not to reinvent the wheel on the server and use standard Laravel tools.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-05-27
@sargss

Count messages arriving by ajax and show navigation when needed.
Bekend can not be touched at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question