From: Ricky Ng Date: 2013-06-14T06:45:47+09:00 Subject: Re: Can I use Sinatra to render dynamic pages? --20cf307d010a88181c04df100dae Content-Type: text/plain; charset=ISO-8859-1 Dynamicly updating content on a page falls under Ajax ( http://en.wikipedia.org/wiki/Ajax_%28programming%29). Did a quick google and found this: http://ididitmyway.herokuapp.com/past/2011/2/27/ajax_in_sinatra/ On Thu, Jun 13, 2013 at 4:41 PM, Ruby Student wrote: > Hell Team, > > I wrote a very simple dashboard using *shoes* which basically displays > statistics, every second, of certain type of messages arriving at a queue > under *MQ*. But in order for anyone to use it they have to install *Ruby*, > *shoes *and its requirements. So I started experimenting with *Sinatra *to > re-write my simple application so anyone could point their *browser* and > get the dashboard displayed. I went over the first *basic Sinatra*tutorial but everything appears to be static. Is there any example out > there that shows *Sinatra* dynamically refreshing the page continuously > with new information, in my case message queues information? > > In other words, once the user successfully get the page displayed, from > that point on I want the content to be refreshed dynamically with the new > information without user intervention. > > Thank you > > -- > Ruby Student > -- Incoherently, Ricky Ng --20cf307d010a88181c04df100dae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Dynamicly updating content on a page falls under Ajax= (http://en= .wikipedia.org/wiki/Ajax_%28programming%29).

Did a quick = google and found this:
http://ididitmyway.herokuapp.com/past/2011/2/27/ajax_in_sinatra/
<= /div>


On Thu, = Jun 13, 2013 at 4:41 PM, Ruby Student <ruby.student@gmail.com>= wrote:
Hell Team,
I wrote a very simple dashboard using shoes which basically d= isplays statistics, every second, of certain type of messages arriving at a= queue under MQ. But in order for anyone to use it they= have to install Ruby, shoes and its requirement= s. So I started experimenting with Sinatra to re-write my simple app= lication so anyone could point their browser and get the dashboard d= isplayed. I went over the first basic Sinatra tutorial but everythin= g appears to be static. Is there any example out there that shows Sinatr= a dynamically refreshing the page continuously with new information, in= my case message queues information?

In other words, once the user successfully get the page disp= layed, from that point on I want the content to be refreshed dynamically wi= th the new information without user intervention.

Thank y= ou

--
Ruby Student



--
Incoherently,
Ricky = Ng
--20cf307d010a88181c04df100dae--