Camille Frisch Posted October 23, 2009 Share Posted October 23, 2009 BonjourJ'aimerai insérer un flash 'proprement' dans mon fichier category.tpl.Je souhaitais utiliser swfobject, et des flashvarsle code javascript swfobject se présente ainsi : [removed] var flashvars = {}; var params = {}; var attributes = {}; attributes.id = "categorySwf"; swfobject.embedSWF("movie.swf", "myAlternativeContent", "610", "2100", "9.0.0", "expressInstall.swf", flashvars, params, attributes); [removed]Or comme il contient des {} ca semble planter le parseur ... Y a t il un moyen d'échapper les {} pour le parser tout en laissant javascript les interpréter ?mika Link to comment Share on other sites More sharing options...
minirj01 Posted October 23, 2009 Share Posted October 23, 2009 Bonjour, essaye avec {literal} *script {/literal} Link to comment Share on other sites More sharing options...
Camille Frisch Posted October 23, 2009 Author Share Posted October 23, 2009 Excellent, ca marche impec !!C'est infiniement plus propre que d'utiliser une concaténation marvar=foo&marvar2=toto& ect ...Mille Merci@+mikaPS : Je n'avais pas pensé à regarder la doc smarty .... je m'en sortirai jamais sans pourtant Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now