id property modified by Athena

I have this Nevow.Athena code: <div xmlns:nevow="http://nevow.com/ns/nevow/0.1" xmlns:athena="http://divmod.org/ns/athena/0.7" nevow:render="liveElement"> <h2>Grafica</h2> <div id="placeholder" style="width:600px;height:300px">****</div> </div> When the live element is rendered, the id is changed to something like athena:1-placeholder. This gived me some headaches using JQuery $(#id) form. Does anyone know something about this? Greets! PS: I use the name attribute now. -- Juanjo Conti

On Tue, 7 Jul 2009 12:25:00 -0300, Juanjo Conti <jjconti@gmail.com> wrote:
I have this Nevow.Athena code:
<div xmlns:nevow="http://nevow.com/ns/nevow/0.1" xmlns:athena="http://divmod.org/ns/athena/0.7" nevow:render="liveElement">
<h2>Grafica</h2> <div id="placeholder" style="width:600px;height:300px">****</div> </div>
When the live element is rendered, the id is changed to something like athena:1-placeholder.
This gived me some headaches using JQuery $(#id) form. Does anyone know something about this?
Athena also provides an API to determine what the id value is rewritten to. See Nevow.Athena.Widget.translateNodeId. I'm not familiar with the JQuery API you're talking about. Does this help? Jean-Paul
participants (2)
-
Jean-Paul Calderone
-
Juanjo Conti