Questions tagged as 'javascript'

1
answer

Catch only what was changed in an object

I have implemented a PATCH function to update the data of a resource, but I need to get only the updated data of an object already loaded on the screen to send in the request. What would be the most efficient way to do this? Can you use $ wat...
asked by 13.02.2017 / 12:05
1
answer

How to implement a video player with quality options for online playback?

Does anyone know of any library or other way of playing the videos from my QA-compliant server to avoid slow downloading, youtube style, for the user to select the resolution (for example). Thank you in advance.     
asked by 13.02.2017 / 16:21
3
answers

I need to clone the contents of a div and put it in the form of my modal

Good afternoon guys. Again I turn to you about a problem I have. I need to use the syntax below in a modal. $("#divConsulta").clone().appendTo($("#formFruta")); In the line below when clicking, I open my modal with the data form to updat...
asked by 16.12.2016 / 16:29
1
answer

Send more than one JSON file in a single AJAX request

I am requesting two JSON files for the getJSON function from JQuery. I'm trying to send them via AJAX but I can not. I've done the following: var data = '[{"agents": '+agents +', "projects":' + projects + ', "spaces": ' +spaces+', "events":' +...
asked by 19.12.2016 / 14:42
1
answer

Action Form HTML

Well, I recently had a question when I analyzed some forms on web sites. I'll be quite straightforward. Because some HTML Forms in some web applications use a javascript code in their action, For example: action="javascript:sendForm('par...
asked by 13.12.2016 / 00:21
1
answer

Form field filled in but given as $ pristine

I am making a request $ http, the return is a JSON, attribution to the model ($ scope.elaborator), however the field is still set to $ pristine. Data.post('getElaborador', $rootScope.codigo, 'Listagens').then( function(success){...
asked by 15.12.2016 / 14:38
1
answer

How to do a text search and the Select tag together?

I'm here because I'm having trouble doing a search like any other with <input text> and "search" button only with the tag <select> where it contains in each <option> a value of the search. The questi...
asked by 01.11.2016 / 16:42
2
answers

How to know who called the screen

I have two List and Filter screens, both are redirected to a third screen called View List View button List : //ABRE TELA VISUALIZAR $(document).on('click', '.visualizar', function(e) { e.preventDefault; var pClienteID = $(this).a...
asked by 10.11.2016 / 23:38
2
answers

select and count checkbox

I can not hit the code below: the total variable does not add to countCheckedCheckboxes. And when you click the mark button all but uncheck some and click the button again that which was marked decollects and what was demarcated is marked. SC...
asked by 09.11.2016 / 21:48
1
answer

How to perform persistent connection using WebSocket and a Delphi Socket server?

I'm trying to create a communication via WebSocket with a Delphi socket server, 1st Step, readystate 0 - Server receives the WebSocket header. Step 2, readystate 3 - Already going offline. Javascript: var host = 'ws:...
asked by 10.10.2016 / 14:15