also, if its not working in firefox try using the addon Firebug.  It
will allow you to debug and step through your javascript, you can then
see what is happening and why the fields are staying visible.

On 4 Oct, 17:26, JaffaB <[EMAIL PROTECTED]> wrote:
> All,
>
> I have an ASP.NET application which works 100% in Internet Explorer,
> but has a fault when run in FireFox.   On one form, I have a drop down
> control which when a value is set, makes a command box visible.  When
> the drop down is used in Internet Explorer, the button appears but in
> Firefox, the command box stays invisible.   The coding for this
> control is done in the ASPX java code as follows:
>
> At the start of the code, I set the attributes on the drop down to
> call the show commands as follows:
>
> drpType.Attributes.Add("onChange",
> "JavaScript:ShowButtonsOnConnection();")
>
> Then we have the main command to make the button visible and change
> the button text as follows:
>
> function ShowButtonsOnConnection()
> {
> try{
> if
> (document.getElementById('ctl00$ContentPlaceHolder1$drpType').value=='Null'­)
> {document.getElementById('ctl00_ContentPlaceHolder1_btnConType').style.visi­bility='hidden';}
>
> else if
> (document.getElementById('ctl00$ContentPlaceHolder1$drpType').value=='O')
> {document.getElementById('ctl00_ContentPlaceHolder1_btnConType').style.visi­bility='visible';
> document.getElementById('ctl00_ContentPlaceHolder1_btnConType').value='ODBC
> Admin';}
>
> }
>
> catch(response)
> {
>
> }
> }
>
> Can anybody suggest how I get this to function in Firefox?
>
> Thanks
>
> Jaffa

Reply via email to