Tagged: AJAX

0

jQuery Autocomplete + PHP5 (Codeigniter) + MySQL – simple way

Requirements: jQuery – ползвам jQuery 1.8.2 jQuery-UI – <script src=”http://code.jquery.com/ui/1.9.0/jquery-ui.js”></script> jQuery-UI css – <link rel=”stylesheet” href=”http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css” /> JS code: $(“name”).autocomplete({         source: function(request, response) {             $.ajax({   ...

0

jQuery autocomplete with ASP.NET MVC

Autocomplete Ajax:  $(“#name”).autocomplete({        source: function (request, response) {            $.ajax({                url: “/Controller/Action”,                data: “{ ‘name’: ‘” + request.term + “‘ }”,                dataType: “json”,                type: “POST”,                contentType: “application/json; charset=utf-8”,                dataFilter: function (data) { return data; },               ...