Jump to content

[SWFObject Problem] in homefeature.tpl > I would like to insert javascript but...


seldon.paul2

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...