Sent by Porter Glendinning on 8 February 2002 16:04
At 16:34 2/8/02, Merkey, Brett digitized these thoughts:
>I just created and tested this below. The style in the stylesheet was
>width:400px. The scripted button retrieves and changes the width no problem.
As an aside, it's generally nicer to post only pieces of HTML code and
not entire pages. It's more email-client-friendly.
On to the issue at hand... Your code does not try to */read/* a style
property. It simply sets it to a certain value:
document.getElementById('testing').style.width = '200px';
This is not what we're talking about. Try changing that onClick code to
something that attempts to */read/* a property that's set externally,
like this:
alert(document.getElementById('testing').style.width);
And you should see what we're talking about.
- Porter
+--------------------------------------------------------+
| Porter Glendinning [EMAIL-REMOVED] |
| Web/UI Commando http://www.glendinning.org |
+--------------------------------------------------------+
| Porter's Workshop - http://www.serve.com/apg/workshop/ |
+--------------------------------------------------------+