Skip to main content

All Questions

Tagged with
0 votes
1 answer
30 views

PhantomJS frozen stuck at blank terminal after trying use $.ajax

I have been porting my code to PhantomJs and have been having a hard time with using $.ajax in Jquery. I think it something with how my functions are defined but I am new to JavaScript. Here is my ...
Matthew Mills's user avatar
0 votes
2 answers
79 views

Session variable not updating during loop in PHP?

I'm facing a problem with my app. It's in a JS-PHP environment. I've made a minimal reproduced example below. script.js: function postToHandler(){ let xhr = new XMLHttpRequest(); xhr.open(&...
Abb's user avatar
  • 71
1 vote
0 answers
35 views

MathJax not rendering equations in WordPress AJAX-loaded content (renders only after manual typesetPromise())

I’m building a custom WordPress plugin that loads math-based questions and answers using AJAX. These questions contain LaTeX-style MathJax expressions (e.g., $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$)...
Annant Srivastava's user avatar
-3 votes
0 answers
103 views

Why JQuery AJAX POST sends null value? [closed]

I'm new at JQuery-AJAX. I've a form in index.php file. When clicking the first input(id="d_code") it opens a div(id="d_codes") which has been filled with some li tags which have ...
ilyas's user avatar
  • 97
0 votes
0 answers
33 views

Using 0 after selecting form to reset [closed]

I didn’t get why we use 0 after selecting form to rest in jquery? Can anyone help I tried on beforeSend method in Ajax jquery, but I found we can reset the total form with reset() option, and can show ...
SadiqFazli's user avatar
-3 votes
1 answer
53 views

JavaScript function not returning array [duplicate]

I have an ESRI 3.46 JavaScript application. There are a couple of functions which return data from an API. I am looping through the results and creating an array to be returned to other areas of my ...
CRayGo's user avatar
  • 1
-1 votes
0 answers
57 views

Array values discrepancy between backend and frontend [duplicate]

I've been working on a Wordpress plugin to retrieve a directory structure from my server and display it in a webpage. I have a working demo, but there is an issue that I don't understand. I construct ...
pGil9's user avatar
  • 1
1 vote
1 answer
59 views

ajax/fetch promise not resolving in Chrome iOS mobile [root cause unrelated]

Similar questions chrome mobile jquery ajax POST not working = Seems like it should be the same problem, but asker apparently was unable to reproduce after publishing to remote server. Context ...
owengall's user avatar
  • 483
0 votes
0 answers
32 views

How to implement a custom Add to Cart button to Shopify's Dawn Theme?

I have attempted to create a custom Add to Cart button for the Dawn theme (using AJAX functionality) based on the dev notes for Cart API (https://shopify.dev/docs/api/ajax/reference/cart). I have been ...
Joe Plant's user avatar
0 votes
1 answer
56 views

Why doesn't my DataTable load dynamically when the page first loads (works only after refresh)?

I’m using DataTables with server side processing and an AJAX call to load the table's data based on a selected dimension. However, when the page first loads the table is not populated with data until ...
hawkihawk's user avatar
0 votes
2 answers
131 views

How do I revise Ajax code from dropdown to text input?

First, apologies in advance as I am a newbie when it comes to Ajax... I have looked at several coder sites for a working example of the code needed to process a simple text input and database response ...
Charles's user avatar
  • 34
1 vote
1 answer
58 views

Scripts don't work in foreach when making a GET request [duplicate]

There is a working example of a javascript script that loads content when scrolling. Everything works, but inside foreach, modal windows don't open and scripts don't work at all. I would really ...
Hunter o_0's user avatar
0 votes
0 answers
48 views

POS System - Unable to Toggle 'Show Receipt' Feature Based on Setting (Laravel, JavaScript, Session Management)

Problem Description: I am working on a POS system where I need to allow users to enable or disable the "Show Receipt" feature after completing a cash transaction. The receipt should only be ...
Mohamed Al Hamdhy's user avatar
0 votes
0 answers
26 views

get_post_field 'post_content' via Ajax always undefined

I'm running the following handler to process request to a custom post type's contents add_action('wp_ajax_uipp_get_button_content', 'uipp_get_button_content'); add_action('...
Jeff Imperial's user avatar
0 votes
0 answers
73 views

I'm trying to populate 2 drop down menus. The first with the categories of photos(folder name) and the 2nd with sub categories of the 1st

I am making a website for a FiveM server. One of my pages on my website is CityLife.php. It will have a photo gallery of thumbnail images that when clicked opens up to the full size image in another ...
Pastor Karl's user avatar

15 30 50 per page
1
2 3 4 5
6869