> Autocompleter constructor just uses $() function for lookup element.
> So it's OK to pass element itself as first parameter.

This isn't working either, but there are no javascript errors.
Could it be a problem with the page I'm calling on the autocompleter?
I have the php code below, followed by the JS

<?
// employeeSuggestion.php

$tmp="<ul><li>ddddddddd</li></ul>";
print $tmp;
?>

        // add in the inplaceeditor for the name field
        var editor=new Ajax.InPlaceEditor('name' + hoursId,'changeHour.php',{
                okButton:false,
                submitOnBlur:true,
                formId:'ajaxForm',
                callback:function(form,value){
                        var request="hoursId=" + hoursId + 
"&which=name&username=" + value;
                        return request;
                },
        });
    Object.extend(editor, {
      _createEditField: editor.createEditField,
      createEditField: function() {
        this._createEditField();
                new Autocompleter.Local(this.editField,'name' + hoursId,
'employeeSuggestion.php',{
                                                                'minChars':1,
                                                           });

      }
    });


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to