I would like to be able to add support for MULTIPLE selections and
default selected options to the InPlaceColectionEditor.  I was
planning on doing this with something like :

<code>
Object.extend(Ajax.InPlaceCollectionEditor.prototype,
{
  createEditField: function()
{
    var list = document.createElement('select');
    list.name = this.options.paramName;
    list.size = 1;

    //none of the following attempts work
(firefox)
    //list.setAttribute("MULTIPLE");
    //list.multiple = 'true';
    //list.multiple = true;
    //list.multiple;

    this._controls.editor = list;
    this._collection = this.options.collection ||
[];
    if
(this.options.loadCollectionURL)
      this.loadCollection
();
 
else
      this.checkForExternalText
();
    this._form.appendChild(this._controls.editor);
  }
});
</code>

Any ideas?

I haven't even started on the selected attribute for the options as
this will involve overriding one of the other methods.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to