Documentation is definitely an issue at this point. Although it's expanding.
Not sure what you mean with your synchronous question and the "object that exists".
Not sure what you mean with your synchronous question and the "object that exists".
screen root() {
header("Title")
$("#div").someplugin();
}Can't do that. I tried to get around this by creating a control, but from what I can tell controls return html, not objects.
screen root() { mydiv@<div/> script { mydiv.someplugin(); } }
mydiv will be bound to a JQuery object representing the div. You can also just do this:
screen root() { script { $("#div").someplugin(); } }
So generally your answer is: put it in a script { ... } block.