Loading ...
Sorry, an error occurred while loading the content.
 

Re: TreeView / TaskNode - Using to post data

Expand Messages
  • suavesurui
    Thanks David, after insert getObjectByProperty() in treeview.js, I m confuse in how to create a subform in javascript to submit the data I want throuht GET or
    Message 1 of 3 , Apr 17, 2006
      Thanks David,

      after insert getObjectByProperty() in treeview.js, I'm confuse in
      how to create a subform in javascript to submit the data I want
      throuht GET or POST method?


      thanks a lot for explaining some more detail ;)

      --- In ydn-javascript@yahoogroups.com, "David Prusak" <dprusak@...>
      wrote:
      >
      > I added this little function in treeview.js (It's currently a
      hack,
      > and not finished, but will get the data you need)
      >
      > getObjectsByProperty: function(property, value) {
      > myList= '' ;
      > for (var i in this._nodes) {
      > var n = this._nodes[i];
      > if (value == n.checkState){
      > myList = myList + n.data.pathTo + "\n";
      > }
      > }
      > return myList;
      > }
      >
      > Pass in 0, 1 or 2 for the value and it'll return a list.
      >
      > 0=unchecked, 1=some children checked, 2=all children checked
      >
      > n.data.pathTo is something that's in my code, it's not part of the
      > yahoo library. I have added more objects to the data structure.
      > You can return any data object you wish. Just update that part of
      > the code.
      >
      > Then you can create a subform in javascript to submit the data you
      > want.
      >
      > Hope that helps,
      > --David
      > In ydn-javascript@yahoogroups.com, "robby.simpson" <rsimpson@>
      > wrote:
      > >
      > > Hi,
      > >
      > > How can I use the TreeView and TaskNode implementations to post
      the
      > > checked items? IOW, I want to use a tree of tasknodes to submit
      > the
      > > checked information to my site using a form.
      > >
      > > Thanks,
      > > Robby
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.