Click to See Complete Forum and Search --> : Dynamic Tounament tree?
Draganus
06-24-2003, 12:02 AM
Hi,
I hope that some one knows how to do this. I've been working really hard to try to figure out how to make a user dynamic tounament tree for about 32 people but im not quite certain on how to acheive it. I've looked at every tutorial I can to try to learn how to do this and I cant find anything that can help.
Anyone have any ideas?
Hi, you should try something like this...
function scoreWinner(personA, personB, next1, next2, next3, personAwin, personBwin) {
with (personAwin.form)
{
if (!personAwin.checked && !personBwin.checked)
{
next1.value = "";
next2.value = "";
next3.value = "";
}
else {
next1.value = (personAwin.checked ? personA.value : " ");
personBwin.checked = false;
next2.value = "";
next3.value = "";
}
}
}
function advance(winner, loser, place) {
place.value = winner.value;
}
with check boxes....
input tralalala for exemple
<input type=text name=player1 size=10>
<input type=checkbox name=player1win onClick="scoreWinner(this.form.player1, this.form.player2, this.form.round1winner1, this.form.round2winner1, this.form.round3winner, this, this.form.player2win);">
cheers
asch
:D
Draganus
06-25-2003, 10:59 AM
since I'm still a newb to the code of javascript, will that alter the text in a table dynamically so that each round of the tounament will show the names of the winners of the previous round?
Also, a friend of mine says that aside from PHP there really isnt a language that will show all of the results to all of the players excaept the ones who actually put in the data. I dont believe him because i always think there are possibilities.
ok i show you the table how it is and try it go her ....
Tournament for 8 players (http://www.sogen.ch/tournament2.html)
im always using javascript ...and perl (cgi) ....to php don t know why..... per haps I m to lasy to learn one more langugage :o)
cheers
aSCH..
:D