Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Round Rock, Texas
    Posts
    443
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Says I'm missing a ';'. Don't think so.

    Here is a function that is giving me the following error: Error: Expected ';' and points to the blank line immediately below opener.clearKeywordList();

    clearKeywordList() is a function in the parent window. I'm trying to pass data back to it - see the thread Creating dynamic list from child window...

    BTW, newList is a <SELECT> object.

    PHP Code:
    function finished(theform) {
       var 
    theform.newList.options;
       
       
    // clean out then rebuild the original keyword list in the parent window
       
    opener.clearKeywordList();

       for (var 
    i=0e.length-1i++) {
          
    window.
          
    opener.addKeyword(e.options[i].texte.options[i].value);
       }
       
       
    window.close();
    }  
    // finished() 

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    627
    Thanks
    1
    Thanked 20 Times in 20 Posts
    How about opener.document.clearKeywordList();?

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts

    Re: Says I'm missing a ';'. Don't think so.

    Originally posted by RadarBob

    PHP Code:
       for (var i=0e.length-1i++) 
    Maybe its just me, but it seems to me that statement should look like:

    PHP Code:
      for (var 0e.length 1i++) 
    Notice the semicolons as opposed to commas.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Round Rock, Texas
    Posts
    443
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

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