Jump to content

load a webpage inside a div


optikalefx

Recommended Posts

Hey guys, i was wondering if anyone has ideas on how to load webpages inside a div.  And moreover, how to scale the content to the constraints of the div.  For example, there is a javascript demo on dynamic drive, but those file have to be local for it to work, also in example on my ipod Touch safari scales webpages to fit its screen, i kind of want to mimic that action in a div, scale the site down.

 

 

Link to comment
https://forums.phpfreaks.com/topic/81197-load-a-webpage-inside-a-div/
Share on other sites

you need to use either AJAX/PHP (or alternate sever side language) or just plan PHP (or alternate sever side language) to get the content dynamically in a div. to make the content fit to your div; set your div's overflow style to either auto or scroll.

my goal is to have mini divs that i can drag around the screen, and the divs are thumbnails of websites.  but they are updated when a website is updated, so it would need to "screenshot" a website and then generate a thumbnail.

 

this is difficult

 

 

these are server side processes like phpQuestioner was referring to, they use command lines to call browser rendering engines and then send the output of browser to like imagemagick to thumbnail it. it the first case they are using vncserver which is stock on Linux server

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.