Patrick Kwinten
Patrick Kwinten

Reputation: 2048

XPages - init a CSJS function with every partial refresh

I would like to inititiate a csjs function every time a partial refresh is triggered/completed in XPages.

How can I do this?

Upvotes: 0

Views: 40

Answers (2)

D.Bugger
D.Bugger

Reputation: 2359

Did you try the partial hijack code in combination with a dojo subscribe ? See http://dontpanic82.blogspot.fr/2010/01/xpages-hijackingpublishing-partial.html

Upvotes: 1

Oliver Busse
Oliver Busse

Reputation: 3395

Assuming your partially refreshed element is a container, just place a script block inside this container and call your CSJS script.

Upvotes: 1

Related Questions