I have two functions
function ShowCrossWord(var randN)
{
randomnumber = randN;
$(document).ready(function() {
$.get("crosswords.xml",{},function(xml){
$('crossword',xml).each(function(i) { });
});
});
}
and
function ShowLegend(var randN)
{
randomnumber = randN;
$(document).ready(function() {
$.get("legends.xml",{},function(xml){
$('legend',xml).each(function(i) {});
});
});
}
I am using these in a same javascript file:
var randomNumber=Math.floor(Math.random()*233);
ShowCrossWord(randomNumber);
ShowLegend(randomNumber);
None of them seems to work. What would be the solution.