cody_asdf — 2011-05-23T22:30:17-04:00 — #1
Hi. At my job I constantly need to be up to the moment on the weather, and I want to create a display that will combine important elements from different weather services onto one screen that I can hang on the wall.
What are need are basic <div>'s from several different sites. I know I could use iframes but I don't want to display entire sites, just the elements I need from them. Then I want to be able to have some DOM control over them (e.g. setting refresh time for each element).
Any ideas on what would be the best way to go about this? Any suggestions would be greatly appreciated. Thanks!
ralphm — 2011-05-24T01:13:16-04:00 — #2
cody_asdf — 2011-05-24T10:29:33-04:00 — #3
ralphm — 2011-05-24T10:40:43-04:00 — #4
[Thread moved to JS forum.]
paul_wilkins — 2011-05-24T19:22:42-04:00 — #5
With PHP though, you can use something called Curl to retrieve the contents of a web page, from which you can then retrieve the parts that you require.
The typical technique is that an ajax request is sent to a PHP script, which retrieves the data and sends it back to your request.