PHP - Iframe manera correcta de programarlo ayuda

 
Vista:
Imágen de perfil de carmen

Iframe manera correcta de programarlo ayuda

Publicado por carmen (17 intervenciones) el 08/04/2016 18:49:51
Buenos días que pena molestar tengo una pequeña inquietud como se haría un iframe para mostrar en una cuadro puras paginas... es que estoy haciendo una pero esta demasiado pesada para mi pagina muestro code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div class="col-lg-12 col-md-12 col-sm-12" id="lista">
<frameset>
    <ul class="list-group">
    <li class="list-group-item">
    <iframe border="0" frameborder="0" src="https://www.tripadvisor.co/Hotel_Review-g297478-d676819-Reviews-Leblon_Suites_Hotel-Medellin_Antioquia_Department.html#HEADING_GROUP" scrolling="no" width="100%" height="65" ></iframe><a href="https://www.tripadvisor.co/Hotel_Review-g297478-d676819-Reviews-Leblon_Suites_Hotel-Medellin_Antioquia_Department.html#REVIEWS"> ver mas sobre Leblon en tripadvisor</a>
    <iframe border="0" frameborder="0" src="https://www.tripadvisor.co/Hotel_Review-g297478-d656344-Reviews-Hotel_Novelty_Suites-Medellin_Antioquia_Department.html#HEADING_GROUP" scrolling="no" width="100%" height="65" ></iframe><a href="https://www.tripadvisor.co/Hotel_Review-g297478-d656344-Reviews-Hotel_Novelty_Suites-Medellin_Antioquia_Department.html#REVIEWS">ver mas sobre Novelty en tripadvisor</a>
    <iframe border="0" frameborder="0" src="https://www.tripadvisor.co/Hotel_Review-g297478-d678435-Reviews-Affinity_Aparta_Hotel-Medellin_Antioquia_Department.html#HEADING_GROUP" scrolling="no" width="100%" height="65"></iframe><a href="https://www.tripadvisor.co/Hotel_Review-g297478-d678435-Reviews-Affinity_Aparta_Hotel-Medellin_Antioquia_Department.html#REVIEWS">ver mas sobre Affinity en tripadvisor</a>
    <iframe border="0" frameborder="0" src="https://www.tripadvisor.co/Hotel_Review-g297478-d1733024-Reviews-Portal_del_Rodeo_Aparta_Hotel-Medellin_Antioquia_Department.html#HEADING_GROUP" scrolling="no" width="100%" height="65" ></iframe><a href="https://www.tripadvisor.co/Hotel_Review-g297478-d1733024-Reviews-Portal_del_Rodeo_Aparta_Hotel-Medellin_Antioquia_Department.html#REVIEWS">ver mas sobre Portal del Rodeo  en tripadvisor</a>
    <iframe border="0" frameborder="0" src="https://www.tripadvisor.co/Hotel_Review-g297478-d1883582-Reviews-Alcazar_de_Oviedo-Medellin_Antioquia_Department.html#HEADING_GROUP" scrolling="no" width="100%" height="65" ></iframe><a href="https://www.tripadvisor.co/Hotel_Review-g297478-d1883582-Reviews-Alcazar_de_Oviedo-Medellin_Antioquia_Department.html#REVIEWS">ver mas sobre Alcazar en tripadvisor</a></li>
    <li class="list-group-item">
    <iframe name="Ventana" border="0" frameborder="0" src="http://www.booking.com/hotel/co/affinity-aparta.es-ar.html?type=total;ucfs=1&#wrap-hotelpage-top" scrolling="no" width="100%" height="65" ></iframe>
     <iframe border="0" frameborder="0" src="http://www.booking.com/hotel/co/affinity-aparta.es-ar.html?ucfs=1&#review_list_score" scrolling="no" width="200%" height="325"  allowfullscreen ></iframe></li>
     <li>
      <iframe  border="0" frameborder="0" src="http://www.booking.com/hotel/co/novelty-suites.es-ar.html?ucfs=1&#wrap-hotelpage-top" scrolling="no" width="100%" height="65"></iframe>
      <iframe border="0" frameborder="0" src="http://www.booking.com/hotel/co/novelty-suites.es-ar.html?ucfs=1&#review_list_score" scrolling="no" width="200%" height="325"></iframe>
      </li>
      <li>
      <iframe  border="0" frameborder="0" src="http://www.booking.com/hotel/co/novelty-suites.es-ar.html?ucfs=1&#wrap-hotelpage-top" scrolling="no" width="100%" height="65"></iframe>
      <iframe border="0" frameborder="0" src="http://www.booking.com/hotel/co/novelty-suites.es-ar.html?ucfs=1&#review_list_score" scrolling="no" width="200%" height="325"></iframe>
      </li>
      <li>
      <iframe  border="0" frameborder="0" src="http://www.booking.com/hotel/co/novelty-suites.es-ar.html?ucfs=1&#wrap-hotelpage-top" scrolling="no" width="100%" height="65"></iframe>
      <iframe border="0" frameborder="0" src="http://www.booking.com/hotel/co/novelty-suites.es-ar.html?ucfs=1&#review_list_score" scrolling="no" width="200%" height="325"></iframe>
      </li>
      <li>
      <iframe  border="0" frameborder="0" src="http://www.booking.com/hotel/co/novelty-suites.es-ar.html?ucfs=1&#wrap-hotelpage-top" scrolling="no" width="100%" height="65"></iframe>
      <iframe border="0" frameborder="0" src="http://www.booking.com/hotel/co/novelty-suites.es-ar.html?ucfs=1&#review_list_score" scrolling="no" width="200%" height="325"></iframe>
      </li>
    </ul>
    </frameset>
  </div>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

Iframe manera correcta de programarlo ayuda

Publicado por xve (6935 intervenciones) el 08/04/2016 19:33:24
Hola Carmen, no te recomiendo utilizar iframes, es mucho mejor que utilices includes de PHP para añadir contenido en tus páginas...

Hoy en dia, no tiene mucho sentido incluir un iframe con paginas nuestras en nuestra web.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de carmen

Iframe manera correcta de programarlo ayuda

Publicado por carmen (17 intervenciones) el 08/04/2016 20:46:00
Pero el requerimiento de la empresa a la que estoy mi proyecto educativo quiere un cuadro con paginas que ellos tienen de sus servicios y includes para esto no me sirve
Sin-titulo
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

Iframe manera correcta de programarlo ayuda

Publicado por xve (6935 intervenciones) el 09/04/2016 10:16:35
Hola Carmen, tal como dices, si están en otro dominio no puedes utilizar includes de php...

Si no disponen de ninguna API para obtener el contenido, no tienes mas remedio que utilizar <iframe>

Una manera básica seria algo así:
1
<iframe src="http://www.dominio.com/pagina.php" width="500" height="500"></iframe>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de carmen

Iframe manera correcta de programarlo ayuda

Publicado por carmen (17 intervenciones) el 11/04/2016 15:09:20
si yo lo porporciono y como hago para que me lea varias paginas sin colocar lenta la pagina
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar