Questions tagged as 'javascript'

2
answers

Problem with asynchronism [duplicated]

I have a function like this: function pru1(){ var temp1=pru2('Chocolate'); if(temp1){ alert('Chocolate'); }else{ alert('Nope'); } } function pru2(element){ $.get('/listaElementos.php',{ funcion:...
asked by 23.10.2017 / 14:22
2
answers

get javascript url value

Hello, I would like you to help me, I am wanting to do a following validation in javascript. I explain, I'm realizing that I have data from a table where there is a field called State. and when the state is in process when you are pressed to s...
asked by 22.10.2017 / 21:08
1
answer

Get the file of an input type file

Hi, I want to get the file from an input file. I do not want his name, nor his properties if not the file as such, and then upload it to a repository on my server. But I think I'm doing something wrong with my Js . I would be infinitely grate...
asked by 24.10.2017 / 15:27
1
answer

Select that I can not validate with javascript in semantic ui

I have in a form, three SELECT two of them are multiple and one is a simple select. I am using the semantic ui forms validation system. I can validate all the fields, but there is only one that does not validate me. <div class="field">...
asked by 03.10.2017 / 15:03
2
answers

EventListener for this javascript

I have the following javascript : $( document ).ready(function() { var pos = $('#center').position(), radiusSat = $('#sat1').width() * 0.5, radius = $('#center').width() * 0.5, cx = pos.left + radius, cy = pos.top + radius, x,...
asked by 05.10.2017 / 09:41
2
answers

Validation of the Curp in sat

Does anyone know of a webservice or how to post to validate if curp is correct? or failing to obtain all the information of the curp ? Searching the internet I found this http://consultas.curp.gob.mx/CurpSP/curp1.do?strCurp=' . $curp . '...
asked by 18.10.2017 / 18:24
1
answer

How to remove letters from a word? [closed]

For example, I have the following word "ASTRONAUTA", and I want to show it in an alert, it should always show the first letter of the word followed by the next vowel, it should be like this="AO", nose if I do not I explain, it would have to be u...
asked by 19.10.2017 / 05:05
2
answers

How can I include alertify.js in an .php file?

I would like to know how I can include the link plugin in an .php file, this is what I have up to the moment: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../librerias/css/Login.css...
asked by 11.10.2017 / 23:27
1
answer

Validate field depending on the value of another Angular

I request your collaboration to indicate how I can validate a text field that depends on the selected value in a Radio button; really what I need is to activate the observations field only if option 4 is selected, but the form shows it as invali...
asked by 02.10.2017 / 02:17
2
answers

Laravel views loaded with Ajax do not run external js files created with webpack

The problem is this, I have a form and I use ajax to bring me a specific section of it by means of a select field, I use views created with Laravel. ajax: $(function(){ function showPlanningFormProduct(){ var value = this.valu...
asked by 13.12.2017 / 02:47