[Javascript] variable problem

Nancy Burton-Vulovic nancybv at idirect.ca
Thu Jun 7 19:46:43 CDT 2001


RE: [Javascript] variable problemcongratulations Bob!

N
  ----- Original Message ----- 
  From: Filipiak, Bob (Contractor) 
  To: 'javascript at LaTech.edu' 
  Sent: Thursday, June 07, 2001 11:00 AM
  Subject: RE: [Javascript] variable problem


  Sorry, ignore post it is totally wrong. It was the result of brain fatigue from taking 2hrs and 25 minutes out of 2hrs and 30 minutes to complete and pass MCP Test for w2k Pro. I've been cramming since April when I was given the software and told to get certified by June.

  Bob Filipiak (Contractor)
  MCP 

    -----Original Message-----
    From: Filipiak, Bob (Contractor) 
    Sent: Thursday, June 07, 2001 10:11 AM
    To: 'javascript at LaTech.edu'
    Subject: RE: [Javascript] variable problem


    Try document.game_assesment.row+ i +"_"+ j +.checked = true; 

    Bob Filipiak (Contractor) 
    MCP 

    -----Original Message----- 
    From: rastlore at yahoo.ca [mailto:rastlore at yahoo.ca] 
    Sent: Thursday, June 07, 2001 9:57 AM 
    To: Javascript at LaTech.edu 
    Subject: [Javascript] variable problem 



    Hello,  I am having a problem, I am a newbie at this javascript stuff 
    by the way.  I was wondering why the below works (more specifically I 
    am asking about the variables "i" and "j" why it works in the eval 
    and not in the other statement is my question) : 

    if (eval("document.game_assesment.row"+ i +"_"+ j +".checked") == 
    true) 

    but this give me an error : 
    document.game_assesment.row"+ i +"_"+ j +".checked = true; 

    I have also tried this, but it gives and error as well : 
    document.game_assesment.row'+ i +'_'+ j +'.checked = true; 

    The button's I am tried to access is : 

    <FORM NAME="game_assesment"> 
    <INPUT type="radio" NAME="row0_0" VALUE="0"> 
    <INPUT type="radio" NAME="row0_1" VALUE="0"> 
    <INPUT type="radio" NAME="row0_2" VALUE="0"> 
    </FORM> 

    Thanks for any help you could offer. 



    _______________________________________________ 
    Javascript mailing list 
    Javascript at LaTech.edu 
    http://www.LaTech.edu/mailman/listinfo/javascript 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010607/20572123/attachment.htm>


More information about the Javascript mailing list