Hallo Till,

Hilft dir das weiter?

https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/JavaScript/Modules/DocumentService.html


Viele Grüße
Birgit


> Am 06.11.2020 um 14:15 schrieb g4-l...@tonarchiv.ch:
> 
> Hallo Silke,
> 
> leider ist auch 'jQuery' undefiniert.
> 
> Ich habe es auch noch mit includeRequireJsModules="{0:'jquery'}"
> versucht, das hat aber auch nicht geholfen.
> 
> Geht das wirklich nur noch mit requireJS? Aber trotzdem müsste doch
> jQuery irgendwie verfügbar werden...
> 
> Grüsse,
> Till
> 
> On 06.11.20 13:47, Silke Capo wrote:
>> Hallo Till,
>> 
>> bin leider noch auf 9.x, hatte aber früher das Problem, mehrere
>> Bibliotheken zu haben, die alle "$" belegt hatten. Dort wurde jquery
>> dann folgendermaßen eingebunden:
>> 
>> jQuery.noConflict();
>> jQuery(document).ready(function($){ ... }
>> 
>> Vielleicht funktioniert das in deinem Fall ja auch.
>> 
>> Viele Grüße
>> 
>> Silke
>> 
>> On 06.11.20 12:00, typo3-german-requ...@lists.typo3.org wrote:
>>> Send TYPO3-german mailing list submissions to
>>>     typo3-german@lists.typo3.org
>>> 
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>     http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>>> or, via email, send a message with subject or body 'help' to
>>>     typo3-german-requ...@lists.typo3.org
>>> 
>>> You can reach the person managing the list at
>>>     typo3-german-ow...@lists.typo3.org
>>> 
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of TYPO3-german digest..."
>>> 
>>> 
>>> Today's Topics:
>>> 
>>>     1. Wie benutze ich jQuery im BE V10? (g4-l...@tonarchiv.ch)
>>> 
>>> 
>>> ----------------------------------------------------------------------
>>> 
>>> Message: 1
>>> Date: Fri, 6 Nov 2020 11:19:00 +0100
>>> From: g4-l...@tonarchiv.ch
>>> Subject: [TYPO3-german] Wie benutze ich jQuery im BE V10?
>>> To: typo3-german@lists.typo3.org
>>> Message-ID:
>>>     <mailman.23375.1604657944.687.typo3-ger...@lists.typo3.org>
>>> Content-Type: text/plain; charset=utf-8
>>> 
>>> Hallo Freunde der leichten Unterhaltung.
>>> 
>>> Ich krieg's irgendwie nicht gebacken. $ is not a function... $ is not
>>> defined... usw.
>>> 
>>> Ich binde das eigene Skript in Fluid ein via Backend VH:
>>> 
>>> <f:be.pageRenderer includeJsFiles="{...}" />
>>> 
>>> Das Skript selbst ist so aufgebaut:
>>> 
>>> (function ($) {
>>> ? function myListener1() { ... }
>>> ? function myListener2() { ....}
>>> ?...
>>> ? function attachListener () {
>>> ????? $('.xy').change(myListener1);
>>> ??? usw.
>>> ?}
>>> 
>>> ? $(document).ready(attachListener);
>>> 
>>> }) (jQuery);
>>> 
>>> Dann kriege ich den Fehler: jQuery is not defined.
>>> 
>>> Ich hab's auch mit? ... (window.$) versucht. Dann heisst's $ is not a
>>> function (Zeile $(document).ready()).
>>> 
>>> Wie macht man das richtig?
>>> 
>>> Gr?sse,
>>> Till
>>> 
>>> 
>>> 
>>> ------------------------------
>>> 
>>> _______________________________________________
>>> TYPO3-german mailing list
>>> TYPO3-german@lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>>> 
>>> End of TYPO3-german Digest, Vol 206, Issue 4
>>> ********************************************
>> 
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an