Questions tagged as 'javascript'

2
answers

Problems when taking parameters of an image loaded from the computer

My page.html is like this: <!DOCTYPE html> <html lang="es"> <head> <link rel="stylesheet" href="css/miestilos.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"> </script...
asked by 20.10.2018 / 11:44
1
answer

Add rows to the TBody of an HTML table with JavaScript

The problem I want to solve is to be able to add rows to a table with JavaScript, after having selected an Input Radio, the table should change. The JavaScript code: <script type="text/javascript"> $(document).ready(function() { var v...
asked by 19.10.2018 / 15:54
1
answer

Jsp does not recognize Javascript files

I'm doing a web application with JavaEE and I need to pass certain parameters from a Servlet to a Jsp, I do it like this: request.setAttribute("car", per.getCarrera().getNombre()); And for the redirection: request.getRequestDispatcher("/o...
asked by 20.10.2018 / 21:05
1
answer

Viewing file properties with a data table

I have some objects with two properties, name and tags, that simulate being files. Then I use a data table to display them. The thing is like this: The problem : I have a drawData function that makes me appear the tablar. But when I add ne...
asked by 20.10.2018 / 12:16
2
answers

How to confirm before deleting a record with PHP and AlertifyJS?

I have a question with the confirmation before deleting a record from my Database, for this I am using PHP and the AlertifyJS library, in my HTML structure I have a link through which I send by GET method the id of the person to delete, in this...
asked by 19.10.2018 / 19:58
1
answer

Read a File and Divide it by PHP Pages

Good I have the code portion to read a file and show it $file = fopen("../assets/libros/el_libro_de_la_sabiduria/cap_01.htm", "r") or exit("Unable to open file!"); $getline = ''; while(!feof($file)) { $getline .= fgets($file). "<br /&g...
asked by 09.11.2018 / 18:08
1
answer

Error [object Text] when trying to put value in an input type text

A doubt maybe basic, that I thought I'd know how to solve and I'm going crazy: I want to recover a text that a div contains inside, save it in a variable and put it as a value in an input type text. When I try to do this, the text that app...
asked by 10.11.2018 / 15:50
3
answers

Error showing json data

I have this code: <script type="text/javascript"> var direcciones = []; function getDirecciones() { $.ajax({ url: "getDireccionesJSON.php", success: function (data) { if (data != 0) {...
asked by 09.11.2018 / 19:05
1
answer

To prevent a script from executing according to the screen resolution, is my code correct?

if ( window.width > 500 ) { //aqui todas las animaciones de mi pagina de tamaño normal (no version movil) } With the above code I intend that all the animations of my page and in general scipts be enabled only when the screen resoluti...
asked by 10.11.2018 / 17:30
3
answers

JavaScript: How can I add the numerical elements inside a json?

Good morning everyone, my query is the following ... If I have a JSON object in javascript, for example: json = [{"Nombre":"Sutano","Edad":19},{"Nombre":"Fulano","Edad":20},{"Nombre":"Mengano","Edad":21}]; And I want to add only the numeric...
asked by 09.11.2018 / 22:03