Questions tagged as 'javascript'

0
answers

In what way you can prevent the styles of an element created with javascript from being confused with the styles of the page

It's just that I'm creating a kind of plugin for any type of web page that consists of a chatbot, an assistant for collecting user data, asking name, surname and email, and phone, and I import it nothing more by putting a script on the page sinc...
asked by 14.01.2018 / 19:37
1
answer

Fail script execution

I have a script in javascript that runs correctly in Firefox but not in IE11, it is that after a certain if, I open a pop up: In php I have the following code: if(xxxx){echo '<body onload="abrir()">';} In the html page where the form...
asked by 11.01.2018 / 08:21
1
answer

Error sending post to controller cakephp 3

I collect the form data to save them in a localStorage variable function recuperaDatos(){ var elForm = document.querySelector("#form1"), //O simplemente 'form1' valores = []; //Array en el que se guardarán los valores...
asked by 19.01.2018 / 01:49
1
answer

search in real time and page angularjs

I have a problem with this code everything works fine but when I change the page the search does not find results var app=angular.module('myApp', []); // alternate - https://github.com/michaelbromley/angularUtils/tree/master/src/direc...
asked by 08.01.2018 / 16:09
1
answer

Error 404 with JSON files in IIS

I want to configure the language translation of Datatable by means of local url in a solution of ASP.NET MVC 4. tblJs = tblHtml.DataTable({ destroy: true, searching: false, ajax: { url: '/...
asked by 06.01.2018 / 17:22
2
answers

Add property headers upon request before sending a form in html Js or AngularJs

I have the following form created with native JavaScript, I need to add a property to the headers so that the request is authorized. var form = document.createElement('form'); form.id='formulario_auxiliar'; form.action = 'url';...
asked by 06.01.2018 / 16:34
1
answer

Iframe tag

I have a doubt about the iframe tag in html since I have this tag in a modal and whenever I load the page the video that has this tag starts playing without having even opened this modal, any idea about this event? Any way to make it play only w...
asked by 09.01.2018 / 03:03
1
answer

Choose a random number or name from a database

I have hosted a database MySQL in a Byethost free I need to call the register a name and number at random to generate a lottery. With this code I can call my records in Javascript now I need you to call me a number or nam...
asked by 09.01.2018 / 02:07
2
answers

Correct use of localstorage

Good I am using for the first time localstorage and I do not get it to work, have I written it wrong? for(var j=1; j<(totalInputs+1); j++){ var resultado = $('#Titulo-'+i+'-'+j).val(); localStorage.setItem('resultadoStorage', r...
asked by 04.01.2018 / 22:59
0
answers

Problem when adding an object to an array in ES6 - this.listLogs.data [index] .push is not a function

Good morning, I am trying to add an object to an array, I leave the code for a better reference. The problem is that I get an error that the push function is not correct. Maybe I'm doing something in a bad way. Please your help or some clue how...
asked by 05.01.2018 / 20:56