search for: jsonobj

Displaying 6 results from an estimated 6 matches for "jsonobj".

Did you mean: jsobj
2023 Nov 22
1
mediaplayer for icecast streams?
...; > I was afraid it would be very complicated to get the information > extracted, but it was very simple. My only problem now is to find a way > to update the text on the webpage. I was hoping sleep(5) could do the > trick, but it does not work. > > <?php > if (1) { > $jsonobj=file("http://radio.protestbandet.dk:8000/status-json.xsl"); > //var_dump($jsonobj); > $arr1[]=json_decode($jsonobj[0], true); > echo '<strong>'.$arr1[0]['icestats']['source']['title'].'</strong>'; > sleep(5); >...
2023 Nov 22
1
mediaplayer for icecast streams?
Thank you, Ben! I was afraid it would be very complicated to get the information extracted, but it was very simple. My only problem now is to find a way to update the text on the webpage. I was hoping sleep(5) could do the trick, but it does not work. <?php if (1) { $jsonobj=file("http://radio.protestbandet.dk:8000/status-json.xsl"); //var_dump($jsonobj); $arr1[]=json_decode($jsonobj[0], true); echo '<strong>'.$arr1[0]['icestats']['source']['title'].'</strong>'; sleep(5); } ?> Can anyone help?...
2007 Jun 04
2
Re: Ajax.Request question with JSON return
...5555555} > > I can return that JSON string and stuff it into any dom element with > Ajax.Updater without a problem. But I''d like to pass the data into the > function using Ajax.Request, then populate elements on the page, such as > $(''txFirstName'').value = jsonobj.FName; $(''txLastName'').value = > jsonobj.LName; etc. > > There must be something wrong with how I''m trying to do this, however, as > I''m getting no response when using Ajax.Request, whereas I am able to > display the json in a DOM element when usin...
2023 Nov 23
1
mediaplayer for icecast streams?
...gt; I was afraid it would be very complicated to get the information > extracted, but it was very simple. My only problem now is to find a > way to update the text on the webpage. I was hoping sleep(5) could do > the trick, but it does not work. > > <?php > if (1) { > $jsonobj=file("http://radio.protestbandet.dk:8000/status-json.xsl"); > //var_dump($jsonobj); > $arr1[]=json_decode($jsonobj[0], true); > echo '<strong>'.$arr1[0]['icestats']['source']['title'].'</strong>'; > sleep(5); >...
2023 Nov 22
1
mediaplayer for icecast streams?
Icecast provides an endpoint (/status-json.xsl) which returns JSON with various data, including "Now Playing". Here is a link to the documentation: https://www.icecast.org/docs/icecast-trunk/server_stats/ In your case it looks like it would be http://radio.protestbandet.dk:8000/status-json.xsl Ben Weddle -----Original Message----- From: Icecast <icecast-bounces at xiph.org> On
2006 Mar 06
1
looking for a JSON parser in Ruby
Hi all, I''m looking for a JSON parser in Ruby. If you have any information/document, please give me a hint. Many thanks, Yi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060306/6777d23e/attachment.html