How do I pass a Squiffy attribute to a Javascript variable?

Say I've got an attribute like:

@set progress = 0

And I want to take the current value and convert it into a standard JS variable via:

var myprogress = progress

What do I need to put after the =?


Silly me... it's easy. You just use:

var myprogress = squiffy.get("attributename");

I'd tried this to start with but made a typo and I thought it didn't work.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums