08-12-2007, 12:50 PM
[eluser]CI beyond[/eluser]
Hi folks,
In context of some 'live' notification i do an ajaxrequest on page load which in turn will call a function in a CI controller which loops indefinitely, spitting out some data every now and then.
Although this works perfectly with 'normal' php, it seems CI only allows one call at a time. As long as this infinite loop is active, i can't make any other calls to CI stuff. It simply hangs there till i manually kill off the loop.
I can hack around this using some 'normal' php together with CI stuff, but i rather do everything the CI way, so i can keep everything clean.
Is this a known issue or maybe even a config setting? Also, if anyone knows of a better way of doing instant notification about changes on the server i'd be glad to hear it
Thanks in advance!
Hi folks,
In context of some 'live' notification i do an ajaxrequest on page load which in turn will call a function in a CI controller which loops indefinitely, spitting out some data every now and then.
Although this works perfectly with 'normal' php, it seems CI only allows one call at a time. As long as this infinite loop is active, i can't make any other calls to CI stuff. It simply hangs there till i manually kill off the loop.
I can hack around this using some 'normal' php together with CI stuff, but i rather do everything the CI way, so i can keep everything clean.
Is this a known issue or maybe even a config setting? Also, if anyone knows of a better way of doing instant notification about changes on the server i'd be glad to hear it

Thanks in advance!