{"action":"created","issue":{"url":"https://api.github.com/repos/osTicket/osTicket/issues/3148","repository_url":"https://api.github.com/repos/osTicket/osTicket","labels_url":"https://api.github.com/repos/osTicket/osTicket/issues/3148/labels{/name}","comments_url":"https://api.github.com/repos/osTicket/osTicket/issues/3148/comments","events_url":"https://api.github.com/repos/osTicket/osTicket/issues/3148/events","html_url":"https://github.com/osTicket/osTicket/issues/3148","id":156685077,"number":3148,"title":"How can i call jquery ajax in osticket","user":{"login":"euphon","id":19566897,"avatar_url":"https://avatars.githubusercontent.com/u/19566897?v=3","gravatar_id":"","url":"https://api.github.com/users/euphon","html_url":"https://github.com/euphon","followers_url":"https://api.github.com/users/euphon/followers","following_url":"https://api.github.com/users/euphon/following{/other_user}","gists_url":"https://api.github.com/users/euphon/gists{/gist_id}","starred_url":"https://api.github.com/users/euphon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euphon/subscriptions","organizations_url":"https://api.github.com/users/euphon/orgs","repos_url":"https://api.github.com/users/euphon/repos","events_url":"https://api.github.com/users/euphon/events{/privacy}","received_events_url":"https://api.github.com/users/euphon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-25T07:52:48Z","updated_at":"2016-06-25T16:06:50Z","closed_at":null,"body":"Hi,\r\n\r\nI want to load person list according to the city selected. I have two  select box first one is city names. and second one is person name when select one city from city select the second select box will load person name according to the city i have selected \r\nfilename\r\n\r\n ticket.open.inc.php\r\n\r\n```\r\n$(document).ready(function(){\r\n$(\"#townCity\").change(function () { \r\nvar query\t=\t$(\"#townCity\").val();\r\n$.ajax({\r\n\ttype: \"GET\",\r\n\turl: \"ajax.php/users?q=\"+query,\r\n\tdataType: 'json',\r\n\tsuccess: function (data) {\r\n\t\t\r\n\t}\r\n});\r\n});\r\n\r\n```\r\n\r\nHow can i call this ajax url in  ajax.php page  `url_get('^/(?P<id>\\d+)$', 'getCity'),`  i didt understand how to call this ajax i am new to osticket \r\n**Please let me know the flow of ajax functionality in osticket \r\nhow to specify url in ajax function\r\nWhich files is performing action\r\najax.php files**\r\nplease help me \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/osTicket/osTicket/issues/comments/228552767","html_url":"https://github.com/osTicket/osTicket/issues/3148#issuecomment-228552767","issue_url":"https://api.github.com/repos/osTicket/osTicket/issues/3148","id":228552767,"user":{"login":"greezybacon","id":672074,"avatar_url":"https://avatars.githubusercontent.com/u/672074?v=3","gravatar_id":"","url":"https://api.github.com/users/greezybacon","html_url":"https://github.com/greezybacon","followers_url":"https://api.github.com/users/greezybacon/followers","following_url":"https://api.github.com/users/greezybacon/following{/other_user}","gists_url":"https://api.github.com/users/greezybacon/gists{/gist_id}","starred_url":"https://api.github.com/users/greezybacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greezybacon/subscriptions","organizations_url":"https://api.github.com/users/greezybacon/orgs","repos_url":"https://api.github.com/users/greezybacon/repos","events_url":"https://api.github.com/users/greezybacon/events{/privacy}","received_events_url":"https://api.github.com/users/greezybacon/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T16:06:50Z","updated_at":"2016-06-25T16:06:50Z","body":"@euphon I think your URL would look something like `ajax.php/path/to/34`, where `34` is the ID number matched in your ajax.php page."}}
{"actor":{"display_login":"greezybacon"}}