From: Ruby Student Date: 2013-06-14T07:11:59+09:00 Subject: Re: Can I use Sinatra to render dynamic pages? --20cf307f35be2a883404df106bca Content-Type: text/plain; charset=ISO-8859-1 Rick, Thank you for your quick reply. Although I am trying to avoid javascript, I'll take a look at the links. Thanks again On Thu, Jun 13, 2013 at 5:45 PM, Ricky Ng wrote: > 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 > -- Ruby Student --20cf307f35be2a883404df106bca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Rick,

Thank you for your quick repl= y. Although I am trying to avoid javascript, I'll take a look at the li= nks.

Thanks again


=
On Thu, Jun 13, 2013 at 5:45 PM, Ricky Ng <dummey@gmail.com> = wrote:
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 <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



--
Ruby Student
--20cf307f35be2a883404df106bca--