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

Weird looping behaviour between three non-lopable components #19

Closed
elisafilevich opened this issue Sep 21, 2014 · 1 comment
Closed

Comments

@elisafilevich
Copy link

I have three independent components (in my mindwandering study). Each of them does the following ajax call:

var ajax = $.ajax({
url: "/publix/" + studyId + "/" + componentId + "/submitResultData",
data: componentResultJson,
processData: false,
type: "POST",
contentType: "application/json",
success: function(url) {
window.location.href = "/publix/" + studyId + "/startNextComponent";
},
error: function(err) {
currentComponentState = componentState.RUNNING;
showError(err.responseText);
}
});

When I activate only those three components and click on 'Run Whole Study', I get a (seeminly) infinite loop between those three active components. And (I think) only one result is saved. (i.e., results are saved and overwritten)

@elisafilevich
Copy link
Author

Hehe... My mistake. Was using html code of component 1 instead of component 3.
Always blame the bupo!

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

1 participant