Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Samson_G_
Beginner
51 Views

Ajax call API

Hello everybody.

I am trying to call an API made in php by ajax.

Is there a solution to apelex API?

Code used:

<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
$(document).on("click", ".uib_w_2", function(evt)
    {
        var $server;
        $server = 'http://link/';
        var $input;
         $input = $('#input').val();
         $.ajax({
                 type: "get",
                 url: $server+"/api.php",
                 data: "?input="+$input
                });
         return false;
    });

 

Tags (2)
0 Kudos
0 Replies
Reply