Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I refresh Tempo #85

Open
kappicraig opened this issue Jul 2, 2013 · 1 comment
Open

How can I refresh Tempo #85

kappicraig opened this issue Jul 2, 2013 · 1 comment

Comments

@kappicraig
Copy link

I'm developing a picture framing site and am using TEMPO in conjunction with ECWID. Tempo works perfectly however I want TEMPO to make a restart when ever a click event occurs and am unsure how to approach this. Any help would be very gratefully received. Code Example.

for(var i=0; i<framesID.length;i++){
if(framesName[i] == cornId){
var ecwidapi = Tempo.prepare('ecwidmeFrames');
ecwidapi.starting();
$.getJSON("http://app.ecwid.com/api/v1/########/product?id=" + framesID[i] + "&hidden_products=true&secure_auth_key=#########&callback=?", function(data) {
ecwidapi.render(data);
});//close JSON
}//close if
}//close loop

@mrolafsson
Copy link
Contributor

You can instantiate your ecwidapi once via the prepare() method and hold on to it. You can call render(), append() and the others as many times as you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants