I have a list of items of the same type (let's say guests) and i display them in a listview. By clicking on the line I would be able to edit the single e开发者_如何学编程lement. All the elements have the same editing mask, so i would like to call the same page and pass a parameter. The only solution that i found it's:
<a href="edit-page" onClick="setParameter(32)">Element 32</a>
But actually I update the edit view on beforepageshow so in this case I have 2 different methods that run independently to archive this goal.
I was wondering if there is an elegant solution.
Thanks, Cesare
Can you not use a get parameter?
ie: href="edit-page?id=32"
精彩评论