Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Dr J R Stockton Newsgroups: comp.lang.javascript Subject: Re: Shrinking the width of a WIDTH=100% table Date: Sat, 21 Jan 2012 20:50:14 +0000 Organization: Home Lines: 40 Message-ID: <9SpAtIIGUyGPFwR4@invalid.uk.co.demon.merlyn.invalid> References: <8nsih7pjdunj21096qub8tnr1mluk2bons@4ax.com> NNTP-Posting-Host: JfH6RRPWQh8XzArFI0xgxA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Turnpike/6.05-S () X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:10461 In comp.lang.javascript message <8nsih7pjdunj21096qub8tnr1mluk2bons@4ax. com>, Fri, 20 Jan 2012 14:04:31, Swifty posted: >I have a CGI script that builds a table with "WIDTH=100%" > >There are many paths through the code, but they all required the table >to be WIDTH=100% > >Now, I find that in just one of the paths, it would be better if that >WIDTH=100% had not been specified. > >Is there any JavaScript that I can insert, after the has >already been started, which will remove the effect of the WIDTH=100% > >I'm open to a CSS solution as well, but there are other tables in the >same page which must remain WIDTH=100% so it would have to be specific >to just this one table. > >N.B. My environment ensures that all users will have JavaScript >enabled. That suggests to me that your CGI is emitting the table piece-by-piece, which makes it harder to change what has already been sent. Perhaps you can instead collect the table within the CGI as a string, or as an array of strings later joined, and send it out from CGI only when you can no longer want to change it. You can then alter the width in the table within the CGI, before sending. Conceivably, your code could be clearer if the table were contained within a div, and that of size 100% or not - or otherwise. -- (c) John Stockton, nr London UK. ?@merlyn.demon.co.uk DOS 3.3 6.20 ; WinXP. Web - FAQqish topics, acronyms & links. PAS EXE TXT ZIP via My DOS - also batprogs.htm.