Kunena Menu
Intégration jQuery: syntaxe correcte?
12 years 5 months ago - 12 years 5 months ago #20192
by iorbita
Intégration jQuery: syntaxe correcte? was created by iorbita
Hello,
j'ai quelques difficultés à comprendre quelle est la syntaxe à utiliser pour intégrer jQuery dans le template.
Je me retrouve avec différent type d'écriture et d'après ma lecture j'en déduis que:
charge toute l'armada Bootstrap
ne charge que Mootools
ne charge que jQuery
…par contre j'ai vu aussi ce type de syntaxe:
… est-ce qu'elle remplace la syntaxe?
Tu peux m'éclaircir?
Merci
Edit: ok, je pense avoir compris, avec
tout est là...
j'ai quelques difficultés à comprendre quelle est la syntaxe à utiliser pour intégrer jQuery dans le template.
Je me retrouve avec différent type d'écriture et d'après ma lecture j'en déduis que:
Code:
Jhtml::_('bootstrap.framework');
Code:
JHTML::_('behavior.framework', true);
Code:
JHtml::_('jquery.framework', true);
…par contre j'ai vu aussi ce type de syntaxe:
Code:
<head>
<jdoc:include type="head" />
</head>
Code:
Jhtml::_('bootstrap.framework');
Tu peux m'éclaircir?
Merci
Edit: ok, je pense avoir compris, avec
Code:
Jhtml::_('bootstrap.framework');
Last edit: 12 years 5 months ago by iorbita.
Please Log in or Create an account to join the conversation.
12 years 5 months ago #20196
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Intégration jQuery: syntaxe correcte?
Salut
le jdoc doit toujours etre inscrit. Pour le reste ça dépend. Tu peux jeter un oeil à ma cheatsheet :
www.joomlack.fr/telecharger-extensions-j...templates-cheatsheet
CEd
le jdoc doit toujours etre inscrit. Pour le reste ça dépend. Tu peux jeter un oeil à ma cheatsheet :
www.joomlack.fr/telecharger-extensions-j...templates-cheatsheet
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
12 years 5 months ago #20197
by iorbita
Replied by iorbita on topic Intégration jQuery: syntaxe correcte?
… puisque <jdoc:include type="head" /> est obligatoire et Jhtml::_('bootstrap.framework'); s'occupe de l'armada Bootstrap, il me semble alors que les deux autres syntaxes que j'ai cité plus haut ne doivent plus figurer dans le fichier index.php?
Please Log in or Create an account to join the conversation.
12 years 5 months ago #20198
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Intégration jQuery: syntaxe correcte?
le "behavior" c'est pour mootools, le "jquery" c'est si tu veux juste jquery. EN chargeant bootstrap tu as obligatoirement jquery qui est pris avec
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
12 years 5 months ago #20199
by iorbita
Replied by iorbita on topic Intégration jQuery: syntaxe correcte?
ok, c'est ce que j'avais compris, merci
Please Log in or Create an account to join the conversation.
Time to create page: 0.201 seconds





