Jump to content

So i am creating a ticket system from scratch (i know about ostickets) and have all done apart from a working chat log. Currently the chat log works however doesnt auto refresh when a comment is sent.

<textarea disabled class="form-control" rows="15" name="TicketLog"><?php echo $TicketLog;?></textarea>

This is the current code, the $TicketLog is a return from a sql query. Would it be possible to every 5secs update the contents with the sql query?

 

Here is a look at the view:

 

sFaVYZ3.png

Link to comment
https://linustechtips.com/topic/489871-ajax-textarea-chat-log-auto-refresh/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×