Closed Bug 284750 Opened 19 years ago Closed 18 years ago

petrolvilla.it - javascript function on a select box doesn't work

Categories

(Tech Evangelism Graveyard :: Italian, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: goanimal, Assigned: lorenzo)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.7.6) Gecko/20050226 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.7.6) Gecko/20050226 Firefox/1.0.1

When you try to select another item on the select box (that by a javascrit
function redirect to another html page) it doesn't bring you on that page.

Reproducible: Always

Steps to Reproduce:
1.Select item from the box
2.at selection normally it will redirect to another page listed
3.

Actual Results:  
No redirect

Expected Results:  
redirect on another html page 

It works with IE
I get this js error:
Error: puntatore has no properties
Source File: http://www.petrolvilla.it/redazionale/4/art01.htm
Line: 13

This is the total function:
function vaiURL(){
var puntatore = document.getElementById("articoli");
url = puntatore.options[puntatore.selectedIndex].value;
document.location.href=url;
}

There is no element with id="aricoli", on a <select> with name="articoli".

Document.getElementById() can only used for elements with an id.
So this bug is invalid or a Tech Evangelism bug.
Assignee: firefox → italian
Component: General → Italian
Product: Firefox → Tech Evangelism
QA Contact: general → italian
Summary: javascript function on a select box doesn't work → petrolvilla.it - javascript function on a select box doesn't work
TE Letter sended.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: italian → lorenzo
Status: NEW → ASSIGNED
Target Milestone: --- → Mar
No response to TE letter.
Target Milestone: Mar → Future
Fixed, the select element now has id="articoli".
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.