So what I’m trying to do is have an ajax function that would sort a list in 
the view that is defined in the controller.

 

Ex.

View

<a onclick="ajax();">sort</a>

<div id=”my-list”>

{{for item in sorted_list:}}

<div id =”list-item”>

{{=item}}

</div>

{{pass}}

</div>

Controller

sorted_list = [some_array_elements]


ajax function


???

 

Any help on how to do this would be greatly appreciated ! :D

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to