Questions tagged as 'javascript'

1
answer

Edit a contract template with jquery

I would like to know if it is possible to add a contract within a textarea and define some fields that can be changed in this contract. For example: I have {{name}} {{address}} I want to allow the user to drag the name (I already have a sa...
asked by 30.05.2018 / 14:09
1
answer

Push Notification with Socket.io

I made a small application with node + socket.io to send notification. by adding the code below on the client page, the notification is displayed in the "messagebox" div. <script src="http://code.jquery.com/jquery-1.7.1.min.js"></scri...
asked by 30.05.2018 / 14:26
2
answers

Capturing URL that is inside a div with Jquery

I have a project where you have several boxes, with an image, and a link. I would like that when I click on the .single-project class I would capture the href value, but I am not getting it. $('.single-project').on('click', function() {...
asked by 30.05.2018 / 14:53
1
answer

Problem saving two sales at the same time - JAVA

I have a problem saving two sales at the same time on different computers, when both ends, one replaces the other. I'm using @ManagedBean , @SessionScoped . This is my method salvar() in the controller: public String salv...
asked by 20.07.2018 / 16:37
1
answer

How to get specific return data from a JSON with Ionic 3

I think it's simple, but going from Ionic 1 to 3, changed so many things. I need to get all the returns from my Json from this routine (I actually need the user ID and register in localstorage): submit(){ var email = this.data.email;...
asked by 20.07.2018 / 16:20
2
answers

javaScript function does not work when used ng-include angularJs

I'm doing a tamplate injection via% of angles. Inside this template I have a button that calls a modal which is inserted in the template by another injection. Until then everything works correctly. Within the modal I have some inputs and a butto...
asked by 20.07.2018 / 13:41
1
answer

Show div and hide the one that was or was previously opened by clicking the

@foreach($user->endereco as $endereco) <table class="table"> <thead class="thead-light"> <tr> <th scope="row">Endereço: {{ $endereco->endereco }}</th> <th scope="row...
asked by 22.07.2018 / 20:21
1
answer

WEBCAM without Flash

I'm trying to take a picture with a webcam ... I'm relatively new to Javascript and I'm taking a chorus! Follow my code: //função para iniciar a camera function startCamera(){ navigator.mediaDevices.getUserMedia({ vide...
asked by 20.07.2018 / 15:05
1
answer

Pass Value By PHP PHP parameter [duplicate]

I have a small snippet of code, just below. After the user clicks on a div whose ID is (click) this code will be executed. I have a PHP code that will run inside the javascript code block. I want to pass to the PHP JavaScript variable (Valu...
asked by 28.05.2018 / 16:55
1
answer

Detect width of Scrollbar

To make a page that has scrollbar disabled when a particular button is clicked, I plan to set an additional padding to the body with js to compensate for the hidden scroll. I've been reading around so many browsers already have a default width o...
asked by 28.05.2018 / 15:51