Motaro
Posts: 8
|
| Posted: 11/14/2006, 11:51 AM |
|
My problem is that i'm populating a listbox with values taken from the database, onchange event of the listbox i have a reference to a javascript function with the next line :
window.location.href = "InfoPage.asp?site_id=" + document.getElementById('ListBox2').options[index].value;
The error that i'm receiving is that it has no properties, or the value i'm referencing doesn't exist. I've tried it with Firefox and IE. Both are giving me more or less the same error. If anyone has an idea of what it is please help!!!!
_________________
"Democracy is the name we give others when we need something from them" |
 |
 |
Oper
Posts: 1195
|
| Posted: 11/14/2006, 7:23 PM |
|
window.location.href = "InfoPage.asp?site_id=" + Form.ListBox2.value;
Form.ListBox2.value <-- Case Sensitive
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
Edd
Posts: 547
|
| Posted: 11/14/2006, 11:35 PM |
|
Motaro,
Try:
window.location.href = "InfoPage.asp?site_id=" + document.NameOfForm.ListBox2[document.NameOfForm.ListBox2.selectedIndex].value;
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
Motaro
Posts: 8
|
| Posted: 11/15/2006, 5:25 AM |
|
Well guys thank you very much it worked.
_________________
"Democracy is the name we give others when we need something from them" |
 |
 |