Re: [TYPO3-german] jQuery Problem / Frage - $ is not a function [Gelöst]
Hi Gregor, wie ich meine letzte Antwort weggeschickt hatte, ist mir aufgefallen, wo mein Fehler liegt. Ich hatte immer noch "jQuery(function()" anstatt "jQuery(function($)". Es funktioniert also so, wie du gepostet hattest. Danke. Johannes. > -Ursprüngliche Nachricht- > Von: typo3-german-boun...@lists.typo3.org [mailto:typo3-german- > boun...@lists.typo3.org] Im Auftrag von Johannes C. Laxander > Gesendet: Sonntag, 29. Januar 2017 11:37 > An: 'German TYPO3 Userlist' <typo3-german@lists.typo3.org> > Betreff: Re: [TYPO3-german] jQuery Problem / Frage - $ is not a function > > Hallo Gregor, > > danke für deine Antwort. > > Ich habe jQuery.noConflict(); mal weggelassen, weil ich im Moment nur > jQuery als Framework nutze. > Trotzdem bekomme ich den Fehler: > > jquery.min.js:2 jQuery.Deferred exception: $ is not a function TypeError: $ is > not a function > > ??? > > Johannes. > > > jQuery.noConflict(); > > jQuery(function($) { > > $('.dropdown-toggle').dropdown(); > > }); > > > > ___ > 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
Re: [TYPO3-german] jQuery Problem / Frage - $ is not a function
Hallo Gregor, danke für deine Antwort. Ich habe jQuery.noConflict(); mal weggelassen, weil ich im Moment nur jQuery als Framework nutze. Trotzdem bekomme ich den Fehler: jquery.min.js:2 jQuery.Deferred exception: $ is not a function TypeError: $ is not a function ??? Johannes. > jQuery.noConflict(); > jQuery(function($) { > $('.dropdown-toggle').dropdown(); > }); > ___ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
Re: [TYPO3-german] jQuery Problem / Frage - $ is not a function
Hallo Johannes, Johannes C. Laxander wrote: > jQuerry binde ich im head-Bereich gleich als erstes ein. > In meinen Scripten bekomme ich aber diesen Fehler: > jquery.min.js:2 jQuery.Deferred exception: $ is not a function TypeError: > $ is not a function > > ... > > Mein Script: > > jQuery.noConflict(); > jQuery(document).ready(function() { > $('.dropdown-toggle').dropdown(); > }); > > Was passt hier nicht zusammen? http://api.jquery.com/jQuery.noConflict/ Korrekt wäre z.B. jQuery.noConflict(); jQuery(function($) { $('.dropdown-toggle').dropdown(); }); hth Gruß, Gregor -- http://www.a-mazing.de/ | Certified TYPO3 Integrator ___ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german