Questions tagged as 'javascript'

1
answer

Assign variable php as attribute id of a div tag

I want to generate a alert by giving click to each of the numbers in the table that is generated with the for . The alert works, but I want it to be the same number in the box that I click on. In this case the error is...
asked by 21.05.2018 / 20:20
1
answer

Operate with sliders

I am trying to create 2 sliders that when moving them operate with the values of the moment and show me the result in turn. I put the code to show the case: <div id="slider_1" class="slider"></div><input id="slider_1_val...
asked by 20.05.2018 / 22:10
1
answer

Error in input with ui-bootstrap does not show the results

I'm trying to show a result in a input type autocomplete making a request get but it does not show the results ... angular.module('ui.bootstrap.demo', ['ngAnimate', 'ui.bootstrap']); angular.module('ui.bootstrap.dem...
asked by 21.05.2018 / 14:41
1
answer

Error traversing a JSON

I am trying to run a json which I previously obtained from php. But when I try to run it to show it, it sends me this error in the console.   I'm new to javascript and ajax, my goal is that json, is an array of a query made in mysql, when I...
asked by 05.05.2018 / 11:12
1
answer

extract the value of an element in an array with javascript

I have the following array Array ( [inv_id] => 193 [inv_prefix] => PREF [inv_number] => 192 [inv_quotationNumber] => 0 [inv_date] => 2018-04-09 [inv_dateDue] => 2018-04-09 [inv_empId] => 2 [...
asked by 27.04.2018 / 20:16
2
answers

How to fix error when executing webpack command from Node js?

I try to run the webpack command to compile an application in react js, previously I worked in ubuntu and it worked perfectly and I changed to windows and when using node js in windows, it generates the following message that does not allow me t...
asked by 27.04.2018 / 17:56
2
answers

Send data from Javascript to PHP and then use Phpmyadmin

I am in a project in which I use javascript to take information from some forms and I would like to be able to work with a database through phpmyadmin but as I understand I must first pass all the data I have taken through javascript to php Ther...
asked by 16.05.2018 / 08:10
2
answers

Run PHP code inside Javascript

They could help me with a problem: I want to execute PHP code inside Javascript . <html> <head></head> <body> <script type="text/javascript"> <?php echo "hola como estan"; ?>); </scr...
asked by 26.04.2018 / 17:59
3
answers

Call arrangements within a cycle

What I would like to be able to send to call some arrangements and go through each of them in Javascript in a dynamic way. For example: var idarray=[1,5,8] var arreglo1=[23,34,56,45,534] var arreglo5=[34,34,12,65] var arreglo8=[34.23....
asked by 16.05.2018 / 00:48
1
answer

Get file names in a directory with JSP

I have a Web system in which I have a folder with files and what I'm trying to do is bring the names of the files into that folder. Command to call a JSP from JS : getUrlJsonObject({ href:pathcamp+'getNamesDocs.jsp', method:"GET",...
asked by 25.04.2018 / 23:03