CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 JavaScript line "has no properties".

Print topic Send  topic

Author Message
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"
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
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"
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.