[TYPO3-english] Simple chat on extbase. How to get messages without reload page?

Mikel lists at con-version.com
Mon Oct 23 10:58:59 CEST 2017


Hi Dmitry,

You have to develop that also by JavaScript or implement a push service.

In TYPO3, you need to develop an action, which returns the messages from a single chat.
In JavaScript, you need to develop the logic, which gets this messages by an Ajax request. E.g. with a JS timeout.

That would be the basic version, as you have to make your request for new chat messages by a JS timeout, which is not an ideal solution.
For a more prossessional solution, you can implement a PHP push service. E.g. Scaledrone or Pusher. With such a service, you can trigger the procedure, after a message was submitted to the server.

Hope, that helps to point you in the right direction…

Mikel



> Am 22.10.2017 um 17:58 schrieb Dmitry <dmitry at typo3.ru.net>:
> 
> I'm doing an extension for a simple chat on extbase. For sending message I'm using ajax request with pagetype like
> 
> <!-- Here showing new messages -->
> <div class="comments"></div>
> 
> <!-- Form for send message -->
> <f:form pageType="1337"	class="ajaxpost"...
> 
> As a result everything works fine. Sender can post messages without reloading page. But how make to sender can read messages from recipient without reload page. Or if I know what I have new mesage, page must be reload? Any idea or direction.
> -- 
> Kind regards,
> Dmitry Vasilev
> www: http://typo3.ru.net/
> Skype: thule-varahi;
> Phone: +7 950 001 85 15 _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list