Questions tagged as 'json'

0
answers

Internal Server Error 500 in Ajax

I have a website hosted on Digital Ocean that runs on an Ubuntu under Lamp with PHP & MySQL My problem is that when I want to pass data through APIRest it gives me an internal error. This is my code function ajaxPost(url, encodedata, su...
asked by 17.11.2017 / 14:48
2
answers

It tells me that the value I'm calling is undefined in json

It tells me that it's undefined the name of the variable that I'm asking Jquery, but I put console.log (data) and it returns the complete array and with its variables $(function () { array_producto = []; $.ajax({ url: "ofertas_guarda...
asked by 28.10.2017 / 02:45
1
answer

Problem with dynamic selector undefined

Hi, I have a problem with my dynamic selector, it works correctly, except that it does not show me the values in the second select, I think the problem is in the java script code when printing the value in each select since I iterates correctly...
asked by 03.11.2017 / 02:33
1
answer

Error loading json

How about! I am using an api called jquery Mapael for the creation of interactive maps in html, I am loading the data from a json to the application, here is the code: $(function () { $(".mapcontainer span").html("Loading JSON data").c...
asked by 24.10.2017 / 01:16
0
answers

Download files from the server with Javascript

I am trying to download files from the server, in this case (EXCEL, JSON AND XML) these files are generated on the server side with Visual Basic, and when generating them, on the client side, it receives the url where the file is located. create...
asked by 24.10.2017 / 23:31
2
answers

How to define an array of a data type in a property in a JSON object?

I have this next obj nuevoEvento : { infoBasica : { nombre: String, escenario:String, valor: [{ titulo: String, valor: String }], lugar:{ escenario: String,...
asked by 23.10.2017 / 19:05
2
answers

Get first value of an array in javascript

<script src="http://code.jquery.com/jquery-2.1.0.min.js"> </script> <script> var coordenadas; function testAjax() { $.ajax({ url: 'https://dev.datos.ua.es/uapi/5QGUfP3UM6j5VXERjKvU/datasets/11/data',...
asked by 15.10.2017 / 19:29
1
answer

Unpermitte do not save me the parameters ruby on rails 5.1.1

hello is that they are not keeping me the parameters charge, management and locality and I do not know why who helps me thanks Unpermitted parameters:: position,: management,: locality schema.rb create_table "users", force: :cascade...
asked by 23.10.2017 / 06:35
1
answer

how to generate a json array in javascript adding id

As I can make a script where I can load the following structure into a json, the idea is to load the values with push. 1 {1,2,3,4,5,6}, 2 {10,11,12,13,14}     
asked by 23.10.2017 / 08:35
1
answer

Compare and Order 2 Json files

I would like someone's help to compare and sort 2 files: .JSON (each file contains more than 4000 lines when viewed in the notepad ++) Let me explain: File1.json (imagine that this file has everything in Portuguese after 2 points (:))...
asked by 10.10.2017 / 18:17