Davide Alberani wrote:
Hai usato il Loader o link statici ai file JS?
Io uso solo link STITICI. ;-)
Anche perché va usato (anche) in rete locale.
Cioé, non dubito che il loader si possa usare anche così, ma
ammetto di aver trovato tutta la documentazione un tantino
barocca (tieni presente che il tutto è estremamente opzionale, e
quindi non mi ci metto di grande impegno: se va bene, se no pace).
Al momento (con mooolta più roba del necessario) ho:
<script type="text/javascript" charset="utf-8"
src="/javascript/yui/yahoo/yahoo.js"></script>
<script type="text/javascript" charset="utf-8"
src="/javascript/yui/connection/connection.js"></script>
<script type="text/javascript" charset="utf-8"
src="/javascript/yui/dom/dom.js"></script>
<script type="text/javascript" charset="utf-8"
src="/javascript/yui/event/event.js"></script>
<script type="text/javascript" charset="utf-8"
src="/javascript/yui/utilities/utilities.js"></script>
<script type="text/javascript" charset="utf-8"
src="/javascript/yui/element/element.js"></script>
<script type="text/javascript" charset="utf-8"
src="/javascript/yui/button/button.js"></script>
Allora...
connection utilizza event - per cui l'ordine e' sbagliato, diventa:
<script ... src="/javascript/yui/yahoo/yahoo.js"></script>
<script ... src="/javascript/yui/dom/dom.js"></script>
<script ... src="/javascript/yui/event/event.js"></script>
<script ... src="/javascript/yui/connection/connection.js"></script>
<script ... src="/javascript/yui/utilities/utilities.js"></script>
<script ... src="/javascript/yui/element/element.js"></script>
<script ... src="/javascript/yui/button/button.js"></script>
yahoo-dom-event.js puo' sostituire tutti e tre:
<script ... src="/javascript/yui/yahoo/yahoo-dom-event.js"></script>
<script ... src="/javascript/yui/connection/connection.js"></script>
<script ... src="/javascript/yui/utilities/utilities.js"></script>
<script ... src="/javascript/yui/element/element.js"></script>
<script ... src="/javascript/yui/button/button.js"></script>
Poi se usi utilities.js, puoi fare a meno di importare: yahoo, event,
dragdrop, animation, dom, connection, element, get, yuiloader,
yahoo-dom-event
Quindi diventa
<script ... src="/javascript/yui/utilities/utilities.js"></script>
<script ... src="/javascript/yui/button/button.js"></script>
Vedo se riesco a riprodurre il problema con Chrome
--
This e-mail (and any attachment(s)) is strictly confidential and for use only
by intended recipient(s). Any use, distribution, reproduction or disclosure by
any other person is strictly prohibited. The content of this e-mail does not
constitute a commitment by the Company except where provided for in a written
agreement between this e-mail addressee and the Company. If you are not an
intended recipient(s), please notify the sender promptly and destroy this
message and its attachments without reading or saving it in any manner. Any non
authorized use of the content of this message constitutes a violation of the
obligation to abstain from learning of the correspondence among other subjects,
except for more serious offence, and exposes the person responsible to the
relevant consequences.
|