Questions tagged as 'javascript'

1
answer

PHP equivalent JavaScript functions

I have this code in JavaScript, getting the values of some datepicker and it works correctly: var fecha_ini = $('.fecha_ini').val(); var fecha_ini_dia = fecha_ini.substring(0,2); var fecha_ini_mes = fecha_ini.substring(3,5); var fecha_ini_anio...
asked by 27.03.2018 / 17:07
1
answer

Validate Text only and JavaScript point

I'm using the Fancygrid.com Framework, and I need to validate in a Field to accept only texts and period, I'll explain. I have a field called user and the structure is: juan.cruz As you can see the field validation must accept letters and th...
asked by 28.03.2018 / 16:19
2
answers

How can I validate that an INPUT TEXT accepts only 1 word and numbers?

I am in need of a code to validate that in an input I only accept one word "item" + numbers, that is, I only accept those filters, and be able to send an alert to a user that enters that input. example: item123     
asked by 26.03.2018 / 21:19
2
answers

doubts with setTimeout

I'm good at learning how to program and writing a code I had a very curious problem I try to make the scroll go slow when I click an anchor in the menu but it did not work when I wrote my line (comment below on the code), searching the internet...
asked by 20.06.2018 / 22:58
1
answer

TypeScript error TS1005: ',' expected Nothing happens to me!

I have the following problem, when compiling my code it sends me the following error:    ERROR in src / app   /components/login/login.component.ts(9,2): TS1005 error: ',' expected. I've seen several posts and I've done what they say but...
asked by 27.06.2018 / 05:53
1
answer

How to send a different email for a different form in laravel?

I need to send an email for one form and another email for another form ie I have two forms in the same view, The first form is called user has the following fields: name mail subject comment When the user sends the message, an e-m...
asked by 10.06.2018 / 22:51
1
answer

How can I pass a javascript object to string?

I have an object in Javascript with different attributes, some of them are arrays . I would like to know if there is any function of any kind style. toString() to return a text string with all the data. Example: let p...
asked by 27.01.2018 / 09:18
2
answers

Jquery - Load multi-image from input file to container

I would like to upload the selected images through a multiple input type = 'file' to a container in real time, that is, I select a series of images and once accepted the samples in a modal window. Googleando I have found code, which after mod...
asked by 01.02.2018 / 11:30
2
answers

Return AJAX response to another function

I have two functions First function: sendRequest: function () { jQuery.ajax({ type: 'POST', url: xtremeSearchUrl, dataType: 'json', async: true, data: JSON.stringify(data), success: function...
asked by 31.01.2018 / 16:59
2
answers

Capture pointer movement in Google Maps

Good, I have this code that I must implement in a form ... What I need to do with it is that the user can mark the location of his home to later save it in the database ... My problem is that no I can capture when the pointer / click on the map...
asked by 01.02.2018 / 20:15