Hallo,
1/I'd like to import a dynamic image(f(t)) from a distant server by simply calling the URL stocked in my database (example http://xxx.yyy.zzz.200/Sectorr1/florida/florida-day.png),when I click on a button I'd like to display the image on the footer of my page.The problem is that the whole html page is displayed and not only the image.How could I display only the image?
2/I'd like to import some information (variable) from a distant html page.Could you please help me
Thanks[/img]
import an image/information from a remote html page
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
You can't control remote content. For all I know, they purposely generate full HTML when their files are remotely accessed, and if they don't provide a way for you to do what it is that you'd like to, chances are that you weren't meant to do so.
If you REALLY want to do it, javascript would be able to extract the elements that you want or remove the elements that you don't.
If you REALLY want to do it, javascript would be able to extract the elements that you want or remove the elements that you don't.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
file_get_contents(), preg_match()?superdezign wrote:You can't control remote content. For all I know, they purposely generate full HTML when their files are remotely accessed, and if they don't provide a way for you to do what it is that you'd like to, chances are that you weren't meant to do so.
If you REALLY want to do it, javascript would be able to extract the elements that you want or remove the elements that you don't.