Re: [Cppcms-users] (no subject)
Brought to you by:
artyom-beilis
From: eric m. <mid...@gm...> - 2014-02-21 17:51:17
|
Sorry... Have found it. It does actually work. I was wondering why chat was updating and ticker didn't. While adapting the code of ticker towards chat to see where the problem is, I reread your emails and found the cause of the problem. I was using http://localhost:8080/ticker instead of http://localhost:8080/the_ticker.html Thanks for your support. On Fri, Feb 21, 2014 at 6:35 PM, eric middelkoop <mid...@gm...>wrote: > I tried Chrome instead of Firefox and that reacts differently. Its reading > the stream but doesn't show anything until I stop the server. Then it > displays the same as when connected via the terminal. So it does work in > the end (no idea why Firefox behaves differently). Any idea how to make the > browser refresh the page after every change from the server? > > > On Fri, Feb 21, 2014 at 6:25 PM, eric middelkoop < > mid...@gm...> wrote: > >> Hi, >> >> Yes when I start the ticker and run wget localhost:8080/ticker -qO - | >> cat from another terminal I get a steady stream of tickers updates. >> id:44 >> data:7.36238 >> >> id:45 >> data:7.73572 >> >> id:46 >> data:7.913 >> >> id:47 >> data:8.63035 >> >> id:48 >> data:9.47829 >> >> id:49 >> data:10.1078 >> >> id:50 >> data:10.9298 >> >> >> When instead I start Firefox and go to localhost it asks me to save the >> data as a file. I downloaded the latest version of cppcms only last week. >> >> Does it work with you? And if yes what browser and os are you using? >> >> I just don't get it... >> >> Best regards, >> Eric >> >> >> >> On Fri, Feb 21, 2014 at 9:46 AM, Marcel Hellwig <ke...@co...>wrote: >> >>> >>> >>> On 21.02.2014 07:58, eric middelkoop wrote: >>> > Hi Marcel, >>> > >>> > Yes I checked. Javascript is enabled in Firefox. Do you have any idea >>> > what is going wrong here? >>> >>> Are you sure your application is running und reachable? >>> Did you try the command I sent you? >>> >>> > wget localhost:8080/ticker -qO - | cat >>> >>> If that works the page should also work: >>> >>> http://localhost:8080/the_ticker.html >>> >>> if not. Try to update your cppcms version and after that I don't have >>> any clue :D >>> >>> Greetings >>> >>> >> >> >> -- >> Groetjes, >> Eric >> >> http://www.lightandmagicphotography.nl >> http://www.lightandmagicphotography.com >> > > > > -- > Groetjes, > Eric > > http://www.lightandmagicphotography.nl > http://www.lightandmagicphotography.com > -- Groetjes, Eric http://www.lightandmagicphotography.nl http://www.lightandmagicphotography.com |