Questions tagged as 'javascript'

2
answers

Handling XML with Javascript

I have a question and I already searched a lot and still could not solve. I have an XML with a tag called <child id='minhatag'/> . I need to have javascript read this tag and get me to return the value of the child tag ID so that...
asked by 21.08.2017 / 18:46
1
answer

How to validate if the date is greater than the other? [duplicate]

How to validate if the date is greater than the other? I'm using .clone to duplicate the line! function validaData (local){ $(local).find(".calendario").each(function (index){ var dataInicial = new Date; var dataFinal =...
asked by 22.08.2017 / 17:28
1
answer

Display monetary values in a simple way [duplicate]

Good morning! What would be the plus simple way of displaying monetary values with Javascript? I was able to limit the decimal places using .toFixed(2) . But the whole part gets more or less like this 10510.20 I wanted it t...
asked by 22.08.2017 / 15:18
1
answer

Display Popup when realizing that the user will leave the page

I want to display a PopUp to display a form to capture the email and the name of the user who is accessing the site at the time it is close to leaving the site. I see this commonly on several landings pages, especially those focused on lead conv...
asked by 23.08.2017 / 23:50
1
answer

Binding from View to Controller does not work in "disabled" fields [duplicate]

I use the asp-for property in the elements of my View to pass their values to Controller at time of post of the page. <input id="txtExamNumber" asp-for="ExamNumber" class="form-control" /> What I noticed...
asked by 23.08.2017 / 19:52
1
answer

Submit using Ctrl + Enter or Click the button

I currently use this code to send my messages. $('#chatEnvia').click(function() { $.post( "inc_chatEnvia.php", { acesso: "ok", msg: $("#chatEscrita").val() }); }); I would like to know, how do I when pressed together Ctrl + Enter to...
asked by 17.08.2017 / 21:41
2
answers

jQuery statement only works by console

Hello, I have two statements in jQuery that I use for: Checking a checkbox Disable a radio button. The question is that these instructions run by the system does not work, but if I pick it up and play in the browser console everything h...
asked by 17.08.2017 / 15:32
1
answer

Code only works on localhost

This PHP code with JavaScript is for taking pictures with the webcam. But it only works on localhost. When you are away, do not open the webcam. <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Tirar F...
asked by 18.08.2017 / 23:36
1
answer

How to pick up a route response with JS

The route is configured this way: Route::get('database/getClubes', 'DataBase@getClubes'); The Controller looks like this: public function getClubes() { return ClubesDB::getClubes(); } The Model looks like this: public static func...
asked by 09.08.2017 / 21:01
1
answer

Convert response data from HTML to PDF

My response.data is returned a ticket in HTML format, I want to convert it to PDF. How do I? Below a part of the code: imprimirboleto: function () { axios({ method: 'get', url: '/server/boleto', params: {...
asked by 09.08.2017 / 21:39