Questions tagged as 'javascript'

1
answer

How do I print a route on the href of my link tag?

What I want to do is print the route of the host that I am currently on. First code Javascript code var urlObt; urlObt = window.location.href; JSP Code String url = "<script>document.write(urlObt)</script>"; Impressi...
asked by 12.04.2018 / 18:39
1
answer

perform a query inside javascript

I would like to know if a query can be made within javascript , I was investigating a bit and they said that opening php but I need to use the value of the query to perform calculations in javascript . How could he do it? T...
asked by 26.04.2018 / 15:01
1
answer

Take javascript id to php

I have the following problem, I have a modal in which I am going to show information from a database, which I achieved with this function: function ver(id){ $('.modal-body').load('php/CargarAlmacenamiento.php?id=12',function(){ $(...
asked by 26.04.2018 / 21:04
2
answers

Change the contents of a div and activate or deactivate it

I have a div in HTML with a select and I want to call a function in JavaScript the content of this div change, after doing Several things in my JavaScript code. I want this select to disappear and a table appear...
asked by 27.04.2018 / 16:47
2
answers

Ajax fails to send data on asp.net

On the page Puzzle.aspx ego the following button: <figure><asp:ImageButton id="puzzle1" runat="server" ImageUrl="~/images/puzzle1.jpg" class="img-rounded img-responsive image" OnClientClick="showModel('uno'); return false" />&l...
asked by 27.04.2018 / 16:54
2
answers

How do you declare and call a function with $ in Jquery?

I have this problem .. TypeError: $.slideShow is not a function I'm trying to call a function with the dollar sign $ , but it does not work. The statement is as follows. in my index.html file .. <script src="js/script.js"></scri...
asked by 22.04.2018 / 18:55
1
answer

Pdf generated from datatable

I'm using link to build tables, with the same use the buttons to export data, although I got to read the documentation I can not find what next and I would like you to comment if it is possible or not: My table has buttons in materialize with...
asked by 24.04.2018 / 13:26
2
answers

how can i pass json to html

Hello, I'm starting in the world of vuejs I'm consuming a detail field where I have HTML code: <p>alhdlkfjaldkfkaldjflkasdfkladsf</p> <p>asdfaslfdjaslñfjalñsdfjlkñasjfdklajsdfasf</p> <p>adsfadsf</p> How d...
asked by 03.03.2018 / 05:20
3
answers

How to create an html element with javaScript?

I want to create a dynamic table to which I enter some values, but when creating the rows in the table the button does not generate anything. var div = document.getElementById("divTabla"); function crearTabla() { var nombre = docum...
asked by 06.03.2018 / 12:50
2
answers

How to paint a text choosing colors with checkbox?

I want to paint a text according to the colors of the checkbox $(document).ready(function() { document.getElementById("color1").addEventListener("click", pintar) document.getElementById("color2").addEventListener("click", pintar)...
asked by 04.03.2018 / 15:30