Questions tagged as 'javascript'

1
answer

Failed to connect WebSocket php - javascript

I am practicing webSocket and I try to connect php with javascript - html5 to be able to later make a chat, so I have the following in servidor.php . $host="127.0.0.1"; $port="3333"; $socket= socket_create(AF_INET,SO...
asked by 29.09.2018 / 23:28
2
answers

Select pseudo-element with javascript

I have this pseudo class: .swiper-pagination-v::after{ content: "b6"; margin: 10px; background-repeat: no-repeat; } And I need to select it because it's the arrow that makes the slider work, for this is this kind of javascript:...
asked by 21.08.2018 / 14:55
1
answer

Function to concatenate html and jquery table data

I have a table in html with a checkbox in each row what I need is that when selecting the checkbox I take the value of a cell <table> <thead> <th>Seleccionar</th> <th>ejemplo</th>...
asked by 09.08.2018 / 20:37
1
answer

Click counter with ajax and PHP

I would like to know if you have an example of how to count a click in a label <a></a> and that% click is stored in a database so that after the total number of times clicked is counted. < br> In the network you...
asked by 09.08.2018 / 18:58
1
answer

Event click inside a tag that has another click event?

I am creating a label in the form of a bar that contains icons, this label has an associated click event that, when activated, shows me a detail. Now, the problem arises when I want to give an event click to the icon, which are contained...
asked by 14.08.2016 / 23:22
2
answers

Callbacks explanation of how it works

Hello, I'm new to this and I'm not entirely clear on how this code works, first print 'start', then 'finish' and then the callback since it is in an asynchronous subprocess, right? but I do not understand the syntax of suma(5,6,function(result...
asked by 09.04.2018 / 14:47
2
answers

How to use serialize in a form with File type input?

I have a form in html to register a product for it use ajax, when I make a serialize to the form I get all the fields of the same except for the field of type file that with FormData (), I can get this field but I like to know there is a way wit...
asked by 30.03.2018 / 12:30
1
answer

how to wait for 2 AJAX requests to finish before processing with the answer of 2? Without JQuery

I am doing several tests to get together the information of two different AJAX (Without JQuery) requests (therefore with their different times etc ...) but I can not "get" the information of the function that processes the AJAX response. I gi...
asked by 01.04.2018 / 12:03
1
answer

How can I lower the opacity of a background image from 1 to 0 and return from 0 to 1 and so on?

// find elements var $window = $(window) var $layer = $('#banner-message') var $section = $('.section') $(window).on('scroll', function() { var $windowScroll = $window.scrollTop() var $scroll = $windowScroll / 1000...
asked by 11.05.2018 / 15:52
1
answer

How to pass the VALUE of an INPUT to another INPUT of a table created with JQuery?

You see, I have my code, in which of a search that I do, when selecting the result the fields (INPUTS) are filled automatically using the autocomplete. Now, clicking on add using JQuery I have created a table which creates all the INPUTS similar...
asked by 18.05.2018 / 23:43