Questions tagged as 'javascript'

2
answers

How to update a database without action from the client?

I'm not very advanced in php, sql and everything else, and I came up with the following doubt. Assuming that today is day 10 and I want that if it happens on day 12 an information in the BD is updated to 'sent' for example, if the user is open h...
asked by 06.04.2018 / 23:05
1
answer

Include javascript in Shiny

I would like to include the event "Restore column visibility ( link ), the code would be this below: $(document).ready(function() { $('#example').DataTable( { dom: 'Bfrtip', buttons: [ { extend: 'colvis',...
asked by 01.06.2017 / 20:04
2
answers

How to create associative arrays in javascript, json, how to manipulate?

It's the first time I'm dealing with this situation, so I do not know exactly how to get around it. The fact is this, I have a form with several inputs, divided by sections: IntheExperienceTab,IfillinsomeinputswiththedataandwhenIclickaddIcreate...
asked by 15.06.2017 / 06:31
2
answers

How to make a div hide when clicking off it with jQuery?

Hello. How do I hide this div when I click outside it: IneedittodisappearwhenIclickoutsideit.Here'sasimilarexample: $("body").on("click", function() { $(".passageiros-div").slideUp("slow/400/fast"); }); .passageiros-div { border...
asked by 08.06.2017 / 20:07
1
answer

How do you make an image and text appear when you click on an option?

I can not ask a question that asks:    A small library has only fiction and textbooks   (Mathematics, Portuguese, etc.). You are building the   library loans. On the first page of the system, you should   there is a select for the user to cho...
asked by 16.06.2017 / 01:24
1
answer

Would it be possible to identify if a DIV is over another DIV using some kind of script?

I have a DIV A, which moves on screen by clicking the keys on the keyboard. Is it possible to identify if this DIV A is on a DIV B using some script and trigger an event when the position of that div is recognized over the other? Code to move...
asked by 18.06.2017 / 08:42
3
answers

Remove whitespace while counting Javascript

I have this code: function contar() { var num_caracteres; num_caracteres = document.form1.txtTexto.value.length; document.getElementById("contador").innerHTML = num_caracteres; setTimeout("contar()", 100); } <body> &...
asked by 15.08.2017 / 16:11
2
answers

Javascript concatenated in input name

Is there any way to concatenate a variable javascript next to a input ? This input hidden I would submit next to an HTML form As for example: <script type="text/javascript"> var strConcatenada = "STR_VARIAVE...
asked by 16.08.2017 / 20:41
1
answer

Difference between these two declarations of immediate functions [duplicate]

What's the difference between: (function() { console.log('Hello :)'); })(); e: (function() { console.log('Hello :)'); }()); ? The two code snippets do the same thing, so I was left wondering if there is any difference ot...
asked by 02.10.2017 / 02:32
1
answer

Mask for digital ticket line field

Would anyone know if there are any masks for the ticket line? I have a screen where a client's ticket listing is displayed, and I also display the entire line with no points or separations, since this record comes from a webservice. And in th...
asked by 04.10.2017 / 17:16