Skip to main content

All Questions

0 votes
2 answers
691 views

JQuery Uncaught (in promise) on error callback

When the API call is success this function is performing as intended, but if an error occurs like 409 I am getting Uncaught (in promise) error in console. The JS in here is making an API call for ...
Thinkal VB's user avatar
-2 votes
1 answer
83 views

javascript - drawing circle in google map - google.maps.Circle - exception - map is not defined

I'ved got these piece of code for displaying a circle in google map: const radiusCircle = new google.maps.Circle({ // <-- this works strokeColor: "#FF0000", //red strokeOpacity:...
Axil's user avatar
  • 3,311
3 votes
2 answers
10k views

ResizeObserver loop limit exceeded - stop exception

Have been hitting the ResizeObserver - loop limit exceeded error on my webapp. From ResizeObserver - loop limit exceeded, I know that the error is harmless. But it still logs into my error/exception ...
Karan Asthana's user avatar
0 votes
1 answer
516 views

jQuery async/await Ajax call, without triggering an exception on HTTP <> 200?

I'm trying to make an async/await HTTP POST using jQuery like this: let response = await $.post({ url: 'https://example.com/product/add', data: JSON.stringify({"foo":"bar"}), ...
Magnus's user avatar
  • 18.9k
0 votes
1 answer
493 views

Uncaught TypeError: $(...).makeRed is not a function

I want to call custom javascript function with jquery selector but this say Uncaught TypeError: $(...).makeRed is not a function <!DOCTYPE html> <html> <head> <title></...
farhad shah's user avatar
0 votes
1 answer
101 views

Get Java exception class name in javascript

I am using following code to call java web API m$.ajaxq({ url: contextPath + "/updateElapsedTime", type: "POST", data: params, contentType: "application/json; charset=utf-8", dataType: '...
Tushar Thakur's user avatar
-1 votes
1 answer
221 views

How to catch this exception in promise? [duplicate]

Consider the following code: particularly when "none" is selected. Using sweetalerts2 Swal.fire({ // html: ' blah blah ', input: 'select', inputOptions: { 'none': 'Please ...
Rajan's user avatar
  • 15
1 vote
1 answer
80 views

I cannot loop through my JSON and fetch my data

I cannot seem to loop through my syllables, while I do the exact same thing with my word. This however does work, how come? my JSON: { "main_object": { "id": "new", "getExerciseTitle": "...
D.Sof's user avatar
  • 119
0 votes
1 answer
59 views

Javascript abnormal functionality on the my reset function (in tic tac toe game)

I have created a tic tac toe game in Javascript. There is a strange problem in code. It is working fine unless you press the reset button. If you press the reset button in beginning the computer will ...
Raj's user avatar
  • 183
-1 votes
1 answer
1k views

"catching is not a function" exception

I'm having an issue on JBoss (6.4.14 GA) running jQuery 3.1.1 (or 3.2.1). As soon as a page loads and the documet.ready function executes I get the following error: jquery.js:formatted:8142 ...
ddubbs's user avatar
  • 9
-4 votes
1 answer
106 views

Jquery error on load couldn't find the error [closed]

<script language="JavaScript" type="text/javascript" > $(document).ready(setInterval(function(){ $("#appointment").html( " <a class="dropdown-toggle" data-toggle="...
Sathiyakugan's user avatar
3 votes
1 answer
10k views

jquery 3.1.1 Error: Object doesn't support property or method 'andSelf'

I just NuGet update my jquery from 1.8.3 to 3.1.1. Then I keep getting this error on every page. After looking around, it seem like jquery is getting execute multiple times, but that doesn't seem to ...
Tek's user avatar
  • 64
1 vote
1 answer
135 views

How can I bubble an error from an $.ajax instance to the $.ajaxSetup?

I have an error callback defined in ajax setup, that will be executed in each ajax instance: $.ajaxSetup({ cache: false, error: function (data, textStatus, pStatusDescription) { if (...
Simon's user avatar
  • 4,894
4 votes
3 answers
691 views

promise error/exception handling design

I want to create a function that performs async operation and returns a promise. The action is: downloading external content via AJAX if the content can't be downloaded (e.g. invalid URL) -> reject if ...
ducin's user avatar
  • 26.5k
2 votes
1 answer
815 views

Catching error during api call not working?

I'm trying to make an API call to ip-api.com/json, but from what I understand it is being blocked by ad-blockers. As such I wanted to add a try-catch to see when it fails so that I can solve this in ...
Nescio's user avatar
  • 513

15 30 50 per page
1
2 3 4 5