Questions tagged as 'javascript'

1
answer

Help with JS code

I have this code: if(post.link[k].type == 'post miniatura'){ var postMiniatura = post.link[k].href; } else { var postImage; try { postImage = post.media$image.url } catch (err...
asked by 22.01.2017 / 16:33
1
answer

How to list in the View what appears in the console?

I have this routine: $scope.array1 = window.localStorage.getItem("tipos_pagamentos"); var as_formas_pag = $scope.array1.split(';'); for (var i = 0; i < as_formas_pag.length; i++){ $scope.array2 = as_formas_...
asked by 22.01.2017 / 15:39
1
answer

how to do the tap function on android notification

Hello, I have the following situation, it is a chat, and the user receives a message .. I want that when the app is minimized it receives an alert ... The part of the alert already did and it is working: @JavascriptInterface public void no...
asked by 29.12.2016 / 15:39
2
answers

How to list array values (AngularJS) using PHP?

I would like to know how to perform the listing (" foreach ") of my $scope.items array within PHP so that I can work individually with each value entered. JavaScript: var app = angular.module('app', []); app.controller('control...
asked by 30.12.2016 / 03:31
3
answers

Auto height in iframe?

I have an iframe and I need the height of it to be automatic according to the content inside it. How can I do this? No jquery of preference.     
asked by 02.12.2016 / 21:02
2
answers

Select in MySQL ignoring single quotes

Hello How can I use this select and ignore value with single quotes? . . .st.executeQuery("select * from tabela_A where id = uc"); rs = st.getResultSet(); while (rs.next()) { texto = rs.getString("rua")...
asked by 02.12.2016 / 17:34
2
answers

Change layout according to each button [closed]

I've seen many sites that change background according to what the user chooses right? However, would it be possible for me to change the content of the site according to the button that the user clicks? Example: I have a page that...
asked by 03.11.2016 / 19:51
2
answers

Mouse events (when passing in an element x) Jquery

Well, I'm having problems with mouseenter (). it just triggers the event if I click, I need to pass the event inside an element (div). How do I do: $('#<?php echo $x?>').mouseenter(function(){...
asked by 29.10.2016 / 04:09
1
answer

Prevent the page from being displayed only when all the elements of the page are loaded

I have a page in html, in that ready data, this part looks like this: <table class="table table-responsive"> <thead> <tr> <th>Item 1</th>...
asked by 29.10.2016 / 06:55
1
answer

Music on the jquery slide

I have a slideshow, I'm trying to get every id content div to play the music in the div content. I was thinking of using an if ($ ("# Content1"). Is (": visible") {$ ('# 1.mp3'). Play ();} But I looked on the net how to do this but did not find...
asked by 12.12.2016 / 14:21