View Full Version : Says I'm missing a ';'. Don't think so.

07-10-2002, 05:51 PM
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.

function finished(theform) {
var e = theform.newList.options;

// clean out then rebuild the original keyword list in the parent window

for (var i=0, i < e.length-1, i++) {
opener.addKeyword(e.options[i].text, e.options[i].value);

} // finished()

07-10-2002, 06:33 PM
How about opener.document.clearKeywordList();?

07-10-2002, 07:26 PM
Originally posted by RadarBob

for (var i=0, i < e.length-1, i++)

Maybe its just me, but it seems to me that statement should look like:

for (var i = 0; i < e.length - 1; i++)

Notice the semicolons as opposed to commas. :)

07-10-2002, 07:56 PM

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum