ajax Questions

3

Solved

I would like to update and then reload my cart via AJAX when the quantity of an item in the cart is changed. I can already successfully load in my cart via AJAX. To load in my cart my php functio...
Quiberon asked 25/8, 2015 at 5:25

14

Solved

I am using the JavaScript Google places autocomplete API v3. It works fine but I was wondering if there was a way to force the selection from the autocomplete, that is input that will not accept an...
Sentient asked 1/2, 2013 at 18:13

3

I have seen different method to read JSON files in Nodejs, like this: Using FS library Sync var fs = require('fs'); var obj = JSON.parse(fs.readFileSync('file', 'utf8')); Async: var fs = requi...
Bat asked 23/1, 2019 at 5:25

5

Solved

I'm trying to build a script that will act as a proxy/wrapper for the native XMLHttpRequest object enabling me to intercept it, modify the responseText and return back to the original onreadystatec...
Dextrose asked 6/6, 2013 at 10:10

2

Solved

I have an AJAX request that sends out some data. The data respects the multipart/form-data specification. The problem I'm facing is that the browser sets the Content-Type header to text/plain and ...
Oily asked 23/1, 2011 at 12:10

10

Solved

Using raw HTML when I post a file to a flask server using the following I can access files from the flask request global: <form id="uploadForm" action='upload_file' role="form" method="post" en...
Wexford asked 25/3, 2017 at 7:45

5

Solved

I'm developing a RESTful API with Laravel 5.3, so I'm testing some functions and request with my controllers. One thing I need to do is validate the request that my user sends before add a field in...
Preemie asked 2/9, 2016 at 16:26

3

For send ajax form i use this code : <input type="file" class="file_1" id="file" /> note : not use "FORM" tag My jQuery code : var file = $('#file').val(); $.post('form.php', {file:fil...
Reside asked 16/11, 2013 at 11:39

4

I have tried to download the file from the server through the webmethod but it has not work for me. my code as below [System.Web.Services.WebMethod()] public static string GetServerDateTime(stri...
Rettke asked 23/8, 2012 at 7:47

6

Solved

A weird thing happened to me today: I was trying to retrieve some data from a JSON file using jquery and ajax, and display this data on a webpage. This example, which I found on the Internet, worke...
Hourigan asked 9/12, 2015 at 13:26

7

Solved

I have a very simple AJAX form that asks for an email address and sends it to me after submitting. How can I can I get the form to submit when hitting the enter key? This runs when user clicks s...
Predigest asked 13/2, 2014 at 2:10

3

Solved

I know, the topics aren't missing on this subject but bear with me. I'd like to upload a file to the server using Ajax or an equivalent. # html <form method="post" id="Form" enctype="multipart/...
Eglanteen asked 22/6, 2017 at 19:39

20

Solved

I've spend over 6 hours to find an exception or a special character to find in my code but I couldn't. I checked every similar messages in here. I'm sending the form with magnific popup. First I'm...
Aileenailene asked 9/9, 2014 at 11:54

4

Solved

I recently had to correct security issues in a web-application (that I didn't create). The security problem was, it was using non-http-only cookies. So I had to set the session-cookie http-only, ...
Centrosome asked 1/2, 2017 at 9:51

4

Solved

I am kinda confused on it, when trying to send value on the same page. <script> $("select[name='sweets']").change(function () { var str = ""; $("select[name='sweets'] option:selected").e...
Noenoel asked 26/9, 2011 at 21:31

8

Solved

HttpRequest.is_ajax() is deprecated starting with version 3.1. I want to return html if the page is requested from a browser and as JsonResponse if called from javascript or programmatically. I am ...
Gerhardine asked 28/8, 2020 at 8:12

4

Following Taiseer Joudeh excellent article Enable OAuth Refresh Tokens in AngularJS App using ASP .NET Web API 2, and Owin (http://bitoftech.net/2014/07/16/enable-oauth-refresh-tokens-angularjs-app...
Perales asked 29/11, 2015 at 9:27

5

Is there a way to catch failed to load resource: net::ERR_CONNECTION_REFUSED, I've tried: try { $.post('',{},function(res) { }).fail(function (xhr, textStatus, errorThrown) { xhr.textStatus = ...
Scottscotti asked 17/2, 2015 at 7:1

2

I have gzipped json file using below algorithm (from: java gzip can't keep original file's extension name) private static boolean compress(String inputFileName, String targetFileName){ bo...
Titograd asked 2/4, 2013 at 15:27

4

Solved

I want to prevent from adding a category to the Select2 element if it fails creating the row first in my db. The action is not prevented when i call ev.preventDefault(); Nothing happens.. what is w...
Greff asked 2/11, 2014 at 22:18

7

Solved

I am trying to build some sort of logger functionality in javascript. Is there any API for a script to get its own filename?
Zipporah asked 8/12, 2009 at 9:55

8

Solved

Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e. to get the redirect status code back and handle it myself)?
Betz asked 23/10, 2008 at 1:40

4

I have used jquery ajax function to submit a form. The users have to be logged in else they must redirect to a login page.I have used Authorize() attribute for it. [Authorize] public ActionResult ...
Tracy asked 10/3, 2011 at 11:0

36

Solved

This belong to codes prior to Select2 version 4 I have a simple code of select2 that get data from AJAX. $("#programid").select2({ placeholder: "Select a Program", allowClear:...
Enteron asked 7/8, 2014 at 16:45

6

I'm having trouble reloading content of a bootstrap popover with ajax. Here's some code: http://pastie.org/3960102 The second ajax request (when I click on "a.close") returns an updated content (I...
Kazan asked 24/5, 2012 at 9:33

© 2022 - 2024 — McMap. All rights reserved.