4 <div id="brapi_home_programs_div">
7 <input name="brapi_home_program_name" id="brapi_home_program_name" class="form-control" type="text" placeholder="ProgramName e.g. test" value="test"/>
8 <button class="btn btn-primary" name="brapi_home_program_submit" id="brapi_home_program_submit">Get Programs</button>
10 <div id="brapi_programs_result_div">
17 jQuery(document).ready(function() {
18 jQuery("#brapi_home_program_submit").click(function() {
20 'url': jQuery('#brapi_home_url_select').val()+'/brapi/v1/programs?programName='+jQuery('#brapi_home_program_name').val(),
22 'success': function(response) {
23 console.log(response);
24 brapi_create_paginated_table(response.result.data, response.metadata.pagination, 'brapi_programs_result_div', jQuery('#brapi_home_url_select').val()+'/brapi/v1/programs?programName='+jQuery('#brapi_home_program_name').val(), undefined);
27 error: function(response) {
28 alert('An error occurred');