Questions tagged [jsonp]
JSON with Padding (JSONP) is a technique for working around cross-domain Ajax limitations.
4,072
questions
0
votes
1
answer
13
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
33
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
45
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
334
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
0
answers
21
views
JSONP error callback without using Jquery
I'm using JSONP, without jquery, by doing something like this:
var scriptElement = document.createElement('script');
scriptElement.type = 'text/javascript';
scriptElement.src = url;
document....
0
votes
2
answers
93
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
36
views
Max parallel connections for server sent events hosted by a third party domain?
Let's say I have a javascript library file hosted on mydomain.com that other people include as a script in their index HTML. My js lib connects to and gets server sent events from mydomain.com.
So ...
0
votes
0
answers
10
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 ...
-2
votes
1
answer
143
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
13
views
exploit the JSONP get parameter [duplicate]
I have a URL that returns a JSON with a GET parameter "cb"
https://jsonp.c00kie.ninja/public/jsonp.php?cb
The Get parameter cb takes a value as the name of the function so its like a JSONP....
0
votes
0
answers
6
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
12
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
162
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
148
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
370
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
41
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
62
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=...
0
votes
1
answer
2k
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
46
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
196
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
249
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
72
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
155
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
44
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
618
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
489
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
151
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
31
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
174
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
1k
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
1k
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
134
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
446
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
293
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
239
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
96
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
1
vote
2
answers
655
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
69
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
50
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
516
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
216
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 ...
2
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
127
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
4k
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
104
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
600
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 ...
0
votes
0
answers
65
views
Javascript: Getting the IP of the visitor. I can't access the JSON elements
I'm trying to read JSON response with JS but I can't find what what I'm doing wrong. I'm trying to enbed JS in a plugin I use in WP, but for the moment I'm just trying to get the right information in ...
2
votes
0
answers
1k
views
In Angular 9 - How to fetch a JSONP that doesn't have a callback function?
I'm trying to fetch de data the URL below:
http://storage.googleapis.com/nacleanopenworldprodshards/Nations_cleanopenworldprodeu1.json
I'm using Angular 9, and this is my service.ts:
import { ...
1
vote
2
answers
72
views
How to convert List<JsonObject> to JsonArray in JAVA
I have written a code, where I need to create a JSON format output from a "select * query". So far I am able to get the output like this, but I have to wrap it up inside "users"
{
...
0
votes
0
answers
136
views
Nodejs Httpclient JSONP: jsonCallback is not defined
I am not able to work around this problem with JSONP. I have the following service in Angular 7.3.8:
import { Injectable } from '@angular/core';
import { HttpClient, HttpClientJsonpModule } from '@...