Closed Bug 223894 Opened 21 years ago Closed 20 years ago

Text selection boxes are empty

Categories

(Tech Evangelism Graveyard :: English Other, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 231353

People

(Reporter: list_7531, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030914
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030914

Hi,

When I access this websites job search section the "job group" list is empty.

Reproducible: Always

Steps to Reproduce:
1. Go to www.employmentservice.gov.uk
2. Click on "Job search now!"
3. Text list boxes are empty

Actual Results:  
Cannot select list items

Expected Results:  
Given me text in the "job group" list, which I can click on to get text in the
next box

I get the lists when using IE5
> 2. Click on "Job search now!"

I do not see such a link on that page... where is it?
there is now some redirection going on.  try instead
http://www.jobcentreplus.gov.uk/cms.asp?Page=/Home
which links to
http://www.jobcentreplus.gov.uk/cms.asp?Page=/Home/Customers/SearchforaJob
(this is the page with the problems)

Indeed, I do not see anything in the lists using Firebird nightly (Mozilla/5.0
(Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031027 Firebird/0.7+), but
I do see things in the lists in IE 6.  However, I don't think it's Mozilla's fault.

We have
<body onload="loadGroups();">
which invoked the loadGroups function, populating the left-most list.  Here is
that function:
function loadGroups() {
	var group = document.getElementById("jobGroup");
	group.length=groupArray.length;
	for(var i=0; i<groupArray.length; i++) {
		group.options[i].text = groupArray[i].groupName;
		group.options[i].value = groupArray[i].groupId;
	}
}

I get an error in the JavaScript console:
Error: group has no properties
Source File: http://www.sp5.jobcentreplus.gov.uk/Internet/JavaScript/JGTT.js
Line: 16

<-- snip -->
   var group = document.getElementById("jobGroup");
   group.length=groupArray.length;                    <--- line 16
<-- snip -->

We do have a control
<select size="5" class="select" name="jobGroup" onChange="changeType();">
but if memory serves, getElementByID is supposed to use the ID attribute, not
the name attribute (as on line 15)?  Boris?
Yeah.  IE treats getElementById as "getElementByIdOrNameOrWhateverYouFeelLike"...
Assignee: general → english-other
Status: UNCONFIRMED → NEW
Component: Browser-General → English Other
Ever confirmed: true
OS: SunOS → All
Product: Browser → Tech Evangelism
QA Contact: general → english-other
Hardware: Sun → All
Version: Trunk → unspecified

*** This bug has been marked as a duplicate of 231353 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.