On May 21, 2013, at 5:45 AM, Phuong Viet VU <phuongvv(a)exoplatform.com> wrote:
hi,
in ajax request, the html page is not re-rendered, and a GMD js module will not be served
(and run) 2 times. that's why the javascript code that register event on the DOM node
(which is replaced by another after ajax request) is not run
one solution is using the "live" mode or event handler delegation feature of
jQuery. You can register the event on the parent DOM that is not update after the ajax
request
Or you can use JavascriptManager to add callback for the require statement
Pls look at my comment on jira for details
On Mon, May 20, 2013 at 10:16 PM, Viliam Rockai <vrockai(a)redhat.com> wrote:
Hi all,
I've got an issue with JQuery when the page is refreshed by AJAX - the
javascript defined in gatein-resources.xml does not initialize properly:
https://issues.jboss.org/browse/GTNPORTAL-2875
Is there any known way how to solve this?
Viliam
_______________________________________________
gatein-dev mailing list
gatein-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev
_______________________________________________
gatein-dev mailing list
gatein-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev