Questions tagged as 'javascript'

2
answers

Call method in action of a form that invokes which page should be redirected

When entering a value in the input text, I should check the database to see if it exists. If so, should I redirect to formDetails.php. If not, I should redirect to formRegister.php. I've been working on this for a few hours and can not find a...
asked by 21.09.2017 / 15:52
0
answers

Error when calling REST service - Url Encode

When attempting to make an HTTP GET call, the service returns a 500 error because in the querystring the + encoded symbol must be used instead of spaces. Ex .: LOS + ANGELES = LOS ANGELES autocomplete(term: string){ var url = this.serviceU...
asked by 21.09.2017 / 14:14
1
answer

Block navigation until validate token login, using Spring, AngularJS and JavaScript

I have a question .. I've implemented a login validation using JWT. It works fine, it generates the token within the requests. However, in the login page, if in the URL I put the next page the system lets go. Login COntroller @RestControlle...
asked by 18.09.2017 / 20:20
0
answers

Connection via socket only when needed

I have a web application that needs to refresh some values often because the changes have to be available almost in real time. To do this, I run via ajax a refresh.php routine every 15 seconds, which returns the updated information. Time that in...
asked by 18.09.2017 / 20:46
1
answer

How to use two forms with the same ID?

Hello, I found a problem. I'm doing an HTML form integration with Google Sheets. The issue is that I have two forms, I'm not excellent in Javascript but it seems that the "var fields" function only works with the HTML id. So, the problem is t...
asked by 18.09.2017 / 16:14
1
answer

Graphical query handling via javascript [closed]

Good afternoon, I have a query on my system where it generates a graph. Inthefirstcaptionofthegraphitislikeundefined,Iwastryingtoredomyqueryonlyitwasnotcomingwiththesamevalues.Iwantedtoremovetheundefinedoptionthatisinmycaptionleaveonlythelastth...
asked by 18.09.2017 / 20:45
2
answers

How to make tables with BUTTONS with different ids for function javascript

Good afternoon I'm setting up a table with the following code <table align="center" cellpadding="10" id="user_table" class='table table-striped table-advance table-hover'> <tr> <th>NOME</th> <th>C.P.F.</th>...
asked by 18.09.2017 / 20:59
2
answers

Reset option select

JS: function alterarStatusFunction(val){ if(val =="aprovado"){ if (confirm('Tem certeza que deseja alterar o status dessa transação para APROVADO?')) { document.formtransacoes.submit(); } else { re...
asked by 18.09.2017 / 21:11
0
answers

How to catch the error: SERVER RESPONDS REQUEST-URI TOO LONG, STATUS = 414

I'm doing a chat application, which opens a file (via file input) and then converts it to DATA URI. (I'm using PubNub) when I send the string, I get a 'URI too long' error. How can I compress the URI, or at least capture this error? (try..catch...
asked by 18.09.2017 / 22:00
2
answers

Compare two values with jquery

How do I compare two variables. I have a variable that brings the id of the neighborhood, called neighborhood, which returns the ID of the neighborhood equal to 1093. So I have a foreach that returns all neighborhoods registered in the system, t...
asked by 19.09.2017 / 16:20