Questions tagged as 'javascript'

1
answer

Broadcast via a route on Express

I have an endpoint in an application node that when calling should trigger a broadcast to the connected users in the application node. That is, as soon as the user entered the system it would connect through the socket.io and would wait until an...
asked by 24.09.2015 / 21:06
1
answer

Jquery anchor extremely accurate!

I'm using the following code: <?php foreach($sqlPortfolio2 as $dPortfolio2): echo '<li><a href="#guia'.$dPortfolio2['id'].'" class="scroll">'.$dPortfolio2['nome'.$lg].'</a></li>'; endfor...
asked by 18.09.2015 / 11:58
1
answer

How to bypass Same-Origin Policy and consume a SOAP webservice with JavaScript

I am building a mobile application using PhoneGap for iOS, Android and Windows Phone and need to connect to a SOAP webservice for various application features. I've been trying to do this with Ajax, but I always have the same problem: hit Sam...
asked by 21.09.2015 / 11:42
1
answer

Remove the last entry entered in a form with multiple answers

I have a 10-question form in which the person should put only 3 answers. If it fills more than 3, the last input entered should be deleted. Here is my code: It even works, but the problem is that it does not delete the last in...
asked by 10.05.2015 / 02:55
2
answers

How to index in google sites that use javascript? [duplicate]

I'm doing a SPA site with angularJS and I'm having a hard time indexing every page on google, because as I load information via AJAX, it just indexes my home page, I've read a lot of things about it, and I have one good English, but I decided...
asked by 18.04.2015 / 15:42
1
answer

Looping jquery setInterval

I'm making a slider, and I need it to start again when I see the images, but I can not. Could someone help? JS $(function(){ // Buttons Hover Effect buttonsHover(); function buttonsHover(){ var buttons = $...
asked by 24.11.2015 / 23:41
1
answer

Recover Mysql data and save to a vector

Reformulating the question .. I have a MySQL database, inside it contains a table named map, inside the map table I have the fields idmapa (auto_increment), lat (which stores the latitude of a map position), lng ( which stores the length of a ma...
asked by 25.11.2015 / 02:02
1
answer

Functions with public properties

How can I use a function as an object? More precisely, I'd like to repeat the $http behavior of the angle, where you can perform a requisition in the following ways: $http.get('url'); $http.post('url', data); $http({ method: 'ge...
asked by 30.03.2015 / 20:51
1
answer

Problem with Spring MVC + javascript

I'm having an issue with Spring MVC and jQuery. I have a jsp with a 'form' and I needed to do a test where when I click on a button, jquery clears the texts of some "input type = 'Text'". I even managed to test, but every time I click the...
asked by 30.03.2015 / 16:15
1
answer

Tag get size of another TAG

I wonder if there is something in the CSS, or JS that makes a TAG that takes up space, make the 'parent' TAG fit the size of the 'daughter' TAG. Ex: <iframe> <body>o Body possuí um tamanho que varia de acordo com o conteúdo ex 1...
asked by 03.04.2015 / 20:24