Questions tagged as 'javascript'

1
answer

Pass Variables from JavaScript to Php

Well I want to pass a variable of js to another php document they told me that the most practical thing is using ajax, but I think something is not right: / I want to pass the variable from a document .js to one .php. when passing the variable d...
asked by 04.03.2017 / 04:00
2
answers

problems to upload data to a multiple select using multiselect bootstrap from ajax

Hi, I need to upload data to a multiple select with ajax using the jquery bootstrap-multiselect plugins: link with the method .multiselect ('dataprovider', data). the format of the varible data is an array of objects. What I have done so far i...
asked by 05.03.2017 / 00:06
1
answer

Jquery autocomplete plugin Can not read property 'length' of undefined

I am using this wonderful plugin developed by Devbridge. Using your examples one works well and the other does not: The one that works: // Obtengo listaDeProfesionales desde /profesionales/get_lista/ $('#autocompleteInput').autocomplete({...
asked by 02.03.2017 / 16:05
1
answer

Method .html () changes the length of my cell

my problem is as follows I have an option within a table to disable and enable a group but I only use it with a text that changes when I click, this I control from javascript with the following function: var param1 = $(this).closest('tr')....
asked by 13.12.2016 / 22:56
1
answer

validation of a form through ajax and jquery-validate

Good I have the following problem, I made a function to update my data with PHP and Codeigniter, using AJAX too .. everything works fine, but it turns out that I want to validate my form using jquery-validate before making the AJAX request, for...
asked by 24.01.2017 / 14:05
2
answers

Problem when using Ajax to use Google Maps API

I want to use ajax to use a Google Maps API, but I do not know what it would be like in this case. This is an example of the Google Maps documentation of how the route should be. link In javascript I have the following: var waypoint...
asked by 07.12.2016 / 14:40
1
answer

How to make a $ scope of location with geodjango, django and angularjs

How to make a $ scope.cities because I do not get it in PHPStorm I get an error of "Expression statement is not assignment or call" and I do not know what the error is /** * Created by gamba on 20/10/2016. */ var app = angular.modul...
asked by 07.12.2016 / 21:48
2
answers

Extract a value from an input that is inside a foreach with javascript

I have some data that I bring from a foreach and I show them in a table, and each record has a field called quantity, what happens is that this field when I send it through javascript takes the first value from the first record. who follows him,...
asked by 07.12.2016 / 17:19
1
answer

forEach in array array does not work

my code is as follows var array=[[1,2,3],[4,5,6],[7,8,9]]; array.forEach(function(indice){ array[indice].forEach(function(index){ console.log(array[indice][index]); }) }) does not work, why?     
asked by 07.12.2016 / 16:53
1
answer

Bolt cms doubles my path when I call my css and my js

I am using Bolt CMS in one of my pages and when including my style files or my javascript there is a part of the link that is duplicated, then it does not find the files. In Bolt Symfony is used so I include them w...
asked by 30.11.2016 / 14:16