Autoload content in |
Hi Everyone
I want to know how to auto update web content without refresh page + without using ajax. something like http://www.espncricinfo.com/ When match start this website provide a live data without refresh site on score board. This one possible in codeigniter. Thanks.
i know through ajax and javascript but it's generate many of request to the server.
Any Better Way, Please suggest me. (02-09-2016, 08:13 PM)Dolar Wrote: i know through ajax and javascript but it's generate many of request to the server. I have in some cases preloaded content into hidden divs when a page loads, and then use JS to display it when triggered by some event. If you are opposed to this, then ajax or flash are the only other ways. Preloading hidden content is actually extremely useful, and has a better user experience because there is no lag time associated with the ajax request/response.
Hi,
I have never tried this myself but the HTML5 Server Sent Event might be of interest to you: http://www.w3schools.com/HTML/html5_serv...events.asp http://www.html5rocks.com/en/tutorials/e...ce/basics/ Although it appears poorly supported, looks really interesting for dashboard live data feeds etc. When I get some time I might have a play but the sample I tried to view didn't work :-( Paul. (02-10-2016, 11:15 AM)PaulD Wrote: Hi, Thanks PaulD It's same as i want. thanks Very Much
02-10-2016, 10:38 PM
(This post was last modified: 02-10-2016, 10:41 PM by ivantcholakov. Edit Reason: grammar )
If you are interested in WebSockets, see this library https://github.com/ratchetphp/Ratchet
I haven't tried it yet. |
Welcome Guest, Not a member yet? Register Sign In |