How to invoke Dialog from client script

Oct 14, 2011 at 12:24 AM
Edited Oct 14, 2011 at 12:31 AM

I have a list of items that I want to edit individually in a Dialog.  I need to be able to pass an item id to the Dialog to retrieve the appropriate item specified.  I would like to do this by invoking some client side script that takes the id and pops the Dialog?  I can't seem to find out how to do it from the client.

I know it can also be done by specifying multiple TargetIDs (array of strings), but if I go that route I can't see how to pass the selected item id to Dialog when it pops.