2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

How upload a file\image via json api?

I am currently having the same issue. The post goes thru perfectly in postman. the code snippet below is used to perform the post action in nextjs //this function is used to convert the file const ...
user avatar
  • 11
1 vote

How to refresh and reload (with ajax?) order checkout panes and order calculation independent from commerce cart refresh (e.g. billing address change)

So you want to refresh some content in the page that's not part of the checkout form? Basically, this can be done using an Ajax callback and one or more Ajax callback commands: https://www.drupal.org/...
user avatar
  • 111
1 vote
Accepted

Overriding Drupal.ajax.prototype is not working

There are two javascript objects: Drupal.ajax Drupal.Ajax You have to override the prototypes in Drupal.Ajax. For each Ajax object declared in Drupal settings an instance of it will then be stored ...
user avatar
  • 87.1k

Top 50 recent answers are included