Questions tagged as 'ajax'

0
answers

Confirm deletion in modal (HTML + Ajax + PHP)

I have a program here that controls a to-do list that gets written and read through the database (SQL). The main page contains a table and in each row a delete button for each table entry ... I do not handle a lot of Ajax but wanted to use a mod...
asked by 28.09.2017 / 21:07
1
answer

Ajax does not return values on mobile device

Beauty? It's as follows, I have an ajax method that returns a json, the problem is that this ajax does not run on mobile devices. It always returns me fail, however, on the pc, everything happens normally. jQuery.ajax({ url: url,...
asked by 03.10.2017 / 19:45
0
answers

Accentuation with multipart / form-data form and sql server using ajax

Hello. I have a problem that is making me sleepy. I am working on legacy code in classic asp and need to register a form that contains pdf file and data (like name, surname) and other fields. When the page is submitted to the server (iis8) via t...
asked by 09.10.2017 / 20:41
1
answer

The parameter dictionary contains a null input

I have a problem that is as follows, I am consuming a service where it receives a parameter as input, in the
asked by 27.09.2017 / 14:41
1
answer

Get url from the site that made the ajax request in php

I would like to know if I have the url of the site that does the ajax request for a file from another server. Ex: I send a form through www.exemplo1.com to www.exemplo2.com/submit.php and in submit.php I want to get th...
asked by 23.09.2017 / 04:03
0
answers

Use two different headers for two different outputs on the same call

At some point, I need to generate XLS files on my system, and use the following header for outputs: header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: attachment;filename="' . $name[$a] . '.xls"'); header('Cache-Con...
asked by 25.09.2017 / 18:18
1
answer

Problems with p: ajax in primefaces

Good morning, friends! I am a beginner in Java and I am trying to develop a system for church management. After many attempts, I can make ajax work, however I am not able to retrieve the id of the state that was selected in selectOneMenu. The id...
asked by 08.10.2017 / 16:05
0
answers

pass multiple attachments via ajax

Hello, my first post here, I'm having a problem sending more than one attachment via Ajax. I have a jersey API that gets the call. if I send only one attachment works fine, but if I select more than one attachment, only one comes in. My passi...
asked by 21.09.2017 / 14:13
2
answers

Pass value from button to modal

I need help in the javascript code, I'm new and I do not know the syntax. What I need is to get the value of this button and play on the label id_user, how do I do it? <button data-target="modal1" class="negar" value="{{item.id}}" class="bt...
asked by 28.09.2017 / 15:16
1
answer

How to configure Ajax to submit date with 2 variables

I'm developing an app for users to vote products. Technologies used JQuery plugin rateit, ajax and PHP. However I am having a problem with JSON, the configuration for 2 variables is giving the following error: SyntaxError: Unexpected token <...
asked by 15.09.2017 / 01:42