I did something just like what you need using jquery. I needed auto-complete, dynamic fields and other stuff that really needs jquery. The way I did this was injecting variables like ticket state, ticket owner, current user in the genshi template, and getting them via jquery. If user wasnt the owner, I just disabled all the fields from the ticket, because in my trac, only the owner could change the ticket. (it was more like a form, using 300+ fields - I used tracforms). That's just a general idea... I also injected something to don't show ticket page of javascript was disabled, it would just show a warning telling the user to enable javascript. The bad side is that it is javascript dependent =(, but it worked.
Regards,
Hugo Milhomens
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/DMZOn0ElVGgJ.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.