Roger_Pe wrote:Try something like the following:> Hello,
> I'm new to DW development, so I wonder if someone could help me. Say my user
> selects a few cells in a column in a table, and then runs my command. How can
> I loop through the cells in the selection, so that I can read and write the
> text in each cell?
> I realise this is probably trivial if you know your way around the object
> model, but I don't, as yet.
var dom = dw.getDoentDOM()
// grab multiple selections, which corespond to pair's of offsets
var sel = dom.getSelection(true);
var objs = new Array();
// take current selection pair and convert to a tag
// and stuff into an array to play with
// set inertHTML of first node
| Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
| Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]