Insertion de Jquery en ftp et appel dans un template
https://www.medialibs.com/partenariat/forum/tous-les-forum/topic-1898.html
daily12024-03-29T03:02:27+01:002024-03-29T03:02:27+01:00text/html2012-08-23T14:52:23+01:00Jean-BaptisteRe : Insertion de Jquery en ftp et appel dans un template (le 23/08/2012 à 16:52)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-6883.html#post6883
Vous voulez dire que la méthode précédemment décrite ne fonctionne pas en fait ?<br/><br/>Il serait peut-être intéressant de pouvoir choisir dans le webo la version de jquery à charger...text/html2012-08-23T14:00:49+01:00Manuel [Medialibs]Re : Insertion de Jquery en ftp et appel dans un template (le 23/08/2012 à 16:00)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-6880.html#post6880
Bonjour Jean-baptiste,<br/><br/>Nous pouvons intervenir spécifiquement pour activer la dernière version de jQuery pour ce site. N'hésites pas à créer un ticket pour cela ;)<br/><br/>Merci,<br/>bonne journéetext/html2012-08-23T10:15:56+01:00Jean-BaptisteRe : Insertion de Jquery en ftp et appel dans un template (le 23/08/2012 à 12:15)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-6879.html#post6879
Bonjour, <br/><br/>Je suis actuellement confronté à un problème concernant le chargement de JQuery. Je désire utiliser la toute dernière version de JQuery (1.8), mais malgrè tous mes efforts, la version utilisée reste celle de E-Majine (la vieille 1.4.4)<br/><br/>J'ai procédé comme indiqué, mais rien n'y fait...<br/><br/>Voici le morceau de code du head de ma page :<br/><br/><br/><pre> <mx:bloc id="header">
<mx:bloc id="title"><title><mx:text id="title" /></title></mx:bloc id="title">
<mx:bloc id="meta"><meta mXattribut="name:name;http-equiv:http-equiv;content:content" /></mx:bloc id="meta">
<mx:bloc id="link"><link mXattribut="rel:rel;type:type;href:href;media:media;title:title;charset:charset;hreflang:hreflang" /></mx:bloc id="link">
<!-- Appel de jQuery sur serveur de Google - Fall back local si necessaire -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="/scripts/jquery-1.8.0.min.js"><\/script>')</script>
<!-- Appel des propres plugins utilisés par e-majine -->
<mx:bloc id="script"><script mxAttribut="src:src;type:type"></script></mx:bloc id="script">
<script src="/scripts/tooggle.js" type="text/javascript"></script>
<script src="/scripts/exposants.js" type="text/javascript"></script>
<script src="/scripts/jquery.tools.min.js" type="text/javascript"></script>
<!--<script src="/scripts/jquery.lightbox-emajine.js" type="text/javascript"></script>-->
<script src="/scripts/jquery.select2.js" type="text/javascript"></script>
<script src="/scripts/script_netconcept.js" type="text/javascript"></script>
<mx:bloc id="other"><mx:text id="datas"/></mx:bloc id="other">
</mx:bloc id="header">
</pre><br/><br/>Et pour connaitre la version de jquery utilisée, je passe par l'ardoise javascript de Firefox et j'execute : alert($().jquery);<br/><br/>Pouvez vous me dire comment procéder pour vraiment avoir une version plus récente de JQuery active ?<br/><br/>Par avance mercitext/html2011-03-28T14:48:15+01:00Manuel [Medialibs]Re : Insertion de Jquery en ftp et appel dans un template (le 28/03/2011 à 16:48)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-3719.html#post3719
<strong>Voici un appel conseillé de la librairie jQuery :</strong><br/><br/><pre><span style="color: #009900;"><span style="color: #808080; font-style: italic;"><!-- Appel de jQuery sur serveur de Google - Fall back local si necessaire --></span></span>
<span style="color: #009900;"><a onclick="window.open(this.href);return false;" href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;"><script</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></script></span></span>
<span style="color: #009900;"><a onclick="window.open(this.href);return false;" href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;"><script></span></a></span>!window.jQuery <span style="color: #ddbb00;">&& document.write('<script src="/scripts/Jquery/jquery-1.5.min.js"><\/script>')</script>
<!-- Appel des propres plugins utilisés par e-majine -->
<mx:bloc id="script"><script mxAttribut="src:src;</span>type:type"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></script></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><</span></a>/mx:bloc <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"script"</span><span style="color: #000000; font-weight: bold;">></span></span></pre><br/><br/>L'appel à d'autres fichiers javascripts peut s'effectuer avant la fin de fermeture du body (pratique conseillé) ou avant la fin de la fermeture du head.<br/><br/><strong>Exemple d'appel :</strong><br/><br/><pre><span style="color: #009900;"><a onclick="window.open(this.href);return false;" href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;"><script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/scripts/slider/s3Slider.js"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></script></span></span></pre>text/html2010-09-15T15:32:07+01:00Manuel [Medialibs]Re : Insertion de Jquery en ftp et appel dans un template (le 15/09/2010 à 17:32)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-2572.html#post2572
Salut Jing nan,<br/><br/>Aucun souci d'affichage de mon côté sur Firexox 3.6.9 / chrome / Windows Pro. Sur quel environnement travail tu ? Windows / MAC / Linux ?<br/><br/>N'hésite pas à vider le cache de tes navigateurs. Au besoin tu peux essayer une autre version de jQuery, si ce n'est pas la toute dernière, essai avec la version 1.3.2<br/><br/><br/><br/>text/html2010-09-08T07:29:46+01:00Jing nan GARANGERRe : Insertion de Jquery en ftp et appel dans un template (le 08/09/2010 à 09:29)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-2521.html#post2521
Bonjour Manuel,<br/><br/>Une fois la version de jQuery a modifié, le script pour la page d'accueil ne fonctionne plus. Du coup, j'ai remis l'ancienne version. Et le problème est revenu comme avant pour la galerie de la page "Qui sommes-nous", à partir de la deuxième image, ça affiche la taille miniature. Mais ça n'arrive qu'à la première connexion. C'est étrange. Je ne pense pas c'est le problème de cache.<br/><br/>Cordialement.text/html2010-09-07T12:12:28+01:00Jing nan GARANGERRe : Insertion de Jquery en ftp et appel dans un template (le 07/09/2010 à 14:12)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-2515.html#post2515
Bonjour Manuel,<br/><br/>Merci pour votre réponse. Effectivement j'ai deux scripts pour la même fonctionnalité. J'ai bien gardé le premier.<br/><br/>J'ai essayé de changer le placement des scripts, une fois mis avant la balise "scripts". La galerie ne fonctionne plus, toutes les images se trouvent l'une après l'autre. Donc j'ai laissé les scripts juste avant la fermeture de "head", et j'ai modifié la version de jquery. Ca fonctionne correctement maintenant. <br/><br/>Merci encore pour votre aide. Ce site va bientôt en ligne.<br/><br/>Bonne journée.text/html2010-09-06T08:18:54+01:00Manuel [Medialibs]Re : Insertion de Jquery en ftp et appel dans un template (le 06/09/2010 à 10:18)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-2506.html#post2506
Bonjour Jing nan,<br/><br/>Quel est le comportement à atteindre pour cette galerie ? Il s'agirait de retrouver la taille originale je suppose ?<br/><br/>Car en me rendant sur ton site > page qui sommes nous, je retrouve bien les images en taille originale. Les miniatures n'apparaissent pas, même en effectuant la procédure indiquée >qui sommes nous > contact > qui sommes nous.<br/><br/>Peut-être un problème de cache ? J'ai pu tester cette fonctionnalité sur firefox 3.6.8 pc & chrome (dernière version). <br/><br/>N'hésite à effectuer des tests complémentaires (en effectuant une sauvegarde du site avant) :<br/>- Passer à la dernière version de jquery 1.4.2.min.js (inclure avant la balise "mx:scripts")<br/>- Modifier le placement des scripts de ton mainpage.html :<br/><br/>Sache que tu as deux scripts pour une même fonctionnalité, la version de production (.min) devrait suffire ;)<br/><br/><pre><span style="color: #009900;"><span style="color: #808080; font-style: italic;"><!-- include jQuery library --></span></span>
<span style="color: #009900;"><a onclick="window.open(this.href);return false;" href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;"><script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/images/jquery_cycle/jquery.cycle.all.min.js"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></script></span></span>
<span style="color: #009900;"><span style="color: #808080; font-style: italic;"><!-- include Cycle plugin --></span></span>
<span style="color: #009900;"><a onclick="window.open(this.href);return false;" href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;"><script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/images/jquery_cycle/jquery.cycle.all.js"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></script></span></span></pre>text/html2010-09-03T15:05:44+01:00Jing nan GARANGERRe : Insertion de Jquery en ftp et appel dans un template (le 03/09/2010 à 17:05)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-2503.html#post2503
Bonjour,<br/><br/>Je profite de cette discussion pour demander des aides. Je suis en train d'intégrer un site izi-media, j'ai deux jquery qui sont intégrés dans le template "mainPage.html"<br/><br/>Voici le lien pour accéder sur le site :<br/><br/><a href="http://www.jdecors.com/demo">http://www.jdecors.com/demo</a><br/>Login : demo<br/>mdp : demo<br/><br/>Le deuxième script "jquery_cycle" qui est utilisé pour une galerie qui se trouve sur la page "Qui sommes-nous", sous Firefox (version 3.6.8) PC, à la première affichage, à partir de la deuxième image, elles sont toutes minuscules. Mais une fois, je suis sur une autre page, par exemple "Contact", et je reviens sur la page "Qui sommes-nous", toutes les images sont correctement affichées.<br/><br/>Avez-vous une idée d'où vient ce problème ?<br/><br/>Moi, j'ai impression que ce script ne chargement pas la première fois.<br/><br/>Merci par avance.text/html2010-08-27T07:18:36+01:00JérémieRe : Insertion de Jquery en ftp et appel dans un template (le 27/08/2010 à 09:18)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-2415.html#post2415
Bonjour Célia,<br/><br/>E-majine ne demande le chargement d'une librairie javascript que si cela est nécessaire. Vous ne pouvez donc pas compter sur le fait que jquery sera toujours chargé par e-majine.<br/>Il y a quelques temps, j'avais posté une suggestion d'évolution : <a href="http://communaute.medialibs.com/participez-aux-evolutions/participez-aux-evolutions-d-e-majine/1744-charger-facilement-des-scripts-javascript.html">Charger facilement des scripts javascript</a>. Je pense que cette fonctionnalité pourrait être intéressante. Et vous ? Un vote ? ;-)<br/><br/>Bonne journée<br/><br/>Jérémietext/html2010-08-26T15:49:55+01:00Célia DehéRe : Insertion de Jquery en ftp et appel dans un template (le 26/08/2010 à 17:49)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-2411.html#post2411
Bonjour,<br/><br/>J'aurais voulu avoir quelques précisions à propos d'e-majine et du javascript en général...<br/><br/>Comment se passe l'appel jQuery sous e-majine ? jQuery est toujours appelé ? Ou il est appelé uniquement s'il y a l'effet lightbox qui est appliqué ?<br/><br/>Parce s'il est toujours appelé, il est inutile de l'appeler une seconde fois. <br/><br/>Seconde question, e-majine utilise-t-il d'autres frameworks javascript que jQuery ? <br/><br/><br/>Merci d'avance pour vos réponses :)<br/>text/html2010-03-24T13:45:05+01:00NicolasRe : Insertion de Jquery en ftp et appel dans un template (le 24/03/2010 à 14:45)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-1906.html#post1906
Merci de l'info Manutext/html2010-03-19T09:29:36+01:00Manuel [Medialibs]Insertion de Jquery en ftp et appel dans un template (le 19/03/2010 à 10:29)
https://www.medialibs.com/partenariat/forum/tous-les-forum/post-1898.html#post1898
Théoriquement il n'y a rien d'extraordinaire là dessus. On place notre librairie jquery dans l'espace FTP, puis on fait appel dans un template : le plus souvent le mainPage.html<br/><br/>On se retrouve par exemple avec la sémantique suivante :<br/><br/>Notre balise :<br/><br/><pre><span style="color: #009900;"><a onclick="window.open(this.href);return false;" href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;"><head></span></a></span></pre><br/><br/>Différents blocs :<br/><br/><pre>
<span style="color: #009900;"><mx:bloc <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"header"</span><span style="color: #000000; font-weight: bold;">></span></span>
<span style="color: #009900;"><mx:bloc <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"title"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a onclick="window.open(this.href);return false;" href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;"><title></span></a></span><span style="color: #009900;"><mx:<span style="color: #000066;">text</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"title"</span> /<span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></title></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><</span></a>/mx:bloc <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"title"</span><span style="color: #000000; font-weight: bold;">></span></span>
....
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><</span></a>/mx:bloc <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"header"</span><span style="color: #000000; font-weight: bold;">></span></span>
</pre><br/><br/>Puis après la possibilité d'appeler différents scripts, notamment notre fameuse librairie jquery :<br/><br/><pre>
<link rel=<span style="color: #3366CC;">"stylesheet"</span> type=<span style="color: #3366CC;">"text/css"</span> href=<span style="color: #3366CC;">"/scripts/shadowbox.css"</span> />
<script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"/common_scripts/nav.js"</span>></script>
<script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"/images/scripts/js/jquery-1.3.2.min.js"</span>></script>
</pre><br/><br/>Puis la fin de la balise :<br/><br/><pre><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></head></span></span></pre><br/><br/>=> Ce positionnement fonctionne mais si e-majine a besoin de charger ses propres plugins utilisant jQuery alors un second appel de jQuery est effectué après celui d'e-majine. Ce qui réinitialise l'ensemble des plugins : d'où certains problèmes de chargement.<br/><br/>Un exemple : c'est le cas quand on utilise l'effet lightbox (galerie avancée d'images) couplé avec notre appel jQuery dans la balise "head" ou dans le "body" : Incompatibilité, l'effet lightbox ne se déploie plus.<br/><br/>=> Si vous devez inclure la librairie jQuery dans votre site, il faudra faire appel avant la balise "scripts" :<br/><br/><pre><span style="color: #009900;"><mx:bloc <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"script"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a onclick="window.open(this.href);return false;" href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;"><script</span></a> mxAttribut=<span style="color: #ff0000;">"src:src;type:type"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></script></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"><</span></a>/mx:bloc <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"script"</span><span style="color: #000000; font-weight: bold;">></span></span></pre>