![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
![]() |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
|
|
#1
|
|||
|
|||
|
Recargar OBJECT en HTML
Cordial saludo,
Tengo un pequeño desarrollo en HTML5, JS y PHP y me surgió un pequeño inconveniente. En el siguiente código muestro como tengo organizada mi página Web: Código:
<body>
<div id="divGeneral">
<div id="divLeft">
<object id="object1" type="text/html" data="Pagina1.html" width=100% height=100%></object>
</div>
<div id="divRight">
<object id="object2" type="text/html" data="Pagina2.html" width=100% height=100%></object>
</div>
</div>
</body>
En [Pagina1] tengo el siguiente código de JS: Código:
<script type="text/javascript">
function fLoadDataObject(pURL)
{
var obj = $('#objContent');
var container = $(obj).parent();
$(obj).attr('data', pURL);
var newobj = $(obj).clone();
$(obj).remove();
$(container).append(newobj);
}
</script>
Agradezco de antemano cualquier colaboración. |
|
#2
|
|||
|
|||
|
Cordial saludo,
Les pido disculpas. Transcribí el código de JS con un error. Lo vuelvo a escribir: Código:
<script type="text/javascript">
function fLoadDataObject(pURL)
{
var obj = $('#object2);
var container = $(obj).parent();
$(obj).attr('data', pURL);
var newobj = $(obj).clone();
$(obj).remove();
$(container).append(newobj);
}
</script>
Nuevamente, mil disculpas. |
![]() |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| recargar componente DBLookupComboBox | jose_am | Conexión con bases de datos | 2 | 12-12-2011 16:48:47 |
| Acceso a un <object></object> | carpato18 | HTML, Javascript y otros | 1 | 22-01-2008 09:18:01 |
| Sobre error "Object reference not set to an instance of an object" | fer21unmsm | .NET | 2 | 11-05-2007 21:56:46 |
| Como recargar una pagina asp en delphi.net | joel20 | .NET | 2 | 06-04-2006 11:21:55 |
| Recargar imagen que está en cache en ASP.NET | HombreSigma | .NET | 1 | 18-12-2005 22:20:55 |
|