Welcome Guest, Not a member yet? Register   Sign In
Autoload content in
#1

(This post was last modified: 02-09-2016, 07:43 AM by Dolar.)

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.
Reply
#2

(This post was last modified: 02-09-2016, 10:52 AM by InsiteFX.)

jQuery - You have to use javascript to do that.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Can't happen without AJAX.
Reply
#4

i know through ajax and javascript but it's generate many of request to the server.

Any Better Way, Please suggest me.
Reply
#5

(02-09-2016, 08:13 PM)Dolar Wrote: i know through ajax and javascript but it's generate many of request to the server.

Any Better Way, Please suggest me.

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.
Reply
#6

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.
Reply
#7

(02-10-2016, 11:15 AM)PaulD Wrote: 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.

Thanks PaulD
It's same as i want.
thanks Very Much
Reply
#8

(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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB