Questions tagged as 'javascript'

1
answer

How to get the link from a specific bootstrap tab

I have a page that uses the Tabs navs of bootstrap 4.1, I'm looking for and I can not find a solution, I want to make clicking a link open a specific 'bootstrap' tab. In this example: <script src="https://ajax.googleapis.com/ajax/libs/j...
asked by 24.10.2018 / 00:16
2
answers

JQuery - Press ENTER to push a button

I have a JavaScript / JQuery code that I also wanted to execute the function or click the button, or the button to be pressed with the enter when typing. Detail that this is just a test I'm doing, nothing serious, it's not a login system or anyt...
asked by 24.10.2018 / 17:38
1
answer

Prevent images from being cut between pages when generating PDF from an html

How can I prevent an image from a certain page that is saved as PDF from being cut off. as in the example below: Thefileisgeneratedusingthecommandprintjavascript:window.print()Hereismyhtmlcode:<html><head><linkhref="print....
asked by 11.09.2018 / 20:09
1
answer

How to structure the parameters in a javascript object

I have the following code: var colHeaders = [ "Column 1", "Column 2" ]; var columns = [ {data: 'column_1', validator: validatorRentalCode, allowEmpty: false, allowInvalid: false}, {data: 'column_2', type: 'numeric', numericFo...
asked by 12.09.2018 / 16:16
1
answer

Button does not connect with JavaScript to do verification

Below are the code of the two pages I'm using, the "btnUsuario" button should call the js, but when it is clicked it will appear a blank page written "false". cadastroUsuarioComponent.class.php classCadastroUsuarioComponentimplementsICo...
asked by 19.10.2018 / 02:39
1
answer

Return not working in function

I have this function, but the return does not work on it, I do not want it to get out of it as long as it does not fit the function: if ($('#FreteComprador').prop("checked") == true) { var id = $("#idtransportador").val(); var...
asked by 19.10.2018 / 20:20
2
answers

How to insert DIV with input fields inside the DIV using jquery or javascript

I have a simple form with add button that when I click it it adds 3 text inputs: <form method="POST"> <div id="ingredientes"> </div> <button type="button" id="adicionar">Adicionar</button> <button type=...
asked by 10.09.2018 / 20:37
1
answer

Slide Transition

I have this automatic slide transition (Internet template) code. I would like to know how I would put the "Fade" effect. <img class="mySlides" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSFh65LFf2UPsjvNxBuBISj4C4WC3K9FtKfc1_v...
asked by 11.09.2018 / 01:18
1
answer

Php Post Approval System

I'm creating a medium post approval system in "Gambiarra", what I did is, when the user posts, it gets value '0' in the 'Status' table in the database. So I have a restricted page for the site's adm, on this page I have a loop that displays th...
asked by 15.10.2018 / 16:03
2
answers

Stopwatch using JavaScript

I have the following code, the timer works, but when it comes to the end it shows END and restarts. I wanted him to stop at FIM. var tempo = new Number(); // Tempo em segundos tempo = 10; function startCountdown(){ // Se o tempo não for zera...
asked by 15.10.2018 / 05:00