Software Archive
Read-only legacy content

Ajax call API

Samson_G_
Beginner
238 Views

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;
    });

 

0 Kudos
0 Replies
Reply