Sample project that calls my Web API using ajax/jquery/javascript

I want a simple page that has two buttons. One button call a get API and the other calls a post api. I will give you the api url and my code. I've attached my code and I get an error of

Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at [login to view URL] (<anonymous>:2:14) at [login to view URL] (file:///K:/projects/Material/material-dashboard-pro-html-v2.1.0/material-dashboard-pro-html-v2.1.0/examples/tables/[login to view URL]:11) at u ([login to view URL]:2:27457) at [login to view URL] [as rejectWith] ([login to view URL]:2:28202) at k ([login to view URL]:2:77676) at XMLHttpRequest.<anonymous> ([login to view URL]:2:79882)]

caller: (...)

length: 2

name: "setRequestHeader"

prototype: {constructor: ƒ}

__proto__: ƒ ()

[[FunctionLocation]]: [login to view URL]

[[Scopes]]: Scopes[4]

state: ƒ ()

status: 0

statusCode: ƒ (e)

statusText: "error"

then: ƒ (t,r,i)

__proto__: Object

Taidot: AJAX, ASP.NET, Javascript, VB.NET

Näytä lisää: how to call server side function from javascript in using ajax, call web api post method from jquery, ajax call in webforms, call web api from javascript, call server side function from jquery in without webmethod, call web api from jquery with parameters, calling web api from jquery ajax, how to call web method in using jquery, consuming net web service using php, consume net web service using vbscript, consume net web service using classic asp, call net web service using axis2 method, add file soap envelope vb net soap api, car shoroom sample project build vb net, cloud computing sample project salseforce asp net, coding creating funcrion vb net web site, combine project files vb net, convert desktop application vb net web application net, convert vb net web application, convert vb windows application vb net web application

Tietoa työnantajasta:
( 167 arvostelua ) Charleston, United States

Projektin tunnus: #18814402

Myönnetty käyttäjälle:


Hello. I know where is you problem. Can help ypu to solve quick. just letme know if you want my help.

$30 USD 1 päivässä
(0 Arvostelua)

2 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hello, I have reviewed your code do let me know when you are available so that we can help you resolve the error. Regards

$35 USD 1 päivässä
(0 arvostelua)