seldon.paul2 Posted June 4, 2011 Share Posted June 4, 2011 I would like to insert flash object into the homefeatured.tpl.But, it doesn't work. Why? Same flash is working in the flashTest.html but if I bring this code set into the homefeatured.tpl, it shows only blank page. [removed] // JAVASCRIPT VARS // cache buster var cacheBuster = "?t=" + Date.parse(new Date()); // stage dimensions var stageW = "760";//"100%"; var stageH = "290";//"100%"; // ATTRIBUTES var attributes = {}; <------------------------ ERROR point ~ attributes.id = 'myComponent'; attributes.name = 'myComponent'; [removed] Is there anyone who can explain, at the point of inserting var attributes = {}; The web-page goes blank. Any way of fixing it? Just empty variable declaration, the screen goes blank ~It would be really appreciated. Thanks in advance ~< Code from http://code.google.com/p/swfobject/wiki/documentation --- swfobject javascript doesn't work. > Link to comment Share on other sites More sharing options...
seldon.paul2 Posted June 4, 2011 Author Share Posted June 4, 2011 http://www.prestashop.com/forums/viewthread/32040/ French knows {} clashes the smarty parser.Almost got it to the answer ~ Bonjour, essaye avec {literal} *script {/literal}=>Hello, try with {literal} {* script / literal} I just don't know what this mean... Any help will be very welcome~ Link to comment Share on other sites More sharing options...
seldon.paul2 Posted June 4, 2011 Author Share Posted June 4, 2011 I think "prestashop" must provide "HOW TO" regarding "flash object" insertion, officially. Link to comment Share on other sites More sharing options...
PrestaSupport Posted June 4, 2011 Share Posted June 4, 2011 Is the homefeatured.tpl clean from other code, I mean like img and button codes etc. Link to comment Share on other sites More sharing options...
seldon.paul2 Posted June 5, 2011 Author Share Posted June 5, 2011 Yes, it is clean for others.I understood what they said, using So, I tried but it didn't work.If I take this code out, then the homefeatured.tpl works just beautifully.It seems like it has been known to the people up there regarding "Prestashop."javascript vars variableName = {} ---> smarty crashes...Try, your own prestashop and insert, var attributes = {}; Any place, not just homefeatured.tpl smarty parser crashes - 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