Questions tagged as 'javascript'

3
answers

Validation of filled fields of a form

Today I have a few forms in windows (modal) and some of these fields need to force the user to fill in today I'm doing the following: Form: IftheuserforgetstofillinsomefieldIusethefollowingcodewheremyformvalidatesandifthereisanerroritreturns...
asked by 27.06.2017 / 11:57
1
answer

object inside javascript object [closed]

Can you give me a basic example of how it's done in the image below?    Ineedtonestinformationobtainedthroughtheobter_conta_mefunctionthrough of this code (click here) , before the $('[name="id"]').val(tbl_lancamento.id); line %     
asked by 29.06.2017 / 20:37
1
answer

How to make this variable global?

I'm using this script to check for support for webp images but I'm having trouble setting the type, here's the code that checks: hasWebP = (function() { var images = { basic: "data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAA...
asked by 07.04.2017 / 18:08
1
answer

Uncaught SyntaxError: Unexpected identifier

I am having this error on line 14 of my script but I can not see the error, if anyone can help, thank you !! line 14 - > error: function (data) { all code $(document).ready(function(){ function confLojas(id) { var resposta = confirm(...
asked by 11.04.2017 / 15:44
3
answers

Is there any javascript function that marks a selected random text with the mouse?

Hello, you know if it is possible to create a text marker, similar to the ones used in pdf, but in an html? Not necessarily he would need to save the markings, but if he saved it would be better. Thanks!     
asked by 04.04.2017 / 14:33
1
answer

How to rotate a div?

Well, I have a div that contains secondary divs inside it, what I want is to make an effect, which rotates the inner divs, ie from right to left, killing the position of the main div. In other words, I wanted to move the inner divs by clickin...
asked by 30.01.2017 / 01:59
3
answers

While loop - number counter minus 0

Good evening! I need to apply a loop for the user to always enter a number (via prompt), when typing 0 should appear an alert stating the number of numbers entered, not counting zero. I'm not understanding what I'm doing wrong, as it is di...
asked by 28.01.2017 / 06:45
2
answers

How to incorporate a div to the article form or vice versa?

I'm developing a template for a project and I needed to add images only if these images represent the place of the client's chairs and when the user clicks on any of those chairs the place is marked, only it is necessary to make that place marke...
asked by 27.01.2017 / 01:44
1
answer

Page refresh with limit [closed]

Possible some form of a script that updates the page in a limited way? example I have the script update a page only 10 times and then for is it possible?     
asked by 28.01.2017 / 18:44
1
answer

Progress bar in angulajs

I need a% w / o% to be the image of a chalice being filled with progress-bar . Something like this: link . Can anybody help you? I still do not have the official image, but it would look something like this: When you open a page, th...
asked by 30.01.2017 / 18:56