Questions tagged as 'javascript'

1
answer

JQueryUI selectmenu - How to load options with append

I hope you can help me with this: I was using select option to display a list of options without problems, but for a theme of functionality I decided to change it for a selectmenu, however I do not load anything in the select with the same proce...
asked by 26.11.2018 / 01:08
2
answers

Promise unresolved

I have the following code: getUserAccount : function(){ var delay = $q.defer(); $http.get(CommonUtilitiesService.getUrl()+'AllUserAccount') .then(function(response){ if(r...
asked by 08.06.2017 / 01:45
1
answer

Change color to some statistical bars with Chart.js

Hello, I need support on how I can change the color of the bars below and I try to change them but I have no result. this is my code $(function () { $.ajax({ url: baseurl + 'asistencia/traer_turnos', type: "POST", dataTyp...
asked by 04.05.2017 / 21:37
3
answers

how do I pass a json to an array in Jquery

I have a little doubt, which is that I have to put a json to a array , My jquery: function girar_ruleta() { var mesa = $("#numero_unico").val(); $('#ruleta_giratoria').modal('show'); $.post("php/traer_madres.php", {mesa: mesa},...
asked by 11.05.2017 / 17:01
1
answer

Avoid the full refresh of the page by sending function get in jquery ajax

Hello, I have two functions in jQuery that when you click on the button btn_enviar send the data to the database via AJAX. I also have a $.get that writes the data in HTML controls. I would like to be able to send the data wi...
asked by 09.05.2017 / 00:43
1
answer

Hide table rows

I have the following table and I would like you to click on a button to hide some rows based on a condition in the value you have <table class="uk-table" id="mitabla"> <thead> <tr>...
asked by 08.03.2018 / 17:07
1
answer

How do I interact with jQuery in Electron?

I'm starting to try Electron, and I have a little big question about what it is to use my own functions and others ... I'm gradually transferring what I had already done for what would be the web version, therefore everything it was always worki...
asked by 26.02.2018 / 03:05
1
answer

Refactor if JavaScript

I would like to know what is the best way to refactor this code so that it is less repeated. if($('#edit-tipo-documento').exists()){ $('head').append('<meta name="TagAutomataAccion1" content="home">') } if($('.linea_restablecer').ex...
asked by 10.08.2017 / 21:23
1
answer

Is there any library to make a server in javascript? [closed]

Is there a library for javascript to help make an online server?     
asked by 06.01.2018 / 17:07
1
answer

Insert image in pdf with javascript

I have a PDF already created for which I want to insert an image, I tried with the library of jsPDF but I could only create a new PDF does not modify one already created, will anyone know any way to do it? This is what I have: var canvas =...
asked by 20.12.2017 / 15:31