Questions tagged as 'javascript'

1
answer

Function javascript text to uppercase and remove accents together

I have the following script working perfectly, I would like to implement the function remove accents already found several tips but they did not work, as I do not understand javascript, I would if possible implement the function in my already ex...
asked by 28.06.2017 / 14:27
1
answer

Accessing different objects within an array

How can I access this object in the right way? I have these two scenarios Object Array[2] Object: {"code": "a", cor: "vermelha"} Object: {"code": "b", cor"azul"} and Object Array[1] Object: {"code": "b", cor: "azul" } If I...
asked by 20.07.2017 / 03:11
1
answer

Google maps warning: getCurrentPosition () and watchPosition () no longer work on insecure origins

I'm using laravel with a virtualhost and I need to make the map work on localhost, but I already have the google key and even then, without putting the restrictions on the key, the message still appears. How do I make Map work in the localhost e...
asked by 19.07.2017 / 16:16
2
answers

Can not convert JSON List to Array in Javascript

I'm having trouble getting javascript data from a json. To better explain, the data comes from the database, like this: // PHP $rs = mysqli_query($con, "SELECT id_acao as id, text FROM acoes"); $data = array(); if (mysqli_num_rows($rs) &...
asked by 11.07.2017 / 15:58
1
answer

Jquery help does not appear

I have a problem on my site, I had the help of a forum member who gave me a jquery code, I put it to run on my site, but I have a problem with it, the warning that should be generated does not appear, Can someone help me? #topo { background...
asked by 11.06.2017 / 16:43
1
answer

Click running wrong

I have this code: function loadEditLabel() { // Salva o novo input saindo do campo ou apertando enter $('[contenteditable="true"]').focus().select().keydown(function(event) { if (event.key == 'Enter') { // Checa se a tecla dig...
asked by 12.06.2017 / 21:57
1
answer

Simple gallery with javascript

I wanted to make a gallery simple, just to pass images that are inside a folder, but would be several folders, with a number of different images so it would have to be automatic. My code looks like this: JavaScript: function forward(){...
asked by 12.06.2017 / 21:26
1
answer

Error Loading multiple pages in php site

I have a PHP site where I have to load several pages. Only once. What is happening is the overlay of screens with several inclusions. <div class="container"> <h2>MAPAS</h2> <ul class="nav nav-tabs"> <li>&l...
asked by 12.06.2017 / 22:43
2
answers

Jquery does not run on the first page load!

Hello, I have a page where the first loading of Jquery does not run, refreshing the page (refresh, F5) the function written in JQuery works. I'm using JQuery with Ruby On Rails technology. Solutions: Add script at the end of HTM...
asked by 13.06.2017 / 14:32
1
answer

Call php server side with Ionic and AngularJS

Hello everyone. I have this doubt of the title that I still can not heal. I've looked for several shapes and even the conventional angular shape:    $ http.post () or $ http.get () But I return this error:    Response to preflight requ...
asked by 11.06.2017 / 16:52