Foros del Web » Programando para Internet » Javascript » Frameworks JS »

Ayuda ExtJs

Estas en el tema de Ayuda ExtJs en el foro de Frameworks JS en Foros del Web. Hola a todos, Bueno no se si alguno maneje esta libreria, por motivos laborales pues yo estoy empezando a desarrollar con ella, pero me he ...
  #1 (permalink)  
Antiguo 20/04/2010, 11:33
 
Fecha de Ingreso: abril-2010
Ubicación: Bogotá
Mensajes: 15
Antigüedad: 14 años
Puntos: 0
Exclamación Ayuda ExtJs

Hola a todos,
Bueno no se si alguno maneje esta libreria, por motivos laborales pues yo estoy empezando a desarrollar con ella, pero me he encontrado con un problema ya empezando, buscando directamente en el foro de los creadores no hay una respuesta que me pueda ayudar, y como confio bastante en la comunidad forosdelweb, pues decidí postear aquí.

el problema es el siguiente y tal vez sea una tonteria pero aquí va:

empiezo con el ejemplo puesto en el siguiente link:
http://www.extjs.com/learn/Tutorial:Introduction_to_Ext_%28Spanish%29

son tres archivos, html, js y CSS, dejo el js y el html:
html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Introduction to Ext: Starter Page</title>

<!-- Include YUI utilities and Ext: -->
<script type="text/javascript" src="../adapter/yui/yui-utilities.js"></script>
<script type="text/javascript" src="../adapter/yui/ext-yui-adapter.js"></script>
<script type="text/javascript" src="../ext-all-debug.js"></script>
<script type="text/javascript" src="ExtStart.js"></script>

<!-- Include Ext stylesheets here: -->
<link rel="stylesheet" type="text/css" href="../resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="../resources/css/ytheme-vista.css">
<link rel="stylesheet" type="text/css" href="ExtStart.css">
</head>
<body>
<h1>Introduction to Ext: Starter Page</h1>

<p>This is the starter page that accompanies the Introduction to Ext tutorial located at <a href="http://www.extjs.com/tutorial/introduction-ext">http://www.extjs.com/tutorial/introduction-ext</a>.</p>

<p>This page is intended to help you interactively explore some of the capabilities of the Ext library, so please make sure that your script references are correct. This page assumes by default that it is in a directory directly beneath the root Ext deployment directory. For example, if your Ext directory structure is located at "C:\code\Ext\v1.0\," then this file should be saved in a directory like "C:\code\Ext\v1.0\tutorial\." If you choose to locate this file somewhere else, then make sure you change the script references of this file as needed.</p>

<p>If you have any questions or issues getting this tutorial to work correctly, please stop by the <a href="http://www.extjs.com/forums/">Ext Forums</a> and ask for help!</p>

<div id="myDiv">This is a test div.</div>

<input type="button" id="myButton" value="My Button" />

<div id="grid-example" style="overflow: hidden; width: 535px; height: 125px;border:2px solid #999;margin:20px 50px;visibility:hidden;"></div>

</body>
</html>


el js:

/*!
* Ext JS Library 3.0.0
* Copyright(c) 2006-2009 Ext JS, LLC
* [email protected]
* http://www.extjs.com/license
*/


Ext.onReady(function() {

// Note: For the purposes of following along with the tutorial, all
// new code should be placed inside this method.

Ext.get('myButton').on('click', function(){
alert("Has hecho click en el botón");
});


});


basicamente el code esta bn, pero no entiendo por que no me deja ejecutar sobre el botón, y con el firebug me dice lo siguiente:
Ext is not defined
[Break on this error] Ext.onReady(function()


Espero me puedan colaborar, gracias de antemano.
ah por cierto, estoy trabajando local y he intentado con versiones diferentes 3, 3.2 y 2.3
  #2 (permalink)  
Antiguo 20/04/2010, 14:44
 
Fecha de Ingreso: agosto-2009
Mensajes: 20
Antigüedad: 14 años, 8 meses
Puntos: 0
Respuesta: Ayuda ExtJs

hey que tal!!!

sabes?? estamos en las mismas haha hay muy poca informacion a cerca de esta tecnología y pocos la conocen, yo lo que estoy haciendo ahorita es integrar .net c# con ext-js y se me hace algo complicado... conoces algo a cerca de esto???

te dejo mi correo por si me puedes hechar una mano [email protected]
  #3 (permalink)  
Antiguo 20/04/2010, 15:44
 
Fecha de Ingreso: abril-2010
Ubicación: Bogotá
Mensajes: 15
Antigüedad: 14 años
Puntos: 0
Respuesta: Ayuda ExtJs

la verdad no, yo lo trabaje hace un tiempo pero desde java, con eclipse, lo que se conoce como gwt, que es basicamente lo mismo, pero con c# no lo he ni mirado, y no quiero hacerlo todaviia :P igual si tengo algún tipo de info te estare avisando.

Saludos !!!
  #4 (permalink)  
Antiguo 20/04/2010, 15:53
Avatar de caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años
Puntos: 1284
Tema movido desde javascript
__________________
Por favor:
No hagan preguntas de temas de foros en mensajes privados... no las respondo
  #5 (permalink)  
Antiguo 22/04/2010, 11:18
 
Fecha de Ingreso: abril-2010
Ubicación: Bogotá
Mensajes: 15
Antigüedad: 14 años
Puntos: 0
Respuesta: Ayuda ExtJs

Hola, nadie que me pueda ayudar ?? estoy intentandolo, incluso cambie las rutas de los script, pero nada, les agradeceria mucho cualquier apunte, ah por cierto todo eso lo hago desde el localholst, la ruta seria http://localhost/EXT/extjs/tutorial

Gracias!!!
  #6 (permalink)  
Antiguo 29/04/2010, 14:29
 
Fecha de Ingreso: agosto-2004
Mensajes: 1
Antigüedad: 19 años, 8 meses
Puntos: 0
Respuesta: Ayuda ExtJs

Probaste en poner bien tus librerias...
en ves de usar ext-all-debug.js usa ext-all.js
veras que con eso funciona xD.
  #7 (permalink)  
Antiguo 29/04/2010, 15:46
 
Fecha de Ingreso: abril-2010
Ubicación: Bogotá
Mensajes: 15
Antigüedad: 14 años
Puntos: 0
Respuesta: Ayuda ExtJs

emulation, no me funciono, lo hice como dijiste y con el firebug de mozilla me salio esto:

Se ha alcanzado el límite del log de Firebug. 0 entradas sin mostrar. Preferencias
uncaught exception: Unable to load Ext, core YUI utilities (yahoo, dom, event) not found.
[Break on this error] (no source for )
o is undefined
[Break on this error] Ext.DomHelper=function(){var s=null,j=...(){return("DragDrop "+this.id)}}})();
ext-all.js (línea 7)
o is undefined
[Break on this error] Ext.DomHelper=function(){var s=null,j=...(){return("DragDrop "+this.id)}}})();

:(
  #8 (permalink)  
Antiguo 05/06/2010, 09:18
Avatar de gustavodiazs  
Fecha de Ingreso: junio-2003
Ubicación: Tampico
Mensajes: 31
Antigüedad: 20 años, 10 meses
Puntos: 0
Respuesta: Ayuda ExtJs

Usando este código no me marca nada

Código:
<!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" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Demo: In your language | Quizzpot</title>

<link rel="stylesheet" type="text/css" href="../extjs/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../resources/style.css" />

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

<script type="text/javascript" src="ExtStart.js"></script>
</head>
<body>
    <h1>Introduction to Ext: Starter Page</h1>
    <p>This is the starter page that accompanies the Introduction to Ext tutorial located at <a href="http://www.extjs.com/tutorial/introduction-ext">http://www.extjs.com/tutorial/introduction-ext</a>.</p>
    <p>This page is intended to help you interactively explore some of the capabilities of the Ext library, so please make sure that your script references are correct. This page assumes by default that it is in a directory directly beneath the root Ext deployment directory. For example, if your Ext directory structure is located at "C:\code\Ext\v1.0\," then this file should be saved in a directory like "C:\code\Ext\v1.0\tutorial\." If you choose to locate this file somewhere else, then make sure you change the script references of this file as needed.</p>
    <p>If you have any questions or issues getting this tutorial to work correctly, please stop by the <a href="http://www.extjs.com/forums/">Ext Forums</a> and ask for help!</p>
    <div id="myDiv">This is a test div.</div>
    <input type="button" id="myButton" value="My Button" />
    <div id="grid-example" style="overflow: hidden; width: 535px; height: 125px;border:2px solid #999;margin:20px 50px;visibility:hidden;"></div>
</body>
</html>
con tu mismo JS, creo que el problema es que no incluiste lo necesario para trabajar, usa la llamada a los JS en el orden que esta y si funciona solo cambia la ruta de su localización....
__________________
Gustavo Diaz Salazar
Tampico Tamulipas Mexico
http://www.diazsalazar.com.mx

Etiquetas: extjs
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:56.