4,049 questions
0
votes
0
answers
34
views
JQuery JSONP Ajax call executing successfully but being reported as error
I am making a jsonp ajax call to a local service which responds with a valid javascript response. The ajax request looks like below:
$.ajax({
url: "http://localhost:12345",
...
0
votes
0
answers
14
views
How to convert response as a function to JSON [duplicate]
The url I'm trying to fetch the data from:
"https://blob.niftyindices.com/jsonfiles/SectorialIndex/SectorialIndexDataNIFTY%20AUTO.js"
The response is a .js file. When I opened the file, this ...
0
votes
0
answers
33
views
Handling Inconsistent HTTP Status Codes in Ajax: 404 in Latest Chrome, 200 in Edge and Older Chrome – How to Resolve?
How can I address and obtain the correct status code for this Ajax code? In the latest version of Chrome, it returns a status code of 404, while in Edge and the older version of Chrome, it returns a ...
1
vote
0
answers
72
views
Solr 9.3.1 not returning JSONP response correctly
I have been working on upgrading our Solr stack from v7 to v9.3.1. I have recreated my cores and populated them fresh, but when I request a JSONP callback with wt=json, I just get JSON back instead ...
1
vote
0
answers
28
views
chrome Extension manifes tV3 error - violates the following Content Security Policy directive
I am trying to send data to server in the jsonp method from the chrome extension I am developing.
However, it worked fine in manifest V2, but the following error occurs in manifestV3.
Please help me.
...
3
votes
1
answer
86
views
How to load assets via JSONP into Phaser
I am trying to load data (including images) via a JSONP feed into Phaser 3.60.0. I know how to load image asset normally as per my GameScene.js code below:
class GameScene extends Phaser.Scene {
...
0
votes
2
answers
193
views
How can I do JSONP requests from Sveltekit?
We are running a Shopify store, and have come to a point where we need more flexibility content wise. My solution to this is to have content delivered via a custom CMS to a subdomain. One issue I have ...
0
votes
1
answer
22
views
Saving GIANT JSONP to Database
Hey I got this JSONP from archive.org:
https://archive.org/advancedsearch.php?q=collection%3Ainternetarchivebooks&fl[]=creator&fl[]=format&fl[]=genre&fl[]=language&fl[]=name&fl[...
1
vote
0
answers
101
views
How to use JSONP / JQuery in Scriptlab to call API and write data to excel
I am trying to use Scriptlab to call the public Census API and write the resulting json response to excel.
Specifically, it takes the [0][0] in the range, creates an API url from that, and it is ...
0
votes
0
answers
249
views
Cannot find axios-jsonp
I installed axios-jsonp, but the error saids there is no jsonpAdapter.
Could someone help me?
I use Vue.js and I want to get data from API.
error: Require statement not part of import statement.
...
0
votes
1
answer
971
views
How to fetch jsonp in Manifest v3
Refused to load the script 'https://dorar.net/dorar_api.json?skey=انما الاعمال بالنياتpage=1&callback=jsonp_callback_255' because it violates the following Content Security Policy directive: "...
0
votes
2
answers
111
views
Parsing complex Json response in java
How to parse below json response using JSONArray, JSONObject:
Sample JSON Data:
{
"ABC": [
{
"BCD": {
"CDE": "HIJ"
}
}
]
}
I ...
0
votes
0
answers
14
views
CORB from Vanilla JS getJSONP to Google Apps Script [duplicate]
I have a simple set up in which I populate data on my HTML page by accessing data in a Google Sheet.
This works perfectly well in Chrome, but in Edge I get a CORB error in the console. I'm using ...
0
votes
1
answer
451
views
How to parse JSONP response in python?
How can i parse JSONP response, i tried json.loads(), but it will never work for JSONP
0
votes
0
answers
7
views
handle unnamed JSONP in xmlHttpRequest Javascript [duplicate]
I have simple XMLHttpRequest.
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
xhr.onreadystatechange = function () {
if (this.readyState == 4 && this.status == ...
0
votes
0
answers
14
views
Jquery ajax not triggering when hitting 'warning'
I have an ajax call connected to a search that is calling an api that is spitting back jsonp results. This seems to be working fantastically except when they type something that is not there.
I get ...
0
votes
2
answers
510
views
Getting parse error while fetching text file content in JQuery
I am trying to fetch data from text file which resides on server. I have access of that location and able to see content when I put URL in browser tab.
I am trying to make AJAX call and get file ...
0
votes
1
answer
305
views
Code is redirecting visitor to homepage no matter what link is clicked [closed]
I have a website and would like to redirect visitors from different countries to an URL-Path. For this purpose, I use the code below. The problem with this code is that it always redirects you to the ...
0
votes
1
answer
916
views
Adding headers to ajax request fails
This would seem to be very straightforward, but I cannot get additional HTTP headers added into a request that I'm attempting to make. I've watched via the browser developer tools as well as with ...
0
votes
1
answer
63
views
Display JSONP Array Using Jquery Loop
I've dug through dozens of related questions, and tried to implement but just can't quite get it to come together. I'm certain it is just some painfully simple miss, since I'm a rookie.
Redacted URL ...
-3
votes
1
answer
72
views
i am fetching data from api jsonp. all the data are available to use but the logoUrl does not work
this is what the URL looks like in the object.
logoURL: "/rimg/provider-logos/airlines/v/FJ.png?crop=false&width=108&height=92&fallback=default1.png&_v=...
1
vote
1
answer
3k
views
Call a JSONP API with React
I am trying to call an API that is given to me. First, I did not understand the question. The API given to me looks like 'test.com/a/b/c/d/d' and it also says:
callback parameter name: 'jsonp'.
I ...
0
votes
0
answers
82
views
Kendo ui jsonp data binding
I'm struggling with the kendo ui transport property for schedules. The following snippet worked as expected:
$.ajax({
url: 'https://myurl',
dataType: 'jsonp',
jsonpCallback:...
0
votes
0
answers
288
views
Loading JSON data from external server onto an HTML page
I am trying to to display JSON data from an external location (3 images with a city name and tagline) onto my HTML page but getting an error:
"Uncaught ReferenceError: showPlaces is not defined
...
0
votes
0
answers
639
views
Correctly use ajax to make a JSONP request - Error: Cross-Origin Read Blocking
Issue:
I'm trying to make a JSONP request using ajax, but I'm encountering the below error.
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://nftrade.com/_next/data/...
1
vote
0
answers
96
views
How to set two script tags inside JS code for service worker
I have a simple JS code with Jsonp, which gets another external js file.
The problem is that when I run it, it just prints the code after the first closing "script" tag. How can I use it to ...
-1
votes
1
answer
303
views
jsonp response gives error html along with padded json after upgrading to .Net framework 4.8
Earlier my WebApplication was working on .Net Framework 4.5.2. After upgrading to 4.8, the Application is intermittently giving a weird HTML error appended to the jsonp response. There is no error ...
0
votes
1
answer
52
views
Wcf jsonp ajax jquery callback - how to customize the response, the name of the callback function, and the wrapper?
I need to build a wcf service, which uses a custom response, in jsonp format, I should get a response like this example:
calling this example method:
http://localhost:49350/Service1.svc/...
1
vote
1
answer
878
views
Angular 12 Httpclient jsonp - how to pass custom callback parameter?
Angular 12 - Httpclient jsonp - how to pass custom callback parameter?
Here is the full app -> https://stackblitz.com/edit/angular-ivy-2zg5yt?file=src/app/geolocation.service.ts
geolocation-service....
0
votes
1
answer
675
views
How do I fetchJsonp this into my react app>
I am using a package called fetchJsonp. However, it keeps failing due to timing out. I am not sure if I am doing something wrong.
fetchJsonp('kayak.com/h/mobileapis/directory/airlines/homework', {
...
-1
votes
2
answers
179
views
Display Data from fetch api
Hi i want to fetch data from avascan api and display it in html, but i am not able to do this. I have tried fetch api, json and ajax ways but none worked for me. Any suggestions? This is my html https:...
1
vote
0
answers
38
views
Ajax request using jsonp not going through
I am trying to retrieve a text file from https://www.ndbc.noaa.gov/data/realtime2/51201.txt. I am making an app to retrieve the swell height and period from the NDBC. My code below bypasses the CORS ...
0
votes
1
answer
302
views
How to use HERE Geocoder Autocomplete API with Angular and Jsonp?
When I call the HERE Geocoder Autocomplete API endpoint :
https://autocomplete.geocoder.ls.hereapi.com/6.2/suggest.json
?apiKey={YOUR_API_KEY}
&query=Pariser+1+Berl
&beginHighlight=<b>
&...
0
votes
2
answers
2k
views
How to fetch wordpress posts through query() and output them in json?
This code is working fine and pulling the blog posts but the only problem is that i want the data to be in a json array so that i can create an api with that and show posts outside...
<?php
require(...
8
votes
1
answer
2k
views
Webpack 5 (Webpack Encore): How to run multiple webpack instances on the same page and avoid any conflicts?
For a pretty large Web application I want to run multiple instances of Webpack (Encore) on the same page. When I put all the source code into a single Webpack configuration it all works. However when ...
0
votes
0
answers
279
views
How to extract token value from this string or json
I am using python and I want to get token value and store it in a variable. Can someone please tell me how to get token value as I am a beginner in python.
Below is the string from which I want to ...
2
votes
1
answer
2k
views
Any straight forward way to convert javax.json.JsonObject to jakarta.json.JsonObject?
When starting the new Jakarta (9) project, I need to handle old (legacy libraries and modules) using the "javax" JSON-P API. Usually we end with this error:
java: incompatible types: ...
0
votes
1
answer
467
views
Automaticaly convert empty strings to null in Java using JsonB deserialization
did anyone tried to find a good solution to automatically convert all empty strings to null object on deserialization using JsonB (Yasson)?
I encountered this problem on migration from Jackson to ...
0
votes
1
answer
285
views
Consuming google_services status page JSONP in Google Apps Script
I'm looking to get service status of all response code and get how many services are up and running fine like,
If 10 services are there 9 service are UP and one down.Result should be in form of
{
9/...
0
votes
0
answers
137
views
How to use Angular JSONP Interceptors
Anyone knows how to use:
https://angular.io/api/common/http/JsonpInterceptor
I would like to catch error through an interceptor.
Thanks
2
votes
2
answers
1k
views
How to do a JSONP request with Angular to a static file when you can't set the callback function name?
Hello fellow problem solvers! I'm hoping to learn something from you. I ran into a challenge that could probably teach me more about Angular, and I would appreciate any input anyone might have.
...
0
votes
1
answer
168
views
Why is my JSONP response blank/error from SOLR at localhost?
I've set up Solr locally. It works fine using queries in browser. I'm tryng to acces JSON-queryresults in JQuery, but I'm not able.
When I run the following request in my browser i get the following ...
0
votes
1
answer
69
views
Why my JSONP Code doesn't save results into PDF file after converting from template in Google App Script
I'm trying to save my results into PDF file after google sheet calculation. Here's my google sheet file: Google sheet(img)
After someone submit my form J Column sum all answers and gets 39. Then I ...
1
vote
1
answer
659
views
Vimeo API JsonP issue
I am troubleshooting a jQuery ajax call to the Vimeo API that started failing in the last month or so after having worked for a while.
// Url ends up like "https://www.vimeo.com/api/v2/video/...
0
votes
1
answer
298
views
jQuery sending undefined "_" parameter
I am trying to write a script that gets COVID-19 numbers from the Ontario Database, but I keep getting the following error:
"invalid value \"_\""
Upon further investigation, the ...
3
votes
1
answer
2k
views
Simple Java HTTP Server application that responds in JSONP
I want to create a very simple HTTP server Java with JSONP responds.
Here is the code:
public static void main(String[] args) throws Exception {
HttpServer server = HttpServer.create(new ...
0
votes
1
answer
232
views
Bypass same-origin policy with JSONP and parse data
I have found the following JSON resource for global COVID infection data:
https://opendata.ecdc.europa.eu/covid19/casedistribution/json/
I have tried this simple callback function (And many variations)...
3
votes
2
answers
7k
views
How to use DuckDuckGo's search autocomplete suggestions
I'm transitioning my personal search suggestions from google to duckduckgo, but I'm missing something simple to make it work. I'm using jQuery-UI's autocomplete framework.
My search form
<form ...
-1
votes
1
answer
193
views
Why is my Ajax Request Containing dataType: "jsonp" erroring? [duplicate]
I have the following Ajax call:
var baseurl = Office.context.mailbox.restUrl;
var getMessageUrl = baseurl + "/v2.0/me/messages/" + rest_id + "?$select=SingleValueExtendedProperties&$...
0
votes
1
answer
886
views
How to trigger function based on API call and callback in 3rd party app
I am trying to listen for a javascript callback from a 3rd party app on my site. The app is minified so it is quite hard to reverse engineer. However, having used the Chrome debugger, the callback I ...