[Seaside] jQuery html replace

Robert Sirois watchlala at hotmail.com
Mon Jul 20 14:29:54 UTC 2009


<div id="surveySelect" class="questionDisplay"><select>
Selects the survey
</select><br/><button>
View this survey.
</button><div id="display">

<div>
a result
</div><div>
a result
</div>
...

<div id="surveySelect" class="questionDisplay">
also contains select and button
</div></div></div>
I don't think I'm getting any errors from FireBug (I'm not sure what they look like either). The div is there, though, or the results wouldn't been rendered at all. Nothing would happen when you click the button. Somehow, it's getting a copy of the containing div in there with it as well.

RS

> Date: Mon, 20 Jul 2009 10:19:35 +0200
> Subject: Re: [Seaside] jQuery html replace
> From: renggli at gmail.com
> To: seaside at lists.squeakfoundation.org
> 
> > I've tried taking the div out of the #with: statement where the select box
> > and button are also in, but that does not seem to help. There are a couple
> > other places I have been using the jQuery replace code, and it appears to be
> > working correctly in those instances.
> 
> Are you sure the DIV is still there when you perform the action?
> jQuery simply ignores actions on queries that do not match anything,
> that's sometimes quite confusing.
> 
> If that's not the problem, then FireBug should tell you more in form
> of an error message.
> 
> Lukas
> 
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_________________________________________________________________
Windows Live™ SkyDrive™: Store, access, and share your photos. See how.
http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090720/6b3cf037/attachment.htm


More information about the seaside mailing list