| |||||
| Auteur | Sujet : blabla@web |
|---|---|
LeRiton | Reprise du message précédent : |
Publicité | Posté le 02-08-2012 à 15:04:05 ![]() ![]() |
gatsu35 Blablaté par Harko |
--------------- Blablaté par Harko |
koskoz They see me trollin they hatin | Nop, vu les perfs actuelles je suis même pas à 10 requêtes http près en fait --------------- |
Shinuza This is unexecpected |
Node c'est pour dumper les templates pré-compilées sur le disque. T'en as pas besoin sinon. --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
nraynaud lol |
--------------- trainoo.com, c'est fini |
gatsu35 Blablaté par Harko | ou bien harmoniser en se basant sur le nom des propriétés css Message cité 1 fois Message édité par gatsu35 le 03-08-2012 à 11:18:13 --------------- Blablaté par Harko |
flo850 moi je | oui , mais comment faie si je veux faire un site avec dojo + jquery , avec bootstrap et des bouts de jquery mobile --------------- |
LeRiton |
|
Publicité | Posté le 03-08-2012 à 11:31:57 ![]() ![]() |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin | J'aimerai faire ça :
Bon, alors on m'évite tous les "onclick caca bouh", si j'avais pu faire autrement j'aurais fait autrement. Comme vous l'imaginez foo() est interprété directement au chargement de la page, ce qui semble normal. La parade c'est de le passer en tant que string, mais je trouve ça très moche. Il y a une meilleur façon de faire ou je suis baisé ? Message édité par koskoz le 03-08-2012 à 14:30:02 --------------- |
gatsu35 Blablaté par Harko |
--------------- Blablaté par Harko |
koskoz They see me trollin they hatin |
Dans le premier cas si je fais ça:
En passant par une variable comme ceci :
Dans le deuxième cas (wrap dans une fonction anonyme), sans ajout de parenthèses lors de l'appel :
Avec ajout :
Message cité 1 fois Message édité par koskoz le 03-08-2012 à 15:08:43 --------------- |
FlorentG |
koskoz They see me trollin they hatin |
FlorentG | Du genre
|
koskoz They see me trollin they hatin | Je ne comprend pas comment passer une variable dans une string peut fonctionner Message édité par koskoz le 03-08-2012 à 15:36:31 --------------- |
FlorentG | L'attribut onclick est évalué, donc tu peux mettre le nom de ta variable dedans |
koskoz They see me trollin they hatin | Oui mais non, j'ai testé toutes vos solutions et rien ne passe.
Dans myModule :
Message édité par koskoz le 03-08-2012 à 15:51:03 --------------- |
Shinuza This is unexecpected | T'avais pas parlé d'un moteur de template? --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
koskoz They see me trollin they hatin | Là pour 3 lignes de HTML c'est pas vraiment nécessaire (même si ce serait plus propre). C'était pour d'autres applications. --------------- |
gatsu35 Blablaté par Harko | @Shinuza, ah oui c'est pas faux de nous le rappeler. --------------- Blablaté par Harko |
koskoz They see me trollin they hatin | C'est jamais possible de répondre clairement à une question ici, toujours obligé d'enculer les mouches sur des sujets qui n'ont rien à voir --------------- |
FlorentG |
|
koskoz They see me trollin they hatin |
--------------- |
FlorentG |
|
koskoz They see me trollin they hatin | Putain mais --------------- |
koskoz They see me trollin they hatin |
Shinuza This is unexecpected |
1) C'est pas standard (pas supporté par IE)
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
FlorentG |
masklinn í dag viðrar vel til loftárása |
Ya 2 méthodes qui sont bonnes ici: 1. tu render tout le template et tu as une seconde phase pour hooker les évènements sur le DOM réalisé (ce qui impose de pouvoir lier les deux, genre avec des ids autogénérés ou autres merdes du style), ou 2. buildLinks construit un vrai noeud DOM (Element quelconque ou DocumentFragment) (ou un objet jQuery si tu utilises jQuery par ailleurs). Accessoirement, ta méthode actuelle mène à une navigation vers "#" (enfin mênerait, si elle pouvait marcher). Message édité par masklinn le 03-08-2012 à 18:45:43 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
masklinn í dag viðrar vel til loftárása |
Faut oublier closures (en dehors des globales he présume), mais ça pourrait "marcher" et gagner un prix de truc dégueu. Mais c'est super efficace, paske t'as inliné ta fonction, pas d'indirection Possible Alternativement, tu colles un nom autogénéré bien merdique directement dans window pour aliaser ton handler et t'utilises ça dans l'attribut, PHP-style, viva la create_function Message cité 1 fois Message édité par masklinn le 03-08-2012 à 18:52:34 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
FlorentG |
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 03-08-2012 à 21:30:35 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
antiseptiqueIncolore zzzzzzzzzdjhgdfcjdsc zedufkgkz |
Message édité par antiseptiqueIncolore le 03-08-2012 à 21:56:30 |
flo850 moi je | non, je ne crois pas . --------------- |
Publicité | Posté le ![]() ![]() |






