220,941 questions
3
votes
2
answers
19k
views
How to edit data in mysql through a modal
I've been having errors with this code. I'm new to bootstrap and using modals for things. I used to run off child forms for all my 'fancy' forms but now I'm doing a move towards modals. This is my ...
7
votes
2
answers
9k
views
How to mix jQuery Mobile and ASP.NET
I'm making a mobile website, using jQuery Mobile and ASP.NET 4.0 Webforms. I have made an initial login page (Default.aspx) in which the button calls an ajax JavaScript function, which calls a page ...
-1
votes
0
answers
46
views
ajax request in django
I implemented the post like feature using ajax in the Django project, but it doesn't work. And it gives a 404 error in the console.
template.html
<script>
$(document).ready(function(){
...
4
votes
3
answers
10k
views
Why the http response is not displayed in network tab of chrome debug?
I used postman to test my web service. In the http response body, I find the WS's response.
When I test my call, in my web application, using ajax, I can not find the response anymore. The tab ...
0
votes
2
answers
63
views
My Ajax web method call in C# keeps showing an error: "401 Unauthorized"
I'm trying to call a simple static WebMethod in my ASP.NET Webforms page using jQuery Ajax, but it doesn't seem to be working. I've tried enabling anonymous authentication and other fixes suggested ...
1
vote
1
answer
985
views
Why Chrome and Firefox do not have the same behaviour with CORS ajax call with basic auth?
For context, I am attempting to cross-site call an API which needs the user to be authenticated with basic auth.
The Tomcat (7.0.43) serving the API is set to allow cross-origin calls with ...
48
votes
8
answers
223k
views
Adding CSRFToken to Ajax request
I need to pass CSRFToken with Ajax based post request but not sure how this can done in a best way.
Using a platform which internally checking CSRFToken in request (POST request only)
initially I was ...
0
votes
1
answer
213
views
Filtering XML nodelist with Ajax and JavaScript
I'm trying to build a page with AJAX and JavaScript that displays the contents of an XML file filtering it by node value.
The XML is similar to this:
<?xml version="1.0" encoding="UTF-8"?>
<...
1
vote
1
answer
85
views
getting a 400 error with wordpress ajax call and I don't know why
I know this has been asked 1000 times already, but I'm not seeing anything wrong in my code and am still getting a 400 error (XHR).
Here is the code from my plugin:
require_once( plugin_dir_path( ...
16
votes
4
answers
30k
views
Making an AJAX request to another server
I have AJAX code where if you request an AJAX call to remote server the request fails:
function loadXMLDoc() {
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
...
3
votes
1
answer
15k
views
How to get filenames in a given directory?
(I found some similar questions but none of them solved my problem so this is not a duplicated question I think)
I want to retrieve filenames in one of my folder using jQuery. I tried the following ...
0
votes
0
answers
65
views
Populate field values with database data onchange of a select field in a CodeIgniter application
I want to fetch the corresponding value of my dropdown the image below shows the form and the database. the table was inside the Javascript and I am having a difficult time in figuring out this ...
1
vote
2
answers
18k
views
jQuery $.getJSON method still giving CORS error
Here's my code based off this question
$(document).ready(function(){
$('#new-quote').click(function(){
var url = 'http://api.forismatic.com/api/1.0/?format=jsonp&jsonp=_';
$.getJSON(url,...
0
votes
2
answers
2k
views
How to access my variables in a web method?
I am using ASP.NET Webforms and in one page I want to make an AJAX call to a web method in the code behind. The problem is that web methods are static and I can't access page variables. I need to be ...
2
votes
2
answers
12k
views
How to use ESAPI to resolve JavaScript DOM XSS?
We are using HP fortify Audit Workbench 3.80 to assess vulnerabilities in our applications. Fortify marks the the following ExtJs JavaScript code as a Critical (the "worst") DOM XSS vulnerability:
...
0
votes
4
answers
103
views
How to receive the value from CodeIgniter's select_avg() as an AJAX response
I have a problem with my AJAX, it can't display data from database.
Controller
public function rating()
{
$rating = $this->db
->select_avg('hasil_rating')
->get('tb_rating'...
2
votes
2
answers
8k
views
How to export data to Excel using ASP.NET MVC 5 without reloading the page?
The process of exporting the data into Excel is working. But I don't need to reload the page. When I try to press the Export Data to Excel the page is reloading. How to avoid this? Please, help. Thank ...
37
votes
2
answers
34k
views
Mandrill "reject_reason":"unsigned"
I'm trying to send emails using mandrill email service but I get the following error:
[
{
"email": "[email protected]",
"status": "rejected",
"_id": "...
1
vote
0
answers
134
views
Send array of objects to .NET controller action
I am trying to pass a javascript array of objects to a .NET controller action List<> parameter. Below is my C#
public bool ImportACE([FromBody] List<Element> elements)
{
foreach(...
0
votes
1
answer
749
views
AWS API Gateway 429 response - no CORS headers
The 429 responses issued by API Gateway (when lowering the max concurrent requests and exceeding it) do not have the CORS headers, so the ajax request in the browser just throws error without any info ...
-2
votes
1
answer
395
views
Whatsapp web: Speed [closed]
When i scan the WhatsApp code on my phone, the web site switches IMMEDIATELY to the actual WhatsApp page with the chats and all. I was wondering, how does the whole process look like? When I scan, my ...
0
votes
1
answer
229
views
Bootstrap Toggle to Update Database in Laravel 5
I'm trying to update a user status to either enabled or disabled in the user database. I already have my toggle in place. When I view the user table from the dashboard, I want to be able to see the ...
-3
votes
1
answer
132
views
Send value from JavaScript file to Jsp file using Ajax [closed]
Here is my JavaScript file where my goal is to send value of variable va to jsp file and output it.
The problem is that I can't find the bug.
JavaScript file
$(function(){
$("td").click(...
1
vote
2
answers
80
views
Anchor Links Reloading Page Instead of Scrolling – Purchased Template
I purchased an HTML template online to build a website for a client, but I'm running into an issue with anchor links. The anchor links are supposed to scroll to specific sections of the page, but ...
0
votes
1
answer
1k
views
Reactjs ajax request not sending cookie
React js not sending cookie, I am using react-redux thunk for sending request,
all requests are sent are not using the cookie session id.
Because of missing session id, the server generate new cookie ...