Ajax.InPlaceSelect
October 25th, 2006 by SubZane
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
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]
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.
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
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.
[…] Ajax.InPlaceSelect […]
[…] http://www.subzane.com/projects/ajaxinplaceselect/ […]
do you have an example of the rails helper?
Sorry no, I haven’t started out with Ruby on Rails yet.
[…] Ajax.InPlaceSelect […]
[…] 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. […]
[…] 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??. […]
[…] 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. […]