I have a jquery function which looks like
<script type="text/javascript">
var doubleEliminationData = {}
$(function () {
$('div#doubleElimination').bracket({
init: doubleEliminationData
})
})
</script>
and the content of the variable doubleEliminationData is in a JSON file. When i copy/paste the code in the JSON file in the variable it works just fine. But i need to load it from the JSON file because on an other website i can change the content in this file. I tried $.get, $.getjson and $.ajax to get the content of the file but it doesnt work. I hope you can help withe this. How do i load the content of the JSON file into the var doubleEliminationData?