Re: very annoying textarea problem in quickform...
| From: | rav k | Date: | Thu, 21 Dec 2006 14:04:24 +0000 |
| Subject: | Re: very annoying textarea problem in quickform... | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26167@lists.php.net to get a copy of this message | ||
Thanks for the help guys, so now I need to look at learning using a renderer something so simple as adding a label to a textarea..
Can anyone just advise how I can do this using the default renderer as I just don't have the time to learn how to use any other renderers or start changing all of my forms...
There must be a quick way to do this??
www.bitesoftware.com - software for a better lifestyle
From: arnaud sellenet <demental@free.fr> To: pear General <pear-general@lists.php.net> Subject: Re: [PEAR] very annoying textarea problem in quickform... Date: Thu, 21 Dec 2006 14:50:59 +0100 MIME-Version: 1.0 (Apple Message framework v752.3) Received: from lists.php.net ([216.92.131.4]) by bay0-mc8-f5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 21 Dec 2006 05:53:54 -0800 Received: from [216.92.131.4] ([216.92.131.4:24105] helo=lists.php.net)by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTPid 1C/27-61157-1F19A854 for <rav220@hotmail.com>; Thu, 21 Dec 2006 08:53:53 -0500 Received: (qmail 99655 invoked by uid 1010); 21 Dec 2006 13:52:33 -0000 Received: (qmail 99645 invoked by uid 1010); 21 Dec 2006 13:52:32 -0000 Received: error (pb1.pair.com: domain free.fr from 84.96.94.18 cause and error) X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK3oXsmRrh6gU= Return-Path: <pear-general-return-26165-rav220=hotmail.com@lists.php.net> X-Host-Fingerprint: 216.92.131.4 lists.php.net Mailing-List: contact pear-general-help@lists.php.net; run by ezmlm Precedence: bulk list-help: <mailto:pear-general-help@lists.php.net> list-unsubscribe: <mailto:pear-general-unsubscribe@lists.php.net> list-post: <mailto:pear-general@lists.php.net> Delivered-To: mailing list pear-general@lists.php.net Delivered-To: ezmlm-scan-pear-general@lists.php.net Delivered-To: ezmlm-pear-general@lists.php.net Authentication-Results: pb1.pair.com smtp.mail=demental@free.fr; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=demental@free.fr; sender-id=unknown X-PHP-List-Original-Sender: demental@free.fr X-Host-Fingerprint: 84.96.94.18 18.94.96-84.rev.gaoland.net References: <BAY108-F197E717A7F9D669917F9F89ACE0@phx.gbl> X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: by amavisd-new at X-Spam-Status: No, hits=-1.477 tagged_above=-999 required=14 tests=AWL, BAYES_00, MAILTO_TO_SPAM_ADDR X-Spam-Level: X-OriginalArrivalTime: 21 Dec 2006 13:53:54.0564 (UTC) FILETIME=[74115440:01C72507] When you use advcheckbox, or checkbox or radio, it's the 'text' variable that's showing up, not the label. Did not try but I guess so. You might use setElementTemplate to customize this, or use a template engine with HTML_QuickForm_Renderer_Array for a more advanced label control (this way you can add notes, tips, suffix or prefix and so on, for each form element and/or group element) Le 21 déc. 06 à 14:26, rav k a écrit :_________________________________________________________________ Think you're a film buff? Play the Movie Mogul quiz and win fantastic prizes! http://www.msnmoviemogul.comHi I am using the default template. When I use advcheckbox the individual element labels show fine. When I use textarea they don't. What is the solution around this? www.bitesoftware.com - software for a better lifestyle-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpFrom: "Nicolás Eugenio Ozimiça" <nozimica@gmail.com> To: "rav k" <rav220@hotmail.com> CC: pear-general@lists.php.net Subject: Re: [PEAR] very annoying textarea problem in quickform... Date: Thu, 21 Dec 2006 10:20:08 -0300 MIME-Version: 1.0 Received: from wr-out-0506.google.com ([64.233.184.234]) by bay0- mc12-f14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 21 Dec 2006 05:20:09 -0800_________________________________________________________________ It's Hotmail's 10th Birthday! Come and play Pass the Parcel http:// www.msnpasstheparcel.com -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpReceived: by wr-out-0506.google.com with SMTP id 67so2102482wri for <rav220@hotmail.com>; Thu, 21 Dec 2006 05:20:08 -0800 (PST) Received: by 10.78.201.15 with SMTP id y15mr824378huf. 1166707208228; Thu, 21 Dec 2006 05:20:08 -0800 (PST) Received: by 10.78.154.13 with HTTP; Thu, 21 Dec 2006 05:20:08 -0800 (PST)X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK3oXsmRrh6gU=DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message- id:date:from:to:subject:cc:in-reply-to:mime-version:content- type:references; b=ppRb+/PampV6BxCP3AokF76gWGmVotTty2VN +bwrRPl9Irn/gC4YRKtyNU/ khv4AIiP71S2VdDCaAi8jLePJdiA9S0AMfG9RksQ17m31kp9mntaXzGcAWFsTrWckgMsy uuoM7dfynSg+5WYBys2Rz/ji09uvdT+Z3qqm1FsPdMY=References: <BAY108-F9730CCE13C67CE0E615E79ACE0@phx.gbl> Return-Path: nozimica@gmail.com X-OriginalArrivalTime: 21 Dec 2006 13:20:10.0069 (UTC) FILETIME= [BD5FE850:01C72502] Hi! Are you using templates? And is displayed the label of the first textarea in the group? As far as I know, if you group elements and you use the default template, there is room for only one label (the one of the group itself), and the labels of the elements in the group are ignored... On 12/21/06, rav k <rav220@hotmail.com> wrote:Hi All I'm trying to do is add a group of textareas and give each one a label. When I do this with advcheckboxes it works ok, but for some reason the textareas dont show their labels and the code looks correct. What is going on???!?! Here's my code: $res =& $mdb2->query('SELECT * FROM Skills'); $skills = array(); while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {-- Nicolás Eugenio Ozimiça Universidad de Chile$skills[] = &HTML_QuickForm::createElement('textarea',$row['skillid'], $row['skillname'], 'rows=4 cols=30'); } $form->addGroup($skills, 'skills', 'Your requirements:', '<br />'); I've done print_r and the correct $row['skillname'] is returned so I know the correct values are there. But they just aren't showing for some reason. I've tried to remove the skillgroup label but not working!! Please help! Thanks rav www.bitesoftware.com - software for a better lifestyle _________________________________________________________________ It's Hotmail's 10th Birthday! Come and play Pass the Parcel http://www.msnpasstheparcel.com -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php