Questions tagged as 'javascript'

1
answer

how to format weights in boostrap?

this is the code with the table showing <table id="table2" ng-init="loadData()"data-height="430" data-click-to-select="true"data-search="true"> <thead> <tr>...
asked by 15.12.2016 / 21:55
1
answer

test neural network library

I was testing the library link , this is my code var synaptic = require('synaptic'); // this line is not needed in the browser var A = synaptic.Neuron(); var B = synaptic.Neuron(); A.project(B); A.activate(0.5); // 0.5 B.activate(); // 0.3244...
asked by 23.11.2016 / 14:12
1
answer

Jade + Javascript does not work

I have a template .jade extends layoutIn block content input(type="text", id="captureInput", style="width:100%") pre(id="resultado", style="overflow-y: scroll; height:150px") and the javascript is: var texto = document.get...
asked by 19.11.2016 / 15:06
1
answer

Convert an array to a .json file

well this is my code var miJson = JSON.stringify(miArray) ; but I need all the data of the variable "miJson" to be in a file with the extension .json     
asked by 15.11.2016 / 13:54
1
answer

Geolocation in php

I'm trying to get my location by means of the api of google maps implemented in php and javascript but when trying to get it I get a warning , which is as follows:    getCurrentPosition () and watchPosition (...
asked by 10.11.2016 / 17:59
1
answer

Block access using login with ajax on the client and php on the server

I'm doing an app in Javascript and I need to block access to unlogged users, in PHP it's easy using $ _SESSION but with JS I can not find a way Thanks for the help     
asked by 27.12.2016 / 13:54
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 / 16:25
1
answer

Angular problem ui.router when putting ui-view / ui-view in index.html

Good morning. I'm doing a web with NodeJs and AngularJs using bower for libraries, gulp for tasks, use ui.router to do the routes and I have in index.html a div ui-view tag that I try to make dynamic to change the content . But I get errors f...
asked by 29.12.2016 / 10:24
1
answer

Uncaught TypeError: json.comunicado.ASUNTO.html is not a function

I'm having a very strange problem and I do not understand it, yesterday it worked fine, and now the entire website is bursting with the same error, I specify a little more: This is the error: backoffice.js:37 Uncaught TypeError: json.comuni...
asked by 30.12.2016 / 09:01
1
answer

Do not execute duplicate functions in Javascript, possible?

I am trying to block the repetition of the execution of several functions that have the same name and basically, they are cloned. This is not for a web, but it would be something easy to control, the issue is that each module that I draw on a...
asked by 07.11.2016 / 14:50