Closed Bug 274975 Opened 20 years ago Closed 13 years ago

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

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: mmarino, Unassigned)

References

()

Details

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>
Improper indexing of select element. See http://www.metalz.org/nittl.com.html
for an example of correct indexing.

Not a bug.
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 []
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
Closed: 13 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.