Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 14056 invoked from network); 1 Apr 2006 09:32:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Apr 2006 09:32:14 -0000 Received: (qmail 28457 invoked by uid 500); 1 Apr 2006 09:32:11 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 28419 invoked by uid 500); 1 Apr 2006 09:32:11 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 28408 invoked by uid 99); 1 Apr 2006 09:32:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Apr 2006 01:32:10 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of bierbrauen@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nproxy.gmail.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Apr 2006 01:32:10 -0800 Received: by nproxy.gmail.com with SMTP id n29so763754nfc for ; Sat, 01 Apr 2006 01:31:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MnJTBhaEuQ+wnJCI3/T4F7CPinqIm8JMEOMnPdNWrbzFph93lWnAj2uh3VIVH6Q2pGfH8wtySOEIx83ROuMBLHK3144QxDHBheZClbtTlDiwjx+G6WSlD9aGWyXpmhxF5Zr0LZ1psxdVxRtKgdpEsMG4Pg0HfbaEwkpGpZb5QLQ= Received: by 10.48.231.6 with SMTP id d6mr897670nfh; Sat, 01 Apr 2006 01:31:48 -0800 (PST) Received: by 10.49.11.3 with HTTP; Sat, 1 Apr 2006 01:31:48 -0800 (PST) Message-ID: <311295120604010131w3ed1cb11l39c81f580e4adbe7@mail.gmail.com> Date: Sat, 1 Apr 2006 11:31:48 +0200 From: "=?ISO-8859-1?Q?Gerald_M=FCllan?=" To: "MyFaces Discussion" Subject: Re: [OT]Problem with accessing form Element using javaScript In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <442C9093.4030601@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I believe you can also access the style attribute over: elem.style.cssText =3D "..."; this should also work. cheers, Gerald On 4/1/06, Laurie Harper wrote: > Legolas Woodland wrote: > > Hi > > thank you for reading my post. > > I have this problem in my web application : > > generated html which i view in my browser has this : > > > > [code] > > > > > solid; border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, > > 0); height: 15px; left: 23px; top: 392px; position: absolute; width: > > 145px">My test Value > > [/code] > > > > In my java Script function i have: > > > > [code] > > function setNewColors(obj) > > { > > if(obj=3D=3D'Yellow'){ > > document.getElementById("form1:statictext8").style =3D" left: 25px; top= : > > 383px; position: absolute; width: 143px; border-width: 1px; > > border-style: solid; border-color:#fdffca; background-color:#fdffca; > > color: #000000;"; > > } > > } > > [/code] > > > > i trigger the color change function in : > > [code] > >