EJS Callback Function

572 views
Skip to first unread message

Travis

unread,
Oct 18, 2010, 6:43:02 PM10/18/10
to Embedded JavaScript
After an EJS template is rendered and injected into the DOM, I need to
perform some actions on the resulting elements. Is there any way to
specify a callback function that would be invoked AFTER the EJS
template has been rendered and added to the DOM? If it makes a
difference, I am currently looking at using EJS with JMVC. Thanks!

sodamnmad

unread,
Oct 18, 2010, 6:58:47 PM10/18/10
to Embedded JavaScript
The requests for loading the templates and setting the node content
_should_ be synchronous, so there should be no need for a callback.

Travis

unread,
Oct 19, 2010, 10:04:10 AM10/19/10
to Embedded JavaScript
Cool...thanks for the reply. I was hoping that would be the case, but
I wasn't sure if that would be a safe assumption to make or not.
Reply all
Reply to author
Forward
0 new messages