Questions tagged as 'javascript'

3
answers

Pass php variables to function onClick

<script> $.fn.Recibe = function(id,p) { alert(id+' '+p); } </script> En PHP $diPesca=1; $var="Enviar parametrosa funcion js"; $fila="<div title='click para enviar' "; $fila .=" onClick=\"$(this).Recibe('".$idPesca."','"....
asked by 29.08.2017 / 19:54
1
answer

Uncaught SyntaxError: Unexpected token:

I have a problem with the following code where the answer is this: As you can see there is an answer but I get that error and it does not load me. Thanks in advance! window.onload = function() { var mb = document.getElementById("...
asked by 02.11.2017 / 20:37
4
answers

How to use the br tag in jquery?

I start by telling you that I have no experience with jquery and at this moment I just want to give a space each time I add an input but I can not find the form, I have put the label here and it does not work: $(container).append('<input ty...
asked by 28.08.2017 / 22:51
1
answer

Use onkeyup event to update input?

I am developing a small calculator for paypal commissions, at times it works, but I would like to make a change that until now I have not been able to get it right. It turns out that I want that instead of having to click on the calculate button...
asked by 03.09.2017 / 15:23
1
answer

Problem to Graph in highcharts

I have a problem to graph the data in a highcharts pie chart, the problem is that I can not graph it according to its color, I'm using an API, I could do it with the bar graph now I want to do it with the pie graph, I could do but I have errors...
asked by 26.08.2017 / 23:20
1
answer

Modal with Javascript

I have a table which is added <td> if necessary by the user to fill in a kind of invoice, the <td> is displayed and has the button but does not point to the modal that shows to fill said information <script src="h...
asked by 27.08.2017 / 12:09
1
answer

Error with schema, model and controller (mongoose)

I'm developing an app with node.js, mongodb, mongoose and I get an error when I added these files. This is the "model.js" file: var mongoose = require('mongoose'), Schema = mongoose.Schema; var RequestDiffSchema = new Schema({ id: {...
asked by 07.09.2017 / 15:49
3
answers

Div background image does not respect CSS image adjustment rules

Good! I am developing a web page for a personal project, and I have difficulties when I want to add a new function. The page is simply a table with two cells and a div in each of them. The one on the left is the menu and the one on the rig...
asked by 07.09.2017 / 15:19
2
answers

Confirmation message phpmailer

I'm doing a web (I'm just learning) and I made a contact form with phpmailer, it sends me everything correctly but what I want is to change the confirmation message when the email is sent, so now it redirects me to contact.php and I shows jn com...
asked by 28.08.2017 / 01:23
2
answers

Error Can not set property '_DT_CellIndex' of undefined jquerydatatable

I am using PHP and when I put data into the jquery datatable the datatable style is lost, I get the following error in the console. <?php include 'inc/conexion.php'; $query ="SELECT * FROM user "; $result = mysqli_query(...
asked by 07.09.2017 / 16:49