Questions tagged as 'javascript'

1
answer

php result in a W3CSS Modal

Hello! I'm testing W3.CSS and I really enjoyed what I saw until I crashed into a form with the result inside a Modal. My difficulty is when the onclick event submits the form, it opens the modal and the page gives a refresh without passing the d...
asked by 05.03.2017 / 06:00
1
answer

How do I add decimal places in a counter?

I need a countdown timer but since my knowledge is still timid in js , in that code I do not know how to add "0" in the hour, minute, and second fields. As it returns me only full numbers (ex: 0: 1: 7). In math.floor how do I add...
asked by 21.03.2017 / 20:37
1
answer

Add and remove required JQuery

I have a radio button question: <div class="row"> <div class="col-lg-1"> <div class="radio"> <label> <input type="radio" name="dirar" value="1"> Sim...
asked by 22.03.2017 / 15:45
0
answers

Lightbox window follow the screen (Sidebar)

I have a code where I can load DIV mine into lightbox, but when I roll the browser window down the lightbox window does not match. I've tried putting it as position: fixed, but so Z-index does not work! FOLLOW THE CODE: <script type="tex...
asked by 22.01.2017 / 21:02
1
answer

Google Maps - After doing new search, remove marker old

Follow the code: function initAutocomplete() { debugger var markers = []; var latitude = parseFloat('@Model.Latitude'); // -23.4811396 var longitude = parseFloat('@Model.Longitude'); // -46.3676736 var m...
asked by 23.01.2017 / 21:10
0
answers

How to generate several modalities in Angular 2 for the same view in Ionic?

Sorry for the ignorance you may not have asked the question correctly, a week ago I started to see a little about Ionic and Angular 2, I came doing some tests and I came across the following problem. <ion-view title="Teste modais" id="p...
asked by 15.01.2017 / 17:08
1
answer

ngRoute not working correctly

I'm trying to create routes with AngularJS to make a Single Application. I can load the main page that would be / , but others that contain parameters can not. I have the URL link and I need to load the view views/routes/visual...
asked by 14.01.2017 / 00:46
0
answers

Post api github

Hello, I'm having trouble getting a post to github's api, I get this error in mozilla: Blocked cross-origin request: Same Origin Policy prevents the remote resource from being read at link . (Reason: 'access-control-allow-origin' symbol m...
asked by 14.01.2017 / 21:09
0
answers

Global variable or database always [closed]

I made an application using the jQuery Mobile library, it's an application to split account. I created a main object called conta and it is incremented according to user actions (code below). As the pages are all in an HTML file, I use...
asked by 10.01.2017 / 00:20
0
answers

Good practices with $ .get of jquery

I think it's not recommended to $.get within $.get . But then what would be the best practice for this code below: var valorSalario = getSalarioAtual(location.state); $.getJSON('https://geoip-db.com/json/geoip.php?jsonp=?').do...
asked by 09.01.2017 / 18:50