Board logo

標題: html iframe and frame [打印本頁]

作者: wongcc2006    時間: 2017-5-25 01:53     標題: html iframe and frame

本帖最後由 wongcc2006 於 2017-5-25 01:54 編輯

is that some website does not support the frame or iframe to embed more than 1 website in a single html?  
only w3 schools and hkepc working.
facebook.com or google.com will show blank page

and any different between freamset and iframe?


<frameset cols="25%,50%,25%">
  <frame src="https://www.facebook.com">
  <frame src="https://www.w3schools.com">
  <frame src="https://www.hkepc.com">
</frameset>


----------------------------------

<iframe src="https://www.hkepc.com"></iframe>
<iframe src="https://www.hkepc.com/forum"></iframe>
<iframe src="https://www.facebook.com"></iframe>
<iframe src="https://www.w3schools.com"></iframe>

----------------------------------------------
作者: wongcc2006    時間: 2017-5-25 02:00

我想要D好簡單的東西 一個HTML開幾個WEBSITE 要拎不同網頁的資料 純睇就OK
作者: 7h1r733n    時間: 2017-5-25 02:32

我想要D好簡單的東西 一個HTML開幾個WEBSITE 要拎不同網頁的資料 純睇就OK
wongcc2006 發表於 2017-5-25 02:00


因為facebook有一個header係x-frame-options.... set左deny的話係唔會load入任何frame..
作者: wongcc2006    時間: 2017-5-25 09:05

因為facebook有一個header係x-frame-options.... set左deny的話係唔會load入任何frame.. ...
7h1r733n 發表於 2017-5-25 02:32



    then any suggestion?? I can use no frame. just one simple html and load multiple webpage
作者: EITCo    時間: 2017-5-25 09:55

本帖最後由 EITCo 於 2017-5-25 09:57 編輯

First, <frame> is deprecated and should be avoided in projects of ongoing concern.

I searched the iframe issue in stackoverflow and found some solution using reverse proxy.
But it might not be a simple clean solution you would want.
After all it's due to security concern Google and Facebook don't let you load them in iframes.

I suggest just open 4 browser windows   as you're not manipulating the 4 sites' data by code.
作者: wongcc2006    時間: 2017-5-25 22:43

First,  is deprecated and should be avoided in projects of ongoing concern.

I searched the iframe i ...
EITCo 發表於 2017-5-25 09:55

Just for short term getting information. Actual is need to obtain multiple office 365 mailbox in one HTML. Say 3~4 mailbox. Seems outlook.office.com also limited the frame or I frame

via HKEPC Reader PRO for Android
作者: computingcat    時間: 2017-5-25 23:33

I doubt you can do that in same browser, not to mention the same page.  Log into more than one mailbox in same browser is probably not supported.  Just use a few browsers.  Each one to see one mailbox.
作者: wongcc2006    時間: 2017-5-27 02:31

I doubt you can do that in same browser, not to mention the same page.  Log into more than one mailb ...
computingcat 發表於 2017-5-25 23:33



    haha. that's the problem we facing, in fact, for outlook, we can use outlook.office.com/user@mail.com to view different mailbox within same browser (admin login, full access





歡迎光臨 電腦領域 HKEPC Hardware (https://h0.hkepc.com/forum/) Powered by Discuz! 7.2