Ich habe nochmal eine ganze Weile rumprobiert, und ich bin auch schon etwas weiter gekommen, aber so ganz klappt es noch nicht. Die Anzahl der Trials wurde wie von mir gewünscht angepasst. Die Anzahl der Blöcke glaube ich auch, aber nach Block 7 hängt sich das Ganze auf. Hier der Code (die Anzahl der Trials ist nur zum Testen so gering, weil ich die später auch anpassen muss und direkt sehen wollte, ob es klappt):
<script type="text/javascript">
SoSciTools.attachEvent(window, "load", function() {
SoSciTools.questionnaire.IA01.setBlocks([0,1,2,3,4,5,6,7,8,9,10]);
SoSciTools.questionnaire.IA01.trialCount = [1,2,3,4,5,6,7,8,9,10,11];
SoSciTools.questionnaire.IA01.setTrials([2,2,2,2,2,2,2,2,2,2,2]);
SoSciTools.questionnaire.IA01.getBlockInfo = function (blockID) {
// Init categories
var categories = [[], []];
// Create block content
// 0=A, 1=B, 2=C, 3=D
if (blockID === 0) {
// Practice 1
categories = [[0], [1]];
} else if (blockID === 1) {
// Practice 2
categories = [[2], [3]];
} else if (blockID === 2) {
// Practice 3
categories = [[0,2], [1,3]];
} else if (blockID === 3) {
// Test (block 4)
categories = [[0,2], [1,3]];
} else if (blockID === 4) {
// Test (block 5)
categories = [[0,2], [1,3]];
} else if (blockID === 5) {
// Test (block 6)
categories = [[0,2], [1,3]];
} else if (blockID === 6) {
// Practice 7
categories = [[1], [0]];
} else if (blockID === 7) {
// Practice 8
categories = [[1,2], [0,3]];
} else if (blockID === 8) {
// Test (block 9)
categories = [[1,2], [0,3]];
} else if (blockID === 9) {
// Test (block 10)
categories = [[1,2], [0,3]];
} else if (blockID === 10) {
// Test (block 11)
categories = [[1,2], [0,3]];
} else alert("BlockID too large in getBlockInfo: " + blockID);
return {
categories: categories,
trials: this.trialCount[blockID]
};
};
});
</script>
In den Entwicklertools unter "Elements" fand ich folgendes:

Meine Fragen wären jetzt:
- Kommt der Fehler evtl. daher, dass dort die Values für die unteren vier Zeilen fehlen?
- Falls das so ist, haben Sie eine Idee, wie ich die hinzufügen kann?
- Falls nicht, wo liegt dann das Problem und wie kann ich es beheben?
Vielen Dank im Voraus!