Questions tagged as 'javascript'

1
answer

How to show an image through javascript?

The following code is in the javascript: <img class=\"modal-loading\" src=\"~/Content/img/loading.gif\" /> The end result:     
asked by 02.03.2017 / 02:06
1
answer

Loads id in hidden using autocomplete

Hello, I have the following script, autocomplete: <script type="text/javascript"> $(document).ready(function () { $(".nomeCliente").autocomplete({ source: function (request, response) {...
asked by 29.08.2017 / 20:03
1
answer

Invoke a function passing arguments within $ Scope does not work

I have a function in a file called "mapHelper.js" responsible for adding popups to a map: function writeMarker(x,y,msg) { var muxiCoordinates = [x,y]; var muxiMarkerMessage = msg; L.marker(muxiCoordinates).addTo(map).bindP...
asked by 29.08.2017 / 21:14
1
answer

Database with many changes

Situation I'm making a system for a drugstore. The Client can enter the pharmacy and take products only from the gland and pass directly in the box, or you can pass the counter and just take the antibiotic at the counter with a pharmacist, or...
asked by 30.08.2017 / 00:02
3
answers

Add a div by clicking the button

I have a situation here .. I need to add a div with a registration when the user clicks a particular button. The page already starts with the div. PS: I saw some similar answers but it did not help in my case. This is the div I want to add ev...
asked by 29.08.2017 / 20:48
1
answer

How to load data from an ajax request into DataTables

I'd like to know a way to load data from an ajax call into the datatables. so that I can reload the table. I am loading by a method in ajax that passes to the table in the data object, but when I call the method again to reload the table I ge...
asked by 16.04.2017 / 00:56
1
answer

Modal with json object

I need to get an image by json to appear in my modal but the modal appears but the image does not Here is my code $("#estoque1").click(function(){ $('#estoqueModal').modal('show'); $(".modal-body").innerHTML += '<img src="...
asked by 16.04.2017 / 03:32
1
answer

href does not execute jQuery and neither function

When I click on the Reply link, the code does not execute, it does not show the jQuery alert or the function, it does not show an error in the console, it does not even execute. $('#post-forum').last().append('<div><a href="#" id="res...
asked by 15.04.2017 / 04:52
1
answer

Dynamic Table with Bootstrap and JQuery- wenzhixin

There is a repository in github, bootstrap-table-examples , which shows a very interesting and dynamic table of be reused. However, for lack of knowledge I could not understand the 100% project. However, it has a code snippet I was very interes...
asked by 14.03.2017 / 18:46
1
answer

Real time with javascript or jquery?

I need to enable message notifications on a webpage, Example, User receives a message and I notify him that he has a new message but does not refresh the page. How can I make a function that runs every two or three seconds an ajax to ch...
asked by 14.03.2017 / 20:56