Questions tagged as 'javascript'

1
answer

AngularJs Factory in another file

Good morning I want to create a separate file for each factory that I have to declare in my project, but it is not working: App.js file var GestaoGastos = angular.module('GestaoGastos', ['ngMaterial', 'ngRoute', 'ngMessages', 'ngResource...
asked by 08.01.2016 / 13:42
1
answer

PHP registration form via javascrit

I'm trying to set up a registration form via javascript where it opens a form via dialog. <div id="toolbar"> <a href="javascript:void(0)" class="linkbutton" iconCls="icon-add" plain="true" onclick="newUser()">Novo Usu&a...
asked by 12.01.2016 / 14:04
1
answer

How to create HTML table inside javascript

for (var i = 0; i < t.length; i++) { options = options.concat('<option value="' + t[i].CodLinha + '">'+'--Saida Rodov Velha:'+ t[i].saida_Rodov_velha +'--Saida Rodov Nova:'+ t[i].saida_Rodov_Nova +'--Saida Interor:'+ t[i].saida_Inte...
asked by 10.01.2016 / 03:35
1
answer

Error ajax return when accent

I have a table that when I add some text that contains an accent adds all the other texts of that same condition. already tried several ways to use UTF-8 that I found on the net but none worked and I noticed in console.log () the following error...
asked by 18.12.2015 / 22:25
2
answers

Do RETURN when the function is finished

How do I return to alert("SUCESSO") as soon as I drop into return alert("ELSE"); ? sincronizar: function () { sincronizarCliente().then(function () { alert("SUCESSO"); }, function () { alert("SEM SUCESSO");...
asked by 12.04.2016 / 15:06
1
answer

Custom Prompts and Alerts

Good evening guys, I'm working with Apache Cordova, which basically uses WEB language (html, css, javascript ...) to make Android applications, iOS, among others. I need to make use of custom prompts and prompts. I wanted to customize ever...
asked by 23.02.2016 / 22:30
1
answer

Loading Javascript from a URL through the address bar or Bookmarklet

I have some Userscripts and would like to run on my Windows Phone, however there is no app for WP like Greasemonkey or Tampermonkey. So I came up with a crazy idea but I believe it will work: Create a bookmarklet that when I call down the Use...
asked by 22.02.2016 / 21:54
1
answer

How to Create Tabular Data with Link See More?

I'm pulling from the records database of a given table. I want to show only 4 on 4 records on the screen. But I would like to pull all at once rather than paging (1, 2, 3, 4). I want to show 4 lines and put down a SEE MORE button and whe...
asked by 04.03.2016 / 14:32
1
answer

php running while giving F5 while maintaining connection to the database

I have a function in Javascript that executes a PHP code, in this PHP I open connection to the database and send data if some entries receive 1 (waiting 1 minute to change their state). When I refresh the page before this 1 minute, it...
asked by 19.02.2016 / 14:57
1
answer

Stop function (clearInterval) inside the object does not work

I have this object, it works fine but I wanted to add a property to stop, this is not working: JS: var kissesAni = { init: function () { kissesAni.callAni(); }, callAni: function(){ window.setInterval(function(){...
asked by 02.03.2016 / 15:06