Results 1 to 2 of 2

Thread: Sorry Javascript Q

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954

    Sorry Javascript Q

    Why would I be getting an error on this.

    Code:
    function selCoach()
    {
    	team = cboTeams.value;
    	HC = "";
    	AC = "";
    	
    	switch (team)
    	{
    		case "Rookies Black" :
    			HC = "Glenn Wells";
    			AC = "";
    			break;
    ///////line below is saying that it need a ;
    		case "Rookies Gold" :
    			HC "Jim Bobin";
    			AC = "";
    			break;
    		case "Cubs" :
    			HC = "Dan Watkins";
    			AC = "Dave Williams";
    			break;
    		case "Sophomores Black" :
    			HC = "Shawn Hartline";
    			AC = "Billie Hartline";
    			break;
    		case "Sophomores Gold" :
    			HC = "J.W. Smith"
    			AC = "Duane Ranstrom";
    			break;
    		case "Junior Varsity" :
    			HC = "Bobby Taylor";
    			AC = "Duane Ranstrom";
    			break;
    		case "Varsity" :
    			HC = "Randy Porter";
    			break;
    		case "Seniors" :
    			HC = "TBD";
    			break;
    	}
    	if(AC == "")
    	{
    	AC = "TBD";
    	}
    	//alert("Head Coach: " + HC + "\nAssistant Coach: " + AC);
    	window.open("coaches.asp?HC=" + HC + "&AC=" + AC, "coaches", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300, height=200' );
    	
    }

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954

    RESOLVED

    Nevermind, I am an idiot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width