[TYPO3-core] RFC: Load javascript libraries
Benjamin Mack
mack at xnos.org
Tue Oct 16 18:55:39 CEST 2007
Hey,
ok. as discussed the basename allows us to exclude multiple instances of
prototype for instance:
contrib/prototype/prototype.js
js/tree.js
typo3conf/ext/my_ext/prototype/prototype
would load prototype twice. But anyway, I think this is something an
ext-dev should be aware of since this function "loadJSlibrary" is used
for the internal core BE anyway and the prototype version of the core
should be used, not any other.
greetings,
benni.
-SDG-
www.xnos.de // www.xnos.org
Ingmar Schlecht wrote:
> I would go without the basename() trick because libaries might be in a
> different directory but have the same basename like mootools/effects.js
> and scriptaculous/effects.js.
>
> +1 based on reading the patch for the patch if you remove basename().
>
> cheers
> Ingmar
>
>
> Benjamin Mack schrieb:
>> Hey Ingo,
>>
>> I totally agree. Let's get this into the BE.
>>
>> Attached is my revised patch (with the basename feature), still waiting
>> for two +1s.
>>
>> greetings,
>> benni.
>> -SDG-
>>
>> www.xnos.de // www.xnos.org
>>
>>
>> Ingo Renner wrote:
>>> Hi all,
>>>
>>>
>>> just to interupt this little discussion...
>>>
>>> I think the solution is quite easy in this case:
>>>
>>> We take only care of the BE, if someone wants to write BE modules he
>>> needs to use or methods to load the JS libs. We could still have the
>>> full path as parameter and check whether a lib is loaded already
>>> through the basenames.
>>>
>>> For the FE we can simply hand this over to the ECT so they can take
>>> care of it. In fact there are already nice extensions like
>>> scriptaculous, extjs and so on...
>>> The ECT also provides a pear manager, they could provide something
>>> similiar for javascript, too I guess.
>>>
>>> all the best
>>> Ingo
>>>
>>>
>>> _______________________________________________
>>> TYPO3-team-core mailing list
>>> TYPO3-team-core at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
More information about the TYPO3-team-core
mailing list