Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter, refreshing view for all clients

(This post was last modified: 11-30-2022, 12:24 AM by DunogRamers.)

There is my problem. My project is using CodeIgniter.

I'm working on a game, during this phase, the player must choose a music. He got a form to send the URL. Other player have to wait him, and I want to refresh view for everyone when the player has sent the music.

I did first a JS function which refresh every second the page, the problem is if the player write something in the form it will refresh for him too.

Is it possible to do something like that with CodeIgniter ?

function auto_refresh_test_refresh(){
        $( "#test_refresh" ).load(window.location.href + " #test_refresh" );
This is my JS function echatspin echatrandom with the problem.

Thanks for your help !!

Theme © iAndrew 2016 - Forum software by © MyBB