Start a new topic

I want to perform WEB API communication by making variable stored metadata part of URI

What you want to realize
The language is javascript. Xamarin.component

I am using htmldrawable




A response is stored in a variable and I want to make its contents part of the address when hitting WEB API.

My image

Response value (response.metadata.Number: content is 6764765)

A program executed as ajax by writing a variable as part of the URI of WEB API communication
(https: ~ / 123456)


Problems occurring

Actually, it is executed ajax with the URI of https: ~ / response.metadata.Number, it can not be acquired without such an address.


 

    <script>

        $.ajax({
            url: "https://~/response.medata.Number",
            type: 'GET',
            cache: false,
            dataType: 'json',
            success: function (data) {
                alert(data);
            }
        });

    </script>

 

htmldrawable

html:

or

uri


Both I can't

Please tearch me.Please Please


1 Comment

Add



AR.htmldrawable( html:

<script>

$.ajax{

url:"https://~/" +  response.metadata.Number,


I can’t webapi…Please 

Login or Signup to post a comment