Hola a todo amigos foreros, espero me puedan ayudar, estoy realizando un menu tabs con css y javascript, el menu y esta completo y no tiene error, el problema que presento es cuando quiero insertarle un archivo PHP por medio de un include da error y no se muestran las pestañas, quisiera saber si es posible realizar esto sin tener que hacerlo por medio de frames...
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> html, body {
width : 100%;
height : 100%;
padding : 0;
margin : 10px;
overflow : hidden;
font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif; /* MAIN BODY FONTS */
}
.jcTab { width:100%; height:100%;}
<!-- link href="css/core.css" rel="stylesheet" type="text/css"/ -->
<link href="css/TabPanel.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="src/jquery.js"></script> <script type="text/javascript" src="src/Plugins/Fader.js"></script> <script type="text/javascript" src="src/Plugins/TabPanel.js"></script> <script type="text/javascript" src="src/Plugins/Math.uuid.js"></script>
<script type="text/javascript" > var tabpanel;
var jcTabs = [ //Aqui se carga el contenido html o php (y es donde tengo el problema)
'
<iframe src="http://www.google.com" width="100%" height="100%" frameborder="0"></iframe>',
'
<iframe src="terminologia2.php" whidth="100%" height="100%" frameborder="0"></iframe>',
'You can close me by click fork button',
'You cant see it'
];
$(document).ready(function(){
tabpanel = new TabPanel({
renderTo:'tab',
width:600,
height:500,
//border:'none',
active : 0,
//maxLength : 10,
items : [
{id:'toolbarPlugin1',title:'Google',html:jcTabs[0],closable: false},
{id:'toolbarPlugin2',title:'Tab2',html:jcTabs[1],closable: false},
{id:'toolbarPlugin3',title:'Closable',html:jcTabs[2],closable: false},
{id:'toolbarPlugin6',title:'Disabled',html:jcTabs[3],closable: false, disabled:false}
]
});
});
Espero alguna respuesta muchas gracias!!!