Monday, June 6, 2011

Js-Alink() inside an AJAX-updated element

Hi all,
first, thanks for all the replies so far. I read them all, I just
don't want to spam the group with 2-word-"thank you" posts :)

My latest problem seems to be quite old... I use the Js-link() method
inside a table that is updated by AJAX (Jquery?). On the first
(normal) load the link gets its id-param:
<a href="..." id="link-12345678">
And it is followed by the script block:
<script type="text/javascript">$("#link-2101013673").bind ...
When it is AJAX-updated, the link is still correctly created, with the
id-param, but the script block is missing. Like here:
http://cakephp.1045679.n5.nabble.com/Using-Ajax-in-an-Ajax-rendered-View-td1282624.html
http://cakephp.1045679.n5.nabble.com/ajax-gt-link-after-ajax-updater-td1299153.html

So is there a solution to this problem? A workaround? Or how do you
create your AJAX-links?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: