Questions tagged as 'jsonp'

3
answers

Go through data from a json with javascript

I'm trying to get the data of a json but not when looking for a data throws me the error.    Uncaught TypeError: Can not read property 'day' of undefined $.ajax({ url: url, //dataType: 'json', type: 'POST', jsonpCallback: "myJSON",...
asked by 23.08.2017 / 17:32
1
answer

How to make a post request in an MVC application to make an integration to a web services?

// // GET: /Asientos/Create public ActionResult Create() { return View(); } // // POST: /Asientos/Create [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create(Asientos asientos) {...
asked by 05.08.2016 / 16:05
1
answer

Postgres saves json data with characters \ "

When you save the json in a jsonb column in Postgres, save it in this format "{friend: [{\" name \ ": \" paolo \ ", \" value \ ": \" warrior \ "}, {\" name \ ": \" (label) \ ", \ "value \": \ "\"}]} " I am sending this to you from ruby on r...
asked by 17.05.2018 / 17:53
1
answer

How can I know if a server allows JSONP or CORS

I want to use an API from a Wallpapers page but I run into restricted ajax domains. Investigate the error and it can be solved by using JQuery JSONP to take the information returned by the API. This is my request. $.ajax({ url: endpoin...
asked by 01.10.2016 / 00:40
1
answer

How to save a Json in a variable javascipt

hi chic @ s I have a problem. I'm designing a web in which I use a php script that searches in several directories of my web images that comply with certain characters in its name, and once it has this it returns the link in json format. My p...
asked by 29.08.2018 / 22:46
1
answer

JSON + Python 'utf8' codec can not decode byte 0xba in position 7:

Dear I want to save information in a json file but it tells me this error: Traceback (most recent call last): File "interbasecom.py", line 271, in <module> classPresupuesto.getPresupuestos() File "interbasecom.py", line 268, in g...
asked by 26.07.2017 / 14:42
1
answer

Ajax CrossDomain Error: "Unexpected token:"

When I bring data from an AFIP service, I get the error  "Unexpected token:". Apparently the type of data it returns is incorrect, some solution? thanks My Js code is as follows: var WSAFIP="https://soa.afip.gob.ar/sr-padron/v2/pe...
asked by 27.12.2016 / 17:25
2
answers

Doubt Json loop

I have a Json movie file and it is quite long for what I really want but that is not the case, the problem of it being so long is that I want to add several more fields to each movie and I am quite new to the time to work on these types of files...
asked by 26.04.2018 / 18:25
1
answer

Uncaught SyntaxError: Unexpected token:

I have a problem with the following code where the answer is this: As you can see there is an answer but I get that error and it does not load me. Thanks in advance! window.onload = function() { var mb = document.getElementById("...
asked by 02.11.2017 / 21:37
1
answer

Get html element of an AJAX request with JSONP

I am making a request with ajax and javascript, the answer of this request is a complete html page, of this answer I need to obtain the value of an element <input type="hidden" name="key_solicitud" value="este es el valor que deseo obtener...
asked by 05.12.2018 / 00:12