{"action":"opened","issue":{"url":"https://api.github.com/repos/jekkos/opensourcepos/issues/338","repository_url":"https://api.github.com/repos/jekkos/opensourcepos","labels_url":"https://api.github.com/repos/jekkos/opensourcepos/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/jekkos/opensourcepos/issues/338/comments","events_url":"https://api.github.com/repos/jekkos/opensourcepos/issues/338/events","html_url":"https://github.com/jekkos/opensourcepos/issues/338","id":135033948,"number":338,"title":"How to add Autocomplete Search for an array","user":{"login":"hoangtu406","id":17349577,"avatar_url":"https://avatars.githubusercontent.com/u/17349577?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangtu406","html_url":"https://github.com/hoangtu406","followers_url":"https://api.github.com/users/hoangtu406/followers","following_url":"https://api.github.com/users/hoangtu406/following{/other_user}","gists_url":"https://api.github.com/users/hoangtu406/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangtu406/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangtu406/subscriptions","organizations_url":"https://api.github.com/users/hoangtu406/orgs","repos_url":"https://api.github.com/users/hoangtu406/repos","events_url":"https://api.github.com/users/hoangtu406/events{/privacy}","received_events_url":"https://api.github.com/users/hoangtu406/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-20T04:57:45Z","updated_at":"2016-02-20T04:57:45Z","closed_at":null,"body":"I have idea to make online search and offlline search\r\n$dataoffline=array(\"item_id\"=>\"35\", \"name\"=>\"aaaaaaaaaa\"); //  I save data to localstorage\r\nif ($olinesearch)\r\n{\r\n$(\"#item\").autocomplete('<?php echo site_url(\"sales/item_search\"); ?>',\r\n    {\r\n\r\n    \tminChars:0,\r\n    \tmax:100,\r\n    \tselectFirst: false,\r\n       \tdelay:10,\r\n    \tformatItem: function(row) {\r\n\t\t\treturn (row.length > 1 && row[1]) || row[0];\r\n\t\t}\r\n    });\r\n}\r\nesle // offline search\r\n{\r\n// how to write code for offline search, what should I put parameters \r\n}\r\n\r\nPlease help me to solve this issue. "}}