Questions tagged as 'jquery'

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

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

Ajax with multidimensional JSON type return

Save, I buggy here trying to get ajax to fetch data from a JSON and I need a class / help to understand how I pull the values from an array of objects (I think that's it). I have the following code, it's kind of confusing, but my goal is to do t...
asked by 02.11.2016 / 05:10
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

Pick position of element top, left of element according to parent element

I'm using offset from jquery to get the position of an element and I'm using draggable to move this element. The offset element is inside a div and I would like to get the position of the element by the parent element, not the entire document as...
asked by 08.10.2016 / 17:49
1
answer

You can insert new HTML with pure.js

I want to use the pure.js framework, to create a post via json. I found it on the Stack platform in English this topic , which is what I want to do, but there is a problem, I am not able to make the example of the second person who answered...
asked by 06.09.2017 / 19:04
1
answer

Unsuccessful Ajax request

Hello, I am performing a request in Ajax, and there is an error in which the value of the line code clicked (in a table) for Ajax is not passed, but I have another example that works perfectly and that is with error. I believe that the possible e...
asked by 21.03.2017 / 13:52
1
answer

Problem with context Menu

I'm putting this context menu inside a table, it is working perfectly, right-clicking it opens. But who clicks the link it closes without redirecting to page, does anyone know what the problem is. // Abre menu var aberto = false; $(docum...
asked by 20.03.2017 / 19:36
1
answer

JSONP breaks in the colon (":")

The server sends a JSON, normal. Here is the code: @GET @Path("email") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public String getEmail(){ ViewStatisticsEmail statisticsEmail = new ViewStatisticsEmail();...
asked by 12.09.2016 / 15:52
1
answer

How to copy a value within a span

I need to copy a value from within a span that is generated by a slider, it always changes the slider whenever it changes. Is there any way I can put it inside a value of an an input? I tried this and it did not work: <h4>Valor...
asked by 27.10.2016 / 18:21