I'm having a browser compatibility problem.

Each time I click on a record (from an a href onclick in frame #1), it fires
off the SelectEntity() function and is supposed to add the selected record
to a select box named "avlList" in frame #2.

Anyone have any idea why this won't work in IE5 but does in NS4.7?

//clear select box on page load
parent.RightSide.document.DataForm.avlList.options.length = 0;

//populate select box when user selects records from record list
function SelectEntity(UCode,UValue) {
        var target =
parent.RightSide.document.DataForm.avlList.options.length-1;
            NewOpt = new Option;
        NewOpt.value = UCode;
        NewOpt.text = UValue;
        parent.RightSide.document.DataForm.avlList.options[target+1] =
NewOpt;
        }



Chris
------------------------------------------------------------------
Chris Lomvardias
[EMAIL PROTECTED]
Syscom, Inc.
400 E. Pratt Street, Suite 300
Baltimore, MD 21202
(410)539-3737 x1722 voice
(410)539-7302 fax
[EMAIL PROTECTED] (pager via email)
http://www.syscom-inc.com/
------------------------------------------------------------------

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to