Questions tagged as 'javascript'

1
answer

Delete a javascript cookie

I tried this way, but it's not deleted. This is my code, it is in the function of "close session" I would like to delete the cookie $(document).ready(function(){ var lascookies = document.cookie.split(';'); var a; for (var i = 0; i< las...
asked by 09.06.2017 / 17:04
1
answer

ParentNode childNodes Javascript with laravel

I have a problem with my comment system on the website. The problem is this, I want the comments to be edited in a modal window "that already works thanks to bootstrap" but I can not get that comment that will be edited to load in the modal w...
asked by 03.06.2017 / 01:59
2
answers

Get the value of a checkbox and show it in input text js or jquery

Good day how you could get the value of a checkbox and then show it in an input text. <form class="form-horizontal" method="post" enctype="multipart/form-data" id="addproduct" action="index.php?view=addproduct" role="form"> <di...
asked by 01.06.2017 / 17:18
1
answer

problem with my browser mozilla firefox, I can not take "time" or "date", implement javascript to correct this problem

I need to put the time in an input, as I get some arrows in the input to add the time, but in mozilla does not appear, how can I implement this with javascript so that I can use mozilla, this is my code. <?php $actual=strftime( "%Y-%m-%d",...
asked by 01.06.2017 / 16:16
1
answer

How to detect the end of my document with Jquery?

What I would like to know when the user sees the main view of my application and it reaches the end, the footer should appear in a colorful way, I currently have several lines of code in juqery that should send me an alert when I arrive in the e...
asked by 07.06.2017 / 01:09
1
answer

General Curry Function

Could someone explain how this function works? I'm studying currying (I do not know what Spanish translation you will have) and in a part of the book it teaches this function as a general curry function (or a general curry function). I find i...
asked by 24.05.2017 / 01:59
1
answer

Validate the blanks - NOT allowed - Javascript

I have a form with several fields in which it must be valid NOT to enter blank spaces. If so, you should show an error message. How would spaces be controlled? For example in the name field ... I have the following code: //Función que...
asked by 23.05.2017 / 22:43
1
answer

Create a table using DOM with 2x2 cells - DOM functions

I am making a table of 4 squares, 2x2, and I have created the elements by means of DOM, only DOM functions can be used. Why does not the table generate me? HTML Code: <!DOCTYPE html> <html lang="en"> <head>...
asked by 30.05.2017 / 18:23
1
answer

Access the result of AXIOS JS

Good afternoon, I am making use of the Javascript AXIOS library for calls to the server and consumption of an API. Everything works fine, but I need to know how the elements of the JSON result can be put into variables to access them. For exa...
asked by 30.05.2017 / 11:57
1
answer

Uncaught TypeError: Can not set property 'onclick' of null

Malfunction or bad syntax of the "onclick" event on HTML elements created in a DOM function. Why is this error? animales.js:70 Uncaught TypeError: Cannot set property 'onclick' of null Line 70 is the following: document.getElementById(...
asked by 31.05.2017 / 13:30