Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 45779

JavaScript (JS) is a client side script language which allows to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed. By default Magento 1 comes with the prototype.js library and Magento 2 comes with jQuery. Use 'prototype-js' and 'jquery' tags for questions about those libraries.

0 votes

Why does magento wait for a request to complete before processing others?

The AJAX requests for the progress reports are probably being forced to wait for the first request because they are running in the same PHP session. The request that takes a long time to complete acqu …
Lex's user avatar
  • 344
0 votes
1 answer
412 views

Why does magento wait for a request to complete before processing others?

controller action: public function getprogressAction(){ $progressFileName = getProgressFileName(); echo file_get_contents($progressFileName); } This controller is accessed by the following javascript
Lex's user avatar
  • 344
7 votes
1 answer
16k views

How can I build a redirect URL in a magento 2 js component?

I have added a payment method renderer javascript file to a magento 2 module. I want one of the functions in the js to redirect to another page on the site. …
Lex's user avatar
  • 344
16 votes
Accepted

How can I build a redirect URL in a magento 2 js component?

You can use the mage/url module in the javascript to build the URL for you. Just call build with the path you want to append to the base URL and it will return the full URL. …
Lex's user avatar
  • 344