Questions tagged as 'javascript'

1
answer

Distinguish the "undefined" value of typeof from a non-existent variable of a defined one with the value undefined

Let's take an example: var a; //hereda el valor undefined automaticamente var b = undefined; //se le asigna el mismo valor pero manualmente //Si accedemos a los tipos console.log(typeof a); //"undefined" console.log(typeo...
asked by 26.11.2017 / 09:24
1
answer

Run double click, just with a click

How can I do that by clicking on the + button, I automatically re-run the same functionality but as if I had clicked on the other + button. I need it that way since one brings different data to the other, but I want it to be automated,...
asked by 26.01.2017 / 16:11
1
answer

send checkbox values as fix by ajax [duplicated]

hello I have the following problem .. I need to send the values of a group of checkbox in an array, through ajax and process them in php with codeigniter. I am starting with ajax so I do not know much about the matter, its contribution would b...
asked by 25.01.2017 / 21:44
1
answer

Conflict with condition in JavaScript

I have 3 checkboxes, which you select optional 3 boxes. If I select one of them and deactivate it because I do not want that option because maybe I made a mistake, it sends me a message that I must select a schedule. I would like to know how...
asked by 25.01.2017 / 20:46
1
answer

Delete the text between the keys of a username

I have a game like agar.io and PIELES are used. The skin is put in the player's name with { ... } . That is, {nombreDaLaPiel} Nickname . The function that hides the name of the skin so that it can not be seen in the...
asked by 29.01.2017 / 16:42
1
answer

Update a selectbox using ajax

I'm trying to update a select box after creating a regristro from another controller (called "catgrupo" creating categories), but I'm getting the following error: ActionView::Template::Error (undefined local variable or method 'f' for #<#&l...
asked by 15.01.2017 / 19:13
1
answer

validate form with jquery-validate in ajax

Hi, I have the following problem, I have made a save function with PHP and Codeigniter , using AJAX too .. everything works fine, but it turns out that I want to validate my form using jquery-validate before making the AJAX request, for...
asked by 19.01.2017 / 15:44
1
answer

Error in my form with a webview?

What error can you see here? Since in the browsers the load of files works well, but when I use a webview (tried with another web of testing and that works well) in my web it does not work, therefore, everything indicates that my form something...
asked by 30.04.2017 / 13:13
2
answers

Extracting components in React

I am taking my first steps in React js and I have a couple of questions that I would like to clarify before continuing to develop. As I understand the only difference between function User(props) { return (<li>props.userName</l...
asked by 01.01.2017 / 17:44
2
answers

Send mail using javascript

I have a page that needs to send emails from the client using javascript. Until recently, the following instruction worked for me: <a href="mailto:***@gmail.com?subject=Asunto del mensaje&body=Hola Es un nuevo correo">Enviar<a/>...
asked by 04.01.2017 / 20:17