Questions tagged as 'javascript'

1
answer

Change the date validation of the mm / dd / yyyy format script to the format dd / mm / yyyy

I have a script that validates date in mm / dd / yyyy format but I would like to change this validation in dd / mm / yyyy format. SCRIPT function validarData(fld) { var testMo, testDay, testYr, inpMo, inpDay, inpYr, msg var in...
asked by 15.05.2017 / 01:09
1
answer

HTML - I can not align a textarea, all other items are aligned

HTML: <body> <table class="Cabecalho" width="100%"> <tr> <th width="33%"><a href="Home.html">Home</a></th> <th width="33%"><a href="PaginaContato.html">Atendimento</a...
asked by 15.05.2017 / 04:03
2
answers

Form with calculation

I am now making an equipment rental website, however, I only have the essentials to finish it, a form that allows me to calculate the cost of the rent taking into account the price of the product, the quantity, and the days will be used, somethi...
asked by 07.09.2017 / 11:12
2
answers

Wait for ajax response before continuing in the loop

How could I make the following code work? On the sleep.php page I have 2 seconds of waiting for the test only. I need the next for to run only after the complete execution of the corrige function. I tried to use promises but I c...
asked by 06.09.2017 / 01:40
1
answer

You can insert new HTML with pure.js

I want to use the pure.js framework, to create a post via json. I found it on the Stack platform in English this topic , which is what I want to do, but there is a problem, I am not able to make the example of the second person who answered...
asked by 06.09.2017 / 19:04
1
answer

Unsuccessful Ajax request

Hello, I am performing a request in Ajax, and there is an error in which the value of the line code clicked (in a table) for Ajax is not passed, but I have another example that works perfectly and that is with error. I believe that the possible e...
asked by 21.03.2017 / 13:52
1
answer

Problem with running EventListener

if((document.getElementById("avatarZica").innerHTML == "")){ document.getElementById("avatarLegal").addEventListener("click", function(){ document.getElementById("avatarZica").innerHTML = "<canvas class='emscripten' id='can...
asked by 20.03.2017 / 20:31
1
answer

Problem with context Menu

I'm putting this context menu inside a table, it is working perfectly, right-clicking it opens. But who clicks the link it closes without redirecting to page, does anyone know what the problem is. // Abre menu var aberto = false; $(docum...
asked by 20.03.2017 / 19:36
2
answers

Rename a variable using Parameters of a Function // Javascript [closed]

This is just an example: function myfunction(u) e+"u" = 1 x+"u" = 1 o+"u" = 1 //ai chamando ela... myfunction(1) e1 = 1 x1 = 1 o1 = 1 Would you like to make it valid or do something similar?     
asked by 16.03.2017 / 17:29
1
answer

JSONP breaks in the colon (":")

The server sends a JSON, normal. Here is the code: @GET @Path("email") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public String getEmail(){ ViewStatisticsEmail statisticsEmail = new ViewStatisticsEmail();...
asked by 12.09.2016 / 15:52