Questions tagged as 'javascript'

2
answers

Replicate DIV, change content?

I have a "certain" difficulty. I have a DIV that contains content that looks like a nota fiscal, all that content comes from an API (minus the div of course). However, I need the field DESCRIPTION to have more than 200 characters, it repl...
asked by 14.07.2017 / 19:42
1
answer

Functions run out of order

I'm calling a request via function, to load 2 different items to my screen. In this function I pass as parameter the category it belongs, to be loaded. function requisicao(categoria){ var xmlhttp; if (window.XMLHttpRequest) {// code f...
asked by 26.09.2017 / 15:48
1
answer

Fatal error: Call to undefined function password_verify ()

Someone can help me, the error appears:    Fatal error: Call to undefined function password_verify () My Code: <?php require_once 'sistema/init.php'; include 'includes/head.php'; $email = ((isset($_POST['email']))?sanitaze($_POST['e...
asked by 22.07.2017 / 12:01
1
answer

How to get value from input checkbox array with jquery

I'm not able to check if at least one checkbox was checked before submitting to form. I saw that you have some questions similar to mine, but none of the solutions worked for me I used the following code and it is not working: $("#funcoe...
asked by 05.08.2017 / 16:06
1
answer

Sum of days on a date

I'm having trouble performing a calculation for a form. I wanted to be able to add days to a date selected by the user. I saw that there are several examples in the forum but with specified days (today for the date and the choice of days alre...
asked by 02.08.2017 / 18:04
1
answer

Doubt Javascript Date () [front-end]

I'm building a personal blog using GitHub Pages and a desktop app with NWJS to do the back end administration however I have a big question when presenting dates on the front end. Because this is a "static" site, the posts are markdown...
asked by 07.08.2017 / 08:24
2
answers

How to check if multiple dynamically created input is empty?

I have this Input that is generating via Knockoutjs: <input type="text" class="req" placeholder="" data-bind="value:Request" /> But I have to check if it is empty and if a specific css is applied: As many fields can be created the sam...
asked by 03.08.2017 / 15:25
2
answers

jquery n.fn.init (0) in test production n.fn.init (1)

I have a form that creates the input fields dynamically (ASP.NET MVC C #), when the user types in a field, I want to execute an ajax to populate the other fields. When I created a test.html, with the fields fixed and not being created dynamic...
asked by 07.08.2017 / 15:36
2
answers

Increase width in% and not in px

How do I increase widht with%? It put this code I made, it increases, but it's in px, and I wanted it to increase in percentage. var progressBar = $(".progress-bar"); setInterval(addProgress, 1000); function addProgress() { var width = p...
asked by 26.06.2017 / 18:44
2
answers

How to get the contents of the dynamic divs?

I have the following code, which is added dynamically: var m = 0; $$("#add_medicamento").click(function(){ m++; var medicamento = $$("#select_medicamento").val(); var qnt = $$("#quantidade").val(); $$("#lista_medicamentos").append('<li clas...
asked by 30.06.2017 / 22:06