jquery-bracket icon indicating copy to clipboard operation
jquery-bracket copied to clipboard

Saving the Tournament and searching the url updated tournament

Open ghelge opened this issue 1 year ago • 0 comments

Hello, I am struggling on creating a save data bracket and searching about the generated bracket can you help me I have created a url and the id of the tournament but I am struggling to save the tournament bracket

if (saveData) { console.log(saveData);

  // Encode the saveData as a URI component
  var encodedSaveData = encodeURIComponent(JSON.stringify(saveData));

  // Redirect to generatebracket.php with the encoded saveData in the URL
  window.location.href = "generatebracket.php?id=" + <?php echo $tournament_id; ?> + "&data=" + encodedSaveData;
} else {
  console.log("saveData is not defined or is null.");
}

ghelge avatar May 22 '23 14:05 ghelge