Questions tagged as 'javascript'

1
answer

How to use touch event on iPad with ui-draggable and ui-resizable?

I'm using the following library: //code.jquery.com/ui/1.11.4/jquery-ui.js But when I put it to Mobile or iPad, it stops working, is there any way to get around the problem? Javascript: $(".container .item") .draggable({...
asked by 03.01.2018 / 21:45
2
answers

Put "hand" in the iframe [duplicate]

Good morning. I'm opening .png files with iframe and would like to know if it's possible to put that "little hand" that google maps uses to drag the image inside the iframe. The usefulness of this "little hand" is to drag the image to the si...
asked by 04.01.2018 / 12:10
2
answers

How to check dates in Javascript?

I have a form with two date inputs. One of them receives the beginning of the event, and the other the end of the event. With this in mind, I'm trying to create a Javascript function that makes it impossible for the end date to be before the sta...
asked by 01.12.2017 / 21:22
1
answer

Gulp Watch JS infinite loop

I'm a new Gulp student, and I made this watch so if my javascripts files change, it runs build-js . But when I run Gulp, it compiles everything right but it keeps running build-js in an infinite loop. What did I do wrong?...
asked by 06.12.2017 / 19:31
1
answer

Listen to an event in cookies

I'm developing an application to be used on two browser tabs. Eventually a tab modifies a cookie, so I need to refresh the other tab to load the correct information. Is it possible to hide a change in a cookie so that I can refresh the other tab...
asked by 07.12.2017 / 15:04
2
answers

Mask for fixed telephone field does not work

I tried to create a simple mask for my form, but the landline is not returning as expected. Code: function formatar(mascara, documento){ var i = documento.value.length; var saida = mascara.substring(0,1); var texto = mascara.sub...
asked by 07.12.2017 / 18:09
3
answers

Help to understand localStorage.js

I'd like some help to enter localStorage in javascript . Objective: To make a function of saving information in the input identical to wordpress, example:     InthethirdprintitiswhatIwant,ifitdoesnotenteranythinginthepasswordfield,butalre...
asked by 07.12.2017 / 20:24
1
answer

Lock typing TextBox field with CalendarExtender

Good afternoon, I need to block typing the date in an asp.net TextBox field. It can only receive the date selected in the calenderExtender component applied to the TextBox. Would anyone have some way via front end to block typing?     
asked by 23.01.2018 / 20:11
1
answer

Difficulties in loading data in Input via Ajax

I'm trying to load data via Ajax by typing a code and clicking on TAB it automatically searches the DB and prints it on form inputs. Iranatestwithconsole.log(data)andthedataisbeingreturnedbutdoesnotloadtheInputsoftheform FollowtheJSCode//Buscoa...
asked by 25.01.2018 / 16:39
1
answer

Convert a jquery string to pure Javascript

I have a jquery code that would like to convert it to pure javascript, DOM. Can anyone help me? var mobileItems = jQuery( '#slide-out .nav-mobile .main-menu' ); mobileItems.find( 'li.menu-item-has-children' ).append( '<i class="mobile-arrow...
asked by 21.01.2018 / 17:27