Questions tagged as 'ajax'

2
answers

Uploading image with Jquery

How to upload image using Jquery? This is a question that has been haunting me for a long time, I hope you can help me. Well, I've been researching and I've seen a plugin for this, ajaxForm. But I do not find structure to use it, in the pa...
asked by 25.05.2016 / 00:23
0
answers

How to leave a "selectable" list with js / jquery?

Hello, I did an autocomplete but I can not leave the list selectable with the keyboard, I can only select with the mouse through the mouseover function, would anyone have any solution for this? follow the code: function autoBanco(event, ds){...
asked by 08.10.2018 / 19:14
0
answers

Move draggable to right and left and crop dimensions

I have a social network with wowonder, I made a modification on the timeline page, I took the top cover image in banner format, and put it on the side, with 280x500 dimension, it happens that Draggable does not want to work correctly on this new...
asked by 16.10.2018 / 12:24
2
answers

Get a variable in JS and pass it to a class in PHP using Ajax with Jquery

I need to create a project that consumes an api with json data, I created the interface, but at the time I get the result and send it to a class in php, but when I hit the submit button, nothing happens. What will it be? I saw some posts about t...
asked by 14.10.2018 / 03:52
1
answer

Request via Ajax not returning filtered data

I am trying to return data via Ajax to load a select of states in Rails, so that only returns the states that belong to a given Country, but the return never arrives in the conditional, always to the parse of the JSON that I'm requesting from th...
asked by 08.10.2018 / 22:38
1
answer

Notice: Undefined index: $ _FILES [duplicate]

I am trying to send the data of a form to use in php, I made a script in ajax to send the data, I can access POST data normally, the problem is that I can not access the image that is in the same form by placing enctype="multipart / form-data"...
asked by 04.10.2018 / 02:55
0
answers

Populating selects - Misalignment when returning values in combobox with chosen.jquery filter

I'm using the chosen component to do the combobox filter, but when it returns the JSON values to populate the combobox, it is misaligning the "duplicating" field. <body> <div id="conteudo"> <p><span cl...
asked by 27.09.2018 / 14:48
1
answer

Button created Dynamically does not fire asp-action - core 2 MVC

I have a cshtml (view) on this page I use a typed model and inside I use a POST form, I create a div (dynamically with ajax) with some components, ALL appear normal, but the button triggers an action on the controller does not work, if I leave s...
asked by 27.09.2018 / 14:50
0
answers

Error receiving data from $ _FILES ['photos'] via ajax

Error getting $ _FILES ['photos'], already the post with the other data can get it normally ... I believe it is something in ajax that is giving conflict. $("#formulario_novo_produto").on('submit',(function(e) { e.preventDefault(); //v...
asked by 26.09.2018 / 19:04
0
answers

Checking if the CPF is unique with JQuery validate remote

I'm making a form that checks whether the CPF already exists in a database. In my JS I use the JQuery Validate library $('#form').validate({ rules:{ cpf: { required: true, cpfBR: tr...
asked by 26.09.2018 / 22:39