Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.