Questions tagged as 'javascript'

1
answer

Pass $ scope.variable to a javascript tagged in home

How to pass content within config to global variables: //meu config app.run(function(editableOptions, $rootScope, $filter) { editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default' $rootScope.$on('$rout...
asked by 15.03.2017 / 18:30
1
answer

POST problem using JQuery

I'm studying JQuery and I'm having a problem with giving POST to an API that I have. Follow my html : <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Co...
asked by 15.03.2017 / 01:59
2
answers

JavaScript add or subtract by clicking checkbox

I need a JavaScript that when clicking on a checkbox sum determined to a total already existing in another input. And when you disable the checkbox, subtract the checkbox value from this total. I have the following: <input type="checkbox...
asked by 13.03.2017 / 22:10
1
answer

Clear fields on a form

So I'm with a problem here that is as follows: I have 2 forms. Form2 that sits inside form1. And I wanted a button to reset only the fields of form 2. But the input type="reset" that I place inside form 2, ends up clearing the 2 forms. Wou...
asked by 11.02.2017 / 15:32
3
answers

change soon by decreasing screen width

I would like that when the site was seen in mobile the logo appeared smaller, I have two logos, logo1 (major) and logo2 (minor), as I do when the site is opened on a device with screen up to 800px wide logo1 is exchanged calls logo2 logo1 &...
asked by 11.02.2017 / 02:00
1
answer

Condition to call masquerade!

How can I do to read the first character entered in the input and the part of the condition to be called a specific mask. if(Se o primeiro caractere no input for letra){ }else{ $('#login_username').mask('(99) 9999-9999?9').focuso...
asked by 03.02.2017 / 17:10
2
answers

How to get JSON data with Angular

I am studying angular and I am trying to receive JSON data from a webservice, but it has the following error:    XMLHttpRequest can not load    link . At the   'Access-Control-Allow-Origin' header is present on the requested   resource. Orig...
asked by 27.10.2016 / 20:03
1
answer

jQuery conflict with AngularJS

I'm having a problem with AngularJS and jQuery . When I use only jQuery in the layout, the menu (sidebar) I have it opens normally. But when I add the AngularJS the menu does not open anymore, it is simply closed. The bad thing abou...
asked by 27.10.2016 / 19:48
2
answers

Events with the tag selectoption

I'm trying to make a page with html + javascript, but I do not know anything about php ... Anyway, my doubt is this! I have created a checkbox, and when the user selects that option, I want to change a text ... But I can not identify which optio...
asked by 05.11.2016 / 17:49
1
answer

Basic about HTML / CSS Notifications

I'd like to know how to include notifications on my sites, as basic as possible. I researched a bit about it but I did not get any results ... I hope you can help. Beyond this doubt ... I would like to know if you are making notifications u...
asked by 01.11.2016 / 21:24