Ok, I'll rephrase this:
- what's the best/ simpliest way of calling a controller from a view?
- using javascript? or escaping python code?
On Sunday, 15 April 2012 16:30:16 UTC+10, Simon Ashley wrote:
>
> Having difficulties coming up with an appropriate call back from a jstree
> triggered from a .bind event.
> Javascript/ JQuery/ jsTree code is as follows:
>
> .... ).bind("select_node.jstree", function (event, data) { "xxx" }
>
> what we're trying to do is to make the call back ("xxx") to the controller
> to fire off another form.
> While alert(data.rslt.obj.attr("id")); works, cant work out the
> appropriate code to get back to the controller.
> Have tried lines like:
>
> "ajax('index',[],'target')";
> "{{=URL('tree','stree','index')}}";
> etc, etc,
>
> without any success.
> Can hints?
>
>