Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 14515 invoked from network); 20 Jul 2007 07:11:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 07:11:22 -0000 Received: (qmail 53844 invoked by uid 500); 20 Jul 2007 07:10:46 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 53793 invoked by uid 500); 20 Jul 2007 07:10:45 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 53782 invoked by uid 99); 20 Jul 2007 07:10:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 00:10:44 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.38.172] (HELO web51306.mail.re2.yahoo.com) (206.190.38.172) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 20 Jul 2007 00:10:41 -0700 Received: (qmail 74595 invoked by uid 60001); 20 Jul 2007 07:10:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=JdKHpvedc5fKJVfrJXtD6dri6N82QIG7tkapyPB+uBcJfQEGmU6pUtMLo9x0BJKRtgRIx2iCRwCpU9lwOCXV3vZ5bzkwXMTRGRHEyOhGJn7948oNuP+vBOcHTeaoiqFo1UjSa9E0ZKmOBUYHfR/77sCNkyhCP0YsgtwPlpkpo2w=; X-YMail-OSG: 1z9_OzwVM1l_SuGq_gdxiPXTlxRh1g5LFTNs7zrKBVAvsE4p26PbaiZuEdotXVixb0bT2M_ZexeEVmtXntEtBwpkO2h_.Mz.UIVxEj.QF5qIERnMW8ejPj7kxNZAE5jN6v0xUdKnC3wUrOgMezBWnPWM Received: from [213.140.9.230] by web51306.mail.re2.yahoo.com via HTTP; Fri, 20 Jul 2007 00:10:20 PDT X-Mailer: YahooMailRC/651.41 YahooMailWebService/0.7.119 Date: Fri, 20 Jul 2007 00:10:20 -0700 (PDT) From: Vaduvoiu Tiberiu Subject: cocoon and ajax url path To: users@cocoon.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <213215.74497.qm@web51306.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm trying to use a ajax function to load an xml...the function is one = that is frequently used/presented in ajax tutorials:=0A=0Afunction loadXMLD= oc(url) =0A{=0A // branch for native XMLHttpRequest object=0A if (win= dow.XMLHttpRequest) {=0A req =3D new XMLHttpRequest();=0A req= .onreadystatechange =3D processReqChange;=0A req.open("GET", url, tr= ue);=0A req.send(null);=0A // branch for IE/Windows ActiveX versi= on=0A } else if (window.ActiveXObject) {=0A req =3D new ActiveXOb= ject("Microsoft.XMLHTTP");=0A if (req) {=0A req.onreadyst= atechange =3D processReqChange;=0A req.open("GET", url, true);= =0A req.send();=0A }=0A }=0A}=0A=0A=0Athis pretty much= works on static sites in html but as I am using cocoon, I am having proble= m giving the url of the xml...=0Ain xslt i am using something like this to = load an xml or to display a certain value from an xml:=0A=0Adocument(concat= ('cocoon:/','preview','/',folder1/folder2/,file.xml))/root/node=0A=0Abut in= ajax if try calling loadXMLDoc(cocoon:/preview/folder1/folder2/file.xml) s= urely enough it doesn't work. So has anyone had similar problem and found a= ny solution? 10x=0A=0A=0A =0A________________________________________= ____________________________________________=0ANeed a vacation? Get great d= eals=0Ato amazing places on Yahoo! Travel.=0Ahttp://travel.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org