Questions tagged as 'javascript'

1
answer

How to make button to confirm if you want to leave the page?

How do I make my button voltar tell the user if they really want to exit the page and then direct them to index.html using JavaScript? Not quite a button, I'm using href to redirect to index meanwhile. I want to know...
asked by 02.11.2017 / 06:13
2
answers

Use 2 different frameworks in the same CSS?

I started my internship today and the first task I received was to find out if it's possible to use two files in a single, minimized CSS. normal compilation and minification, to generate the only CSS, or is this not possible? Also,...
asked by 01.11.2017 / 03:46
4
answers

.click function does not work on buttons that were generated dynamically by the .html function? [duplicate]

I have the following code: var nReqAJAX = nReqAR $.ajax({ type: "POST", url: "../controller/ajax.selectItemRequisicaoPesquisar.php", data: {'numeroRequisicao': nReqAJAX}, dataType: "JSON", success: function(res) {...
asked by 19.10.2017 / 16:53
1
answer

Uncaught TypeError when using the Jquery Mask Plugin

I received the "Uncaught TypeError" error when using the jQuery "mask" function Mask Plugin. Herearemyincludesinthefileeditar_usuario.php.<scripttype="text/javascript" src="<?php echo $site."js/chama_ajax.js" ?>"></script>...
asked by 12.11.2017 / 00:22
1
answer

Textarea with 'disable' does not automatically break the line

Follow the code (with disable): $('#summernote').summernote({ toolbar: false, height: 100, callbacks: { onInit: function() { $('#summernote').summernote('disable'); $('#summernote').summernote('code', 'kkkkkkkkkkkkkkkkkkk...
asked by 14.11.2017 / 01:05
2
answers

I can not get the value of a child element

I am filling a table as follows: $.ajax({ method: "GET", url: "https://api.github.com/search/users", data: { q: search, sort: "repositories" } }) .done(function( msg ) { jQuery.each(msg.items, function(i, users){ getRep...
asked by 10.11.2017 / 01:24
1
answer

How to add JQuery to Electron? [duplicate]

I'm a web developer, I've tried methodologies in an English post, but ... none works, I want to add JQuery to electon . I've used this without window.$ does not work. <script src='https://code.jquery.com/jquery-3.2.1.min.js'&g...
asked by 01.12.2017 / 05:13
2
answers

Height x Width - JavaScript - External Image

I need to get the height and width value of an external image, with Javascript / Jquery, that is, without being implemented in the image code.     
asked by 08.12.2017 / 02:54
3
answers

Search Database when Select options Select

Good morning. I have a small problem that I can not solve. The situation is as follows: I have 2 selects (state and city), I would like when selecting a state the system would search my DB to find distributors of that state and when selecting th...
asked by 11.12.2017 / 12:05
3
answers

How to print only part of HTML? [duplicate]

To print a page I know I should use <button onclick="window.print()"> What I need to know is how to start a DIV? Ex: <div id="divtoprint"> //some code </div>     
asked by 25.11.2017 / 02:41