Iterate docks on client

2 posts, 0 answers
  1. Mark Davison
    Mark Davison avatar
    82 posts
    Member since:
    Jul 2005

    Posted 18 Jun 2007 Link to this post

    Hi,

    Can anyone tell me how to iterate all the dock in a dockzone using javascript on the client? I think I will somehow need to use get_docks but I cannot find an example of this.

    Regards,

    Mark
  2. Mark Davison
    Mark Davison avatar
    82 posts
    Member since:
    Jul 2005

    Posted 18 Jun 2007 Link to this post

    Hi,

    I have worked this out. If anyone else needs to do this you can use:

    var zone = $find('YOUR DOCKING ZONE NAME');
    var myarray = zone.get_Docks();
    for (var x = 0; x < myarray.length; x++) {
    msg = msg + myarray[x].get_id() +
    "|"
    }
    alert(msg);

Back to Top