Questions tagged as 'javascript'

2
answers

Create pop up with bootstrap help

I am creating a "pop up" type pop-up window (as if it were a confirm () but I want instead of having the typical OK-Cancel buttons, have the values: Button1 - Button2, and each do X code. .. I have the following code in the index.php: echo...
asked by 17.11.2016 / 14:17
1
answer

I can not get the JSON from an AJAX call

I have the following code in which I make several AJAX calls to receive a JSON from an API, depending on the first call I make other calls, that work correctly, my problem is in the last call, with the JSON that returns some URLs, what happens i...
asked by 19.11.2016 / 12:46
1
answer

Show route with several Google Map bookmarks

I'm trying to do a google map that marks a route with several points, I saw an example on the google maps page. To do this I need an array with the intermediate positions. I have the positions in a mysql bd but I do not know how to pass the addr...
asked by 15.11.2016 / 23:35
1
answer

Divide text into two div

I'm making an invoice in JavaScript, PHP, HTML and CSS and I have a question. The design of the invoice simulates a folio just like desktop text editors do. I've solved that with <page> and CSS. When the content arrives according...
asked by 26.12.2016 / 11:28
1
answer

Data for chart.js From database

I just start with charjs and I need to print values from a database, at the moment I'm doing the exercise with numbers placed directly to the code, which does not work for me. AJAX: $.ajax({ data: { "cc":3}, type: "POST",...
asked by 26.12.2016 / 14:42
1
answer

I want independent variables

I have a variable that is an object with 2 nodes: var jDef = {id: 'hola', valores: [{cod: 1, desc: 'dddd'}, {cod: 2, desc: 'bbbb'}]} In another part of the program, I do: var jTemp.valores[1] = $.extend(jDef.valores[1], {selected: true});...
asked by 12.11.2016 / 11:50
1
answer

How to get the servlet response html code

good afternoon engineers, I need to catch the html code of a servlet to be able to show only fragments of information, I do not pretend to modify any content, much less affect, I just need to show specific information, I attached an example imag...
asked by 05.01.2017 / 21:55
1
answer

immutableJs Update object key with second order of Map

Good afternoon, I'm in a project where I have to use Redux for the status of my application in Meteor , but when handling a reduced type object I had to use > ImmutableJs where when using the .set property to change the value of a key of...
asked by 04.01.2017 / 16:12
1
answer

Create a shortcut that executes a file in Node.js

I have a program made in Node.js that is on the route: D:\Dropbox\js-arduino\LEDJavascript\index.js Obviously I run it from the terminal as follows: node index.js Is there a way to create a script that just by double clicking, start ru...
asked by 07.11.2016 / 21:51
2
answers

Incorrect format when generating JSON in PHP

I'm having trouble creating an array to pass it to JSON format. When traversing the result of a query in the database, I assign the values to an array. After this, I format the JSON by putting a header to the list of values. The problem is...
asked by 05.11.2016 / 13:03