locked
JQuery UI Autocomplete does not work properly on HTML Client RRS feed

  • Question

  • Hello All,

    Currently I'm using JQuery UI Autocomplete on HTML Client, and make it as a custom control. But it only shows the message: "XX results are available, use up and down arrow keys to navigate", but not the matched drop down list.

    Does anyone have the same issue?

    Thanks in advance!!

    Here's the corresponding code:

    myapp.AddEditDeviceNames.DeviceNames_DeviceName_render =

    function(element, contentItem) {

     

    var text = $('<input id="deviceName" type="text" />');

        text.appendTo($(element));

        text.autocomplete({

            source: [

    "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]

        })

    };


    • Edited by Yuwei Pan Thursday, September 5, 2013 10:40 AM
    Thursday, September 5, 2013 10:38 AM

Answers

  • Try this:

      $(function() {
        var availableTags = [
    	"c++""java""php""coldfusion""javascript""asp""ruby"
        ];
        $( "#deviceName" ).autocomplete({
          source: availableTags
        });
      });


    João Antonio Marques

    • Marked as answer by Yuwei Pan Friday, September 6, 2013 8:29 AM
    Thursday, September 5, 2013 12:09 PM

All replies

  • Try this:

      $(function() {
        var availableTags = [
    	"c++""java""php""coldfusion""javascript""asp""ruby"
        ];
        $( "#deviceName" ).autocomplete({
          source: availableTags
        });
      });


    João Antonio Marques

    • Marked as answer by Yuwei Pan Friday, September 6, 2013 8:29 AM
    Thursday, September 5, 2013 12:09 PM
  • Thanks, problem solved.

    It's because I've loaded two JQuery UI files in Default.htm....now it works.

    Thanks anyway!!!

    Friday, September 6, 2013 8:31 AM