Em Segunda 22 Maio 2006 07:20, Kevin Dangoor escreveu:
> Hi Jorge,
>
> Jonathan LaCour had essentially the same problem. (He was talking
> about Scriptaculous, which is actually the root of the problem here.)
>
> This *may* actually be a self-fixing problem with the 1.5 release of
> Prototype. Apparently, the folks working on Prototype realized that
> monkeying with Object.prototype is not a good call.
>
> I don't know for certain that's going to fix it.
>
> As of now, there is no way to determine javascript ordering, outside
> of a single widget. If we really have to, we can try to create one,
> but hopefully an increasing number of JS libraries will be made to
> interoperate well..
I hope so!
The fact is that our "hand inserted" JavaScript gets inserted after the
automatic ones. Maybe providing some means to specify a hook for "beginning"
or "bottom" of <head> would allow it to be solved more easily. And would
work even for those greedy javascript libraries that change what they
shouldn't...
Ordering is not as important as positioning here. :-) For example, if I
enable "tg.mochikit_all", I'd expect it to be the first thing on the page --
at least be there, before any other JSLink inserted script that might depend
on it (I know, I declare my dependencies, but...). Why the first? Because
it is in the configuration file and that gets read before everything, even
the master.kid template.
But, for now, I can count on browser's cache and duplicate those entries in
the order they need to appear.
PS:. I believe that the possibility to put scripts in head or the bottom of
the page wouldn't help here because in this case both needs to be in head...
--
Jorge Godoy <[EMAIL PROTECTED]>
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.54.68.17 with SMTP id q17mr195154wra;
Mon, 22 May 2006 07:13:17 -0700 (PDT)
Return-Path: <[EMAIL PROTECTED]>
Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.200])
by mx.googlegroups.com with ESMTP id
v11si1011762cwb.2006.05.22.07.13.16;
Mon, 22 May 2006 07:13:17 -0700 (PDT)
Received-SPF: pass (googlegroups.com: domain of [EMAIL PROTECTED] designates
66.249.82.200 as permitted sender)
DomainKey-Status: good (test mode)
Received: by wx-out-0102.google.com with SMTP id i28so181471wxd
for <[email protected]>; Mon, 22 May 2006 07:13:16
-0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=beta; d=gmail.com;
h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:x-virus-scanned;
b=JkizSrH16STgKNRS1+bOfuK0r1Erw7GPIoJyFOdHXP0vUHi3OKcbhhmMjJpPZZnovJTP+XSH+1STZ9AXFoCmTZiDH12Bv8DWYNKycKdUEYw6b84RRIM13ldnXNfJnfXO/TgUbkziCr95yhYWdyxUbfEe5zMYoEyyKmGswfElpD4=
Received: by 10.70.47.11 with SMTP id u11mr5204640wxu;
Mon, 22 May 2006 07:13:16 -0700 (PDT)
Return-Path: <[EMAIL PROTECTED]>
Received: from strongwill.g2ctech ( [201.22.15.245])
by mx.gmail.com with ESMTP id i40sm5256669wxd.2006.05.22.07.13.14;
Mon, 22 May 2006 07:13:15 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
by strongwill.g2ctech (Postfix) with ESMTP id 257F790C72
for <[email protected]>; Mon, 22 May 2006 12:12:23
-0300 (BRT)
Received: from strongwill.g2ctech ([127.0.0.1])
by localhost (strongwill [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 18779-01 for <[email protected]>;
Mon, 22 May 2006 12:12:23 -0300 (BRT)
Received: from jupiter.g2ctech (unknown [10.0.0.240])
by strongwill.g2ctech (Postfix) with ESMTP id EC2E190A0D
for <[email protected]>; Mon, 22 May 2006 12:12:22
-0300 (BRT)
Received: from localhost (localhost [IPv6:::1])
by jupiter.g2ctech (Postfix) with ESMTP id 818DEDBA68
for <[email protected]>; Mon, 22 May 2006 11:13:06
-0300 (BRT)
From: Jorge Godoy <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [tg-trunk] Re: MochiKit + Lightbox = MochiKit only?
Date: Mon, 22 May 2006 11:13:02 -0300
User-Agent: KMail/1.9.1
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain
Message-Id: <[EMAIL PROTECTED]>
X-Virus-Scanned: amavisd-new at g2ctech.com
Em Segunda 22 Maio 2006 07:20, Kevin Dangoor escreveu:
> Hi Jorge,
>
> Jonathan LaCour had essentially the same problem. (He was talking
> about Scriptaculous, which is actually the root of the problem here.)
>
> This *may* actually be a self-fixing problem with the 1.5 release of
> Prototype. Apparently, the folks working on Prototype realized that
> monkeying with Object.prototype is not a good call.
>
> I don't know for certain that's going to fix it.
>
> As of now, there is no way to determine javascript ordering, outside
> of a single widget. If we really have to, we can try to create one,
> but hopefully an increasing number of JS libraries will be made to
> interoperate well..
I hope so!
The fact is that our "hand inserted" JavaScript gets inserted after the
automatic ones. Maybe providing some means to specify a hook for "beginning"
or "bottom" of <head> would allow it to be solved more easily. And would
work even for those greedy javascript libraries that change what they
shouldn't...
Ordering is not as important as positioning here. :-) For example, if I
enable "tg.mochikit_all", I'd expect it to be the first thing on the page --
at least be there, before any other JSLink inserted script that might depend
on it (I know, I declare my dependencies, but...). Why the first? Because
it is in the configuration file and that gets read before everything, even
the master.kid template.
But, for now, I can count on browser's cache and duplicate those entries in
the order they need to appear.
PS:. I believe that the possibility to put scripts in head or the bottom of
the page wouldn't help here because in this case both needs to be in head...
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---