PDA

View Full Version : How does Ext.onReady(function(){ work please?



andredecotia
17 Nov 2010, 3:05 AM
Hi all,
please how does this following syntax Ext.onReady(function(){ work? Because I have mapped:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>1° exemplo</title>
<!-- Início do mapeamento do EXTjs 3.3.0 -->
<link rel="stylesheet" type="text/css" href="ext-3.3.0/resources/css/ext-all.css" />

<script src="ext-3.3.0/adapter/ext/ext-base.js"></script>
<script src="ext-3.3.0/ext-all.js"></script>
<!-- Fim do mapeamento do EXTjs 3.3.0 -->

<!-- Início do mapeamento do JS externo com as ações customizadas -->
<script src="js/ext_primeiro_exemplo.js"></script>
<!-- Fim do mapeamento do JS externo com as ações customizadas -->
</head>
<body>
<!-- Nada no corpo -->
</body>
</html>


But when I am on the page I know the code on <script src="js/ext_primeiro_exemplo.js"></script> is executed ok but how this script knows he needs to find all information to work on ext-all.js?