Questions tagged as 'javascript'

3
answers

How to write and appear somewhere what I wrote

Well, on websites nowadays some things are found that I can not explain, for example, think of a form asking for your name, you fill in, and at the same time your name appears on top of it, as if you were typing and appearing in the form and abo...
asked by 19.07.2015 / 01:28
1
answer

Difference between $ (window) and $ (document)

Is there any difference between using $(window) e $(document) ? Because of what I found they do the same thing .... And this initialization: $(window).on('ready load resize', function(){ Would it work if it were like this? $(d...
asked by 24.04.2015 / 21:57
1
answer

Uncaught SyntaxError: Unexpected token this

When this code is run together it gives this error, but if it is formatted with line breaks it runs normally, how to fix? Error:    Uncaught SyntaxError: Unexpected token this Code in question: var Recorder = function(source){ this.c...
asked by 13.07.2015 / 23:29
2
answers

Modal display when submitting a form

How do I display a modal the moment I submit a registration form? The content of this modal is only a message. The following happens, in this form a file and information is sent. Since it usually takes a few seconds for the upload to take place,...
asked by 25.07.2015 / 21:32
1
answer

optional character in mask with Jquery maskedInput does not work

In a form that I am developing, one of the fields that the user needs to fill is the cell phone, and since some regions of Brazil have 9 digits, I am using the jQuery MaskedInput to format the data entry. The problem is that when I create t...
asked by 20.08.2015 / 14:27
2
answers

How to format the date of an input [date] in the format dd / mm / yyyy '?

I have a page, built with AngularJS, which has a input [type = date] . Basically, what I want is to take that date and format (ie, display to the user) using the format 'dd/MM/yyyy' (for example: 28/05/2015 ). What is the pr...
asked by 29.05.2015 / 04:48
2
answers

Help with jQuery. in calculation of plots!

I'mdevelopingasystemwheretheusercanselecttheamountofparcelshewantstosplithispurchase..untilthenokay..butafieldwasrequestedwheretheusercanentertheamounthecanpayperinstallment..andwhenfillinginautomaticallyhemustidentifywhichvaluethatdividedby12c...
asked by 29.09.2017 / 21:47
4
answers

Which way can I use regular expression to capture only some attributes of links

I need basic example (s) of how I can compose a tiny script to just get the contents of the attribute href . I will simplify the explanation in two groups, they are: A and B In Group A we have the respective links started...
asked by 14.12.2017 / 06:44
1
answer

Unsecured script

I'm developing a website with 2 scripts. But by submitting the site to the testing area, the scripts do not load, as in the image below. What should I do to run automatically and be recognized as safe?     
asked by 17.10.2017 / 19:24
2
answers

How to make this slideshow infinite?

It's a passing carousel, but the only way I was able to do it was like this: when it arrives on the last slide, it goes back to the first, doing a sort of "return transition" at the beginning. Question: I would like the slides to be in infinit...
asked by 22.01.2017 / 12:07