Click to See Complete Forum and Search --> : [RESOLVED] Show/hide only works in Opera 9


Moldarin
07-16-2006, 11:11 PM
Hi,

The «Advanced» link on the Mailto.ws composer Webpage (http://mailto.ws/) is supposed to show some additional, hidden options.

But my JavaScript does only work in the Opera Web browser (http://opera.com/)!

I cannot get it to work in either Firefox, Camino, Safari nor Internet Explorer 7.

Can anyone please cast some light to this mystery.

(note: the JavaScript has to stay XHTML compliant)

felgall
07-17-2006, 01:24 AM
Try replacing:

formcopies.setAttribute("style", "display:block;");

with

formcopies.style.display = 'block';

most browsers don't support setAttribute() properly yet.

Moldarin
07-17-2006, 02:08 AM
But then it will not work with XHTML. :/

Moldarin
07-18-2006, 02:11 PM
OK, I fixed it myself now.

Thanks anyway!