nittl.com - uses MSIE array access () instead of []

RESOLVED INCOMPLETE

Status

Tech Evangelism Graveyard
English US
RESOLVED INCOMPLETE
14 years ago
3 years ago

People

(Reporter: Morrie Marino, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

14 years ago
A form object is created in javascript code. When a SELECT variable is 
referenced using a subscript or index the following error occurs:

frm.frmLeagues is not a function

on the following line of code:

			frm.frmPassKey.value = frm.frmLeagues
(frm.frmLeagues.selectedIndex).value



from the following script code:


<script language="JavaScript">

function functProcessSubmit(mode)
	{
	var frm = new Object();
	frm = document.formLeagueList;

	switch(mode)
		{
		case "VIEW":
			
			frm.frmPassKey.value = frm.frmLeagues
(frm.frmLeagues.selectedIndex).value
			frm.action = "StandingsLeague.php";
			break;

		case "CLOSE":
			
			window.close();
			frm.action = "Standings.php";
			break;

		}

		frm.submit();
	}

</script>

Comment 1

14 years ago
Improper indexing of select element. See http://www.metalz.org/nittl.com.html
for an example of correct indexing.

Not a bug.

Updated

14 years ago
Assignee: bugs → english-us
Component: Form Manager → English US
Product: Firefox → Tech Evangelism
QA Contact: form-manager → english-us
Version: 1.0 Branch → unspecified
confirm
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: object created in javascript gets the error "is not a function" when accessing the variable with a subscript or index → nittl.com - uses MSIE array access () instead of []

Comment 3

7 years ago
INCOMPLETE due to lack of activity since the end of 2009.

If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.

Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INCOMPLETE
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.