Ajax.InPlaceSelect

Creates a select control in place of the html element with the id specified. It functions similar to Ajax.InPlaceEditor but instead of an input control, it creates a select control with a list of options from which to choose. The parameters ‘values’ and ‘labels’ are arrays (of the same length) from which the options are defined.

I took the liberty to update InPlaceSelect class for scriptaculous since I felt some features where missing.

  • Added option “okButton” (default true)
  • Added option “okText” (default ‘ok’)
  • Added option “cancelText” (default ‘cancel’)
  • Added option to take use of the onChange method or not. (default false)
  • Added support for multi choice selects
  • Added option “multiSelect” (default false)
  • Added option “multiDelimiter” (default ‘
    ‘)

Previous version available here

Demo

View simple demo here

http://www.subzane.com;/wp-content/uploads/2006/09/inplaceselect.js;inplaceselect;

Changes

  • 2007-08-06
    • Added support for multiselect boxes
  • 2006-11-15
    • Added code to strip whitespace from the selected value. Thanks to Jay Buffing.

Todo

  • Need to add onComplete

Support & Questions

For bug reporting and support questions please use my google group.
http://groups.google.com/group/subzane

[donate]

11 Responses to “Ajax.InPlaceSelect”
  1. Nicholas Says:

    Hi All Experts,
    I want to use AJAX (Asynchronous JAVA script with XML ). How can i Optimize the site SEO.
    as Java script and flash is not recommended by search engines. Any suggestion or help is welcomed. With Regards.

  2. Kerim Incedayi Says:

    Google does not state whether you should use url_rewrite or not using flash. It indexes anything it sees. I mean javascript may be a problem but focus on the big picture. don’t worry about the details.

    by the way script is great :)

  3. Sergi Baila Says:

    Man! I created the original Ajax.InPlaceSelect and forgot about the scriptaculous ticket I attached it. Now I find this. Amazing! It has its own live now.

    Glad it helped someone.

  4. subzane.com » Blog Archive » Ajax.InPlaceSelect Updated Says:

    […] Ajax.InPlaceSelect […]

  5. Links Web Says:

    […] http://www.subzane.com/projects/ajaxinplaceselect/ […]

  6. rob Says:

    do you have an example of the rails helper?

  7. SubZane Says:

    Sorry no, I haven’t started out with Ruby on Rails yet.

  8. Webmaster 38 » Blog Archive » Ajax.InPlaceSelect at ajax scripts compound Says:

    […] Ajax.InPlaceSelect […]

  9. 10 Edit In-Place Ajax Scripts | WebTecker the latest tech, web resources and news. Says:

    […] Ajax.InPlaceSelect - This script allows you to change the certain text with a drop down list. It is written with the scriptaculous framework and is very similar to Ajax.In Place Editor. […]

  10. Web sayfalar?n?z için yerinde düzenleme (edit in place) | Göstergeç.net Says:

    […] Ajax.InPlaceSelect - Bu script belli metinleri aç?lan kutulardan yap?lan seçimlere göre düzenlenebilmesini sa?l?yor. Altyap? olarak scriptaculous kullan?lm??. […]

  11. Edit In-Place Ajax Scripts « Renganathan’s Weblog Says:

    […] Ajax.InPlaceSelect - This script allows you to change the certain text with a drop down list. It is written with the scriptaculous framework and is very similar to Ajax.In Place Editor. […]

Leave a Reply

You must be logged in to post a comment.