I've got a controller which displays a list of documents in the index action. There are action links for each document, 'view' and 'edit' are normal links that go to the pages, but 'delete' and 'publish' are ajax links that replace content in the actions div.
This works perfectly, however I am now trying to implement the 'view' page, and I'm having trouble re-using those ajax actions.
Above the document details in the 'view' page there should be a menu with 'edit', 'delete' and 'publish'. The problem is that the update divs are not the same for the index and view pages so the ajax actions don't update anything visible on the 'view' page.
i'm not sure if i have explained this very well, so please ask for more information if necessary.
Grateful someone has some ideas about re-using the ajax actions in a different view with different elements.
Thanks
Matt