This should work:
document.getElementById('content').style.width = '100%';
What do you get when you try this?
Dave
-----Original Message-----
From: Misha Mishyn [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2008 9:49 PM
To: CF-Newbie
Subject: RE: getElementById("...').style.width
Try this:
***************************************************
var obj = document.getElementById('content');
obj.style.width = '100%';
***************************************************
Regards,
Misha
-----Original Message-----
From: Walter Conti [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2008 10:24 PM
To: CF-Newbie
Subject: getElementById("...').style.width
alert(document.getElementById('content').style.width);
returns the width in "%" as expected
bu if I want to set a different width:
document.getElementById('content').style.width = 100%; //or "100%"
the all function ...() is not even recognized.
Thanks for helping.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3881
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15