Skip to content

Instantly share code, notes, and snippets.

@nebjak
Created May 8, 2012 09:36
Show Gist options
  • Save nebjak/2633897 to your computer and use it in GitHub Desktop.
Save nebjak/2633897 to your computer and use it in GitHub Desktop.
Pokušaj provere privrednog društva po matičnom broju preko AJAX zahteva na sajt APR-a
$('#maticniBroj').blur ->
mb = $(this).val()
$.post(
'http://pretraga2.apr.gov.rs/ObjedinjenePretrage/Search/SearchResult'
'SelectedRegisterId': 1
'SearchByRegistryCodeString': mb
'SearchByNameString': ''
'X-Requested-With': 'XMLHttpRequest'
(data) ->
alert data
return
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment