Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Pyramid + Dojo

Received: by 10.52.24.68 with SMTP id s4mr4436534vdf.3.1336684159434;
        Thu, 10 May 2012 14:09:19 -0700 (PDT)
X-BeenThere: pylons-discuss@googlegroups.com
Received: by 10.220.153.198 with SMTP id l6ls2876939vcw.6.gmail; Thu, 10 May
 2012 14:09:15 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.69.48 with SMTP id b16mr273713vdu.13.1336684155866; Thu, 10
 May 2012 14:09:15 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 fabian...@gmail.com designates internal as permitted sender)
 smtp.mail=fabian...@gmail.com; dkim=pass
 header...@gmail.com
Received: by p1g2000vbv.googlegroups.com with HTTP; Thu, 10 May 2012 14:09:15
 -0700 (PDT)
Date: Thu, 10 May 2012 14:09:15 -0700 (PDT)
In-Reply-To: <4276067.891.1336674689655.JavaMail.geo-discussion-forums@ynjn15>
References: <5f66c2b2-3292-43c0-bb48-ba2ccebb41a4@n19g2000yqk.googlegroups.com>
 <4276067.891.1336674689655.JavaMail.geo-discussion-forums@ynjn15>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
 Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
 3.0.30729; InfoPath.3; FDM; MANM),gzip(gfe)
Message-ID: <22a26c68-ba40-4826-aad8-78e74798f290@p1g2000vbv.googlegroups.com>
Subject: Re: Pyramid + Dojo
From: =?ISO-8859-1?Q?Fabian_Jim=E9nez?= <fabian...@gmail.com>
To: pylons-discuss <pylons-discuss@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Really no, I test it configuring apache (without zpt code) and
works !.


On 10 mayo, 13:31, binadam <ibnad...@gmail.com> wrote:
> Shouldn't this part:
> =A0 =A0 require(["dojo/fx", "dojo/dom", "dojo/domReady!"], function(dom, =
fx) {
>
> be:
> =A0 =A0 require(["dojo/fx", "dojo/dom", "dojo/domReady!"], function(fx, d=
om) {
>
> i.e. you have to match the order of the function params with the requires=
?
>
>
>
> On Wednesday, May 9, 2012 7:19:36 PM UTC-7, Fabian Jim=E9nez wrote:
>
> > Hello to all, I'm novice in pyramid and chameleon. I need to integrate
> > zpt templates with Dojo. Next a test code, Javacript console gives the
> > error: "Uncaught TypeError: Object #<an Object> has no method
> > 'byId'".
>
> > Thanks in advance. (Sorry, my english)
>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > =A0 =A0 =A0 =A0 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > <html xmlns=3D"http://www.w3.org/1999/xhtml" xmlns:tal=3D"http://
> > xml.zope.org/namespaces/tal">
> > <head>
> > <meta http-equiv=3D"content-type" content=3D"text/javascript;
> > charset=3Dutf-8" />
> > <title>Test</title>
> > =A0 =A0 =A0 =A0 <script type=3D"text/javascript" src=3D"$
> > {request.static_url('mysamples:static/js/dojo/dojo.js')}"
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0data-dojo-config=3D"async: true"></scrip=
t>
> > </head>
> > <body>
>
> > <h1 class=3D"title">Welcome</h1>
> > <p>Name: <b tal:replace=3D"banco.ban_name">Name</b></p>
> > <p>Value: <b tal:replace=3D"banco.ban_sricod">Value</b></p>
> > <p>Id: <b tal:replace=3D"banco.ban_code">Id</b></p>
>
> > <h1 id=3D"greeting">Hello world</h1>
> > <script type=3D"text/javascript">
> > =A0 =A0 require(["dojo/fx", "dojo/dom", "dojo/domReady!"], function(dom=
,
> > fx) {
> > =A0 =A0 =A0 =A0 =A0 =A0 var greeting =3D dom.byId("greeting");
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 greeting.innerHTML +=3D " from Dojo!";
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fx.slideTo({
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 top: 200,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 left: 300,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 node: greeting
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }).play();
> > =A0 =A0 });
> > </script>
> > </body>
> > </html>- Ocultar texto de la cita -
>