• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can I use onChage event in Netscape 6?

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can I use onChage event in Netscape 6 if yes than I am using it for combo, In that what I have done is on the basis of certain selection I am enabling and disabling the button.
This is working fine in IE but nothing happens in nEtscape 6.
For your reference I am sending my code:
function forEnableDisable()
{
var objForm = document.reports;//"reports" is my form name.
var lsDesValue = objForm.cmbDesFormat.value;
if(lsDesValue=="PDF")
{
objForm.btnPrintReport.disabled=true;//"btnPrintReport" is the name of button which I want to disable.
}
else
{
objForm.btnPrintReport.disabled=false;
}
return true;
}
The above function I am calling from combo,as :
<select name="cmbDesFormat" class="clselectbox" tabindex = "6" size="1" onChange="forEnableDisable();">
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
everything fine with onchage event.
But, 1. disable is not working in Netscape, this is IE only attribute.
2. SELECT element does not have "value" property in NS - you should use
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic