Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 61826 invoked from network); 16 Apr 2005 13:50:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Apr 2005 13:50:25 -0000 Received: (qmail 53275 invoked by uid 500); 16 Apr 2005 13:50:24 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 52718 invoked by uid 500); 16 Apr 2005 13:50:21 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 52704 invoked by uid 99); 16 Apr 2005 13:50:21 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of benpope81@gmail.com designates 64.233.184.194 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.194) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 16 Apr 2005 06:50:20 -0700 Received: by wproxy.gmail.com with SMTP id 58so1085048wri for ; Sat, 16 Apr 2005 06:50:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=k7Hp5WO236+BlKoSaNTUFPxGcaJb3jbVBTGQAf9i/99CGw+hEr/TzmGzYvt+7vSxiYscdFUpcHfamid5FEGxF7Ywp6j4Ok5zQhU8k0NFb7ZaxOj5f/RS7/XrxEZQBMhG2Gt/ZKTKd8HkDcN0HQ6mxzteqk33IiT3AtUY2WsPoyI= Received: by 10.54.3.10 with SMTP id 10mr795273wrc; Sat, 16 Apr 2005 06:50:19 -0700 (PDT) Received: from ?137.205.30.172? ([137.205.30.172]) by mx.gmail.com with ESMTP id d6sm452455wra.2005.04.16.06.50.17; Sat, 16 Apr 2005 06:50:19 -0700 (PDT) Message-ID: <4261181C.5010701@gmail.com> Date: Sat, 16 Apr 2005 14:50:20 +0100 From: Ben Pope User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Transparent and automatic AJAX support for CForms References: <425E6DE5.30705@apache.org> <4260F97D.9000205@gmail.com> <4260FDEC.2030208@mobilebox.pl> <426104E9.2090706@apache.org> In-Reply-To: <426104E9.2090706@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > Leszek Gawron wrote: >> It looks really promising. I was not able to run the samples. Firefox >> has rendered the retrieved list as text (outside selection widget). IE >> just showed javascript error and did nothing. > > > > Doh! I understand why you say "promising" :-( > > I tested it successfully with Firefox 1.0 on MacOS and Windows and IE 6. > The behaviour you describe with Firefox is what I had to fight a lot > with: Node.importNode() effectively imports nodes, but that doesn't mean > they're considered as HTML nodes, in which case only their text is > displayed. > > If you look at the new DOMUtils.importNode() in the new cforms.js, > you'll see the quirks I used to workaround this weirdness: use ".xml" > and ".innerHTML" properties with IE, and traverse the node tree for > other browsers. I'm far from being a JS-on-browsers expert, so that may > for sure not be the most "compatible" solution. > > Is there something printed in Firefox's JS console, and what is the IE > error? I.e. says: Line: 91 Char: 5 Error: Object doesn't support this property or method. Code: 0 The line in question: xmlhttp.open("GET", "xhr_cars/" + make.value, true); Perhaps thats make.value with the problem? Firefox on Windows doesn't say anything, it's quite happy. Ben