PDA

View Full Version : How to open a window into a tabpanel in apidoc example



jeremy0616
29 Aug 2011, 8:03 PM
Please help;

I'm trying to open a window generated with Ext Designer into de tab of the api doc example.

Here is the code of the tree.js included in the example:
{"href":"LxTCViewer_window.php","text":"Visor Datos","id":"Visor","isClass":true,"iconCls":"icon-vwr","cls":"cls","leaf":true}

And the code of the php is this.
<?php
//--> Iniciar sesión
session_start();
if ((!isset($_SESSION['usuario'])) || (isset($_SESSION['usuario']) && $_SESSION['usuario'] == ""))
{
header('Location:../index.php?opcion=LOGIN');
}
if (!isset($_SESSION['procesa_accion']))
{
$_SESSION['procesa_accion'] = 0;
}
if (!isset($_SESSION['sql']))
{
$_SESSION['sql'] = "";
}
if (!isset($_SESSION['mensaje']))
{
$_SESSION['mensaje'] = "";
}
if (!isset($_SESSION['modulo']))
{
$_SESSION['modulo'] = "LxTC_Viewer";
}
else
{
$_SESSION['sql'] = "";
$_SESSION['mensaje'] = "";
$_SESSION['procesa_accion'] = 0;
$_SESSION['modulo'] = "LxTC_Viewer";
}
?>
<!DOCTYPE html>


<!-- Auto Generated with Ext Designer -->
<!-- Modifications to this file will be overwritten. -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LxSagosViewer.xds</title>
<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css"/>

<link rel="stylesheet" type="text/css" href="resources/ux/gridfilters/css/GridFilters.css" />
<link rel="stylesheet" type="text/css" href="resources/ux/gridfilters/css/RangeMenu.css" />

<script type="text/javascript" src="resources/ext-base.js"></script>
<script type="text/javascript" src="resources/ext-all.js"></script>


<!-- extensions -->
<script type="text/javascript" src="resources/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/menu/ListMenu.js"></script>

<script type="text/javascript" src="resources/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/BooleanFilter.js"></script>

<script type="text/javascript" src="LxSagosVwWindow.ui.js"></script>
<script type="text/javascript" src="LxSagosVwWindow.js"></script>
<script type="text/javascript" src="lxsMarcajes.js"></script>
<script type="text/javascript" src="LxTCViewer_window_index.js"></script>
</head>
<body></body>
</html>

Hope someone can help me !!!!!!

skirtle
31 Aug 2011, 7:25 AM
Please wrap all code in code tags (# button on the editor toolbar).

I'm afraid it isn't really clear what you're trying to do. You mention a window and a tabpanel but it isn't clear what you want to do with them, or how tree.js and the PHP fit into all of this.

Could you try to rephrase the question to be more explicit about exactly what you're trying to do?

jeremy0616
31 Aug 2011, 8:10 AM
Ok,

What I'm trying to do is open a window (Ext.Window) into the tap panel open, when you click in the class link of the apiDoc example. The window is found in a PHP file (LxTCViewer_window.php). When a run this PHP in a web browser, it opens a window. When I put it in the link of tree.js for open the window inside the tab, it just open the tab with a blank page. The window was generated in Ext Designer.

Hope this is more clear.


<!-- Auto Generated with Ext Designer -->
< !-- Modifications to this file will be overwritten. -->
<html>
< head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LxSagosViewer.xds</title>
<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css"/>

<link rel="stylesheet" type="text/css" href="resources/ux/gridfilters/css/GridFilters.css" />
<link rel="stylesheet" type="text/css" href="resources/ux/gridfilters/css/RangeMenu.css" />

<script type="text/javascript" src="resources/ext-base.js"></script>
<script type="text/javascript" src="resources/ext-all.js"></script>


<!-- extensions -->
<script type="text/javascript" src="resources/ux/gridfilters/menu/RangeMenu.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/menu/ListMenu.js"></script>

<script type="text/javascript" src="resources/ux/gridfilters/GridFilters.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="resources/ux/gridfilters/filter/BooleanFilter.js"></script>

<script type="text/javascript" src="LxSagosVwWindow.ui.js"></script>
<script type="text/javascript" src="LxSagosVwWindow.js"></script>
<script type="text/javascript" src="lxsMarcajes.js"></script>
<script type="text/javascript" src="LxTCViewer_window_index.js"></script>
< /head>
< body></body>
< /html>

ceac2006
6 Dec 2011, 9:56 PM
Thank you