Magento 2.3: How To Initialize Js…?Magento 2 does not read my requirejs-config.jsHow Does Magento 2 Apply KnockoutJS BindingsMagento 2: can't use materialize.js on my custom moduleBest practice for calling JavaScript on a specific page in Magento2How to call a js function explicitly from phtml file in magento 2jQuery UI breaks when clicking on draggable element: “Cannot read property 'defaultView' of undefined”Magento 2.2.2 - RequireJS domReady! not working with Slick Product SliderIs it possible to mixin placeOptions method in Magento_Ui/js/form/element/select?Datatable js include issue in magento2Magento 2: jQuery Datatables Button Extentions Not Working

How would a aircraft visually signal in distress?

If you had a giant cutting disc 60 miles diameter and rotated it 1000 rps, would the edge be traveling faster than light?

Genetic limitations to learn certain instruments

Can a black dragonborn's acid breath weapon destroy objects?

Comparing and find out which feature has highest shape area in QGIS?

Find the Factorial From the Given Prime Relationship

How can I most clearly write a homebrew item that affects the ground below its radius after the initial explosion it creates?

Using "subway" as name for London Underground?

Frame failure sudden death?

Hottest Possible Hydrogen-Fusing Stars

Cross-dimension teleportation using command block or datapack?

Why doesn't Adrian Toomes give up Spider-Man's identity?

At what point in time did Dumbledore ask Snape for this favor?

Can a user sell my software (MIT license) without modification?

How does an ordinary object become radioactive?

Preventing Employees from either switching to Competitors or Opening Their Own Business

Confusion about off peak timings of London trains

What does the "c." listed under weapon length mean?

Should I compare a std::string to "string" or "string"s?

HT12e: How is this a 2¹² encoder?

What was with Miles Morales's stickers?

Words that signal future content

What is the giant octopus in the torture chamber for?

Is it a problem if <h4>, <h5> and <h6> are smaller than regular text?



Magento 2.3: How To Initialize Js…?


Magento 2 does not read my requirejs-config.jsHow Does Magento 2 Apply KnockoutJS BindingsMagento 2: can't use materialize.js on my custom moduleBest practice for calling JavaScript on a specific page in Magento2How to call a js function explicitly from phtml file in magento 2jQuery UI breaks when clicking on draggable element: “Cannot read property 'defaultView' of undefined”Magento 2.2.2 - RequireJS domReady! not working with Slick Product SliderIs it possible to mixin placeOptions method in Magento_Ui/js/form/element/select?Datatable js include issue in magento2Magento 2: jQuery Datatables Button Extentions Not Working






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm new to Magento 2.3, I was trying to apply jQuery DataTable and it's done, after that, I want to add it's Button Extention, for that i need to add two more js,so i initialize it, now i'm getting error in my console, Here is my code:



/EC/Downloads/view/adminhtml/requirejs-config.js



 var config = 
map:
'*':
dataTables: 'EC_Downloads/js/datatables.min'


;


/EC/Downloads/view/adminhtml/templates/test.phtml



<script>
require(['jquery', 'jquery/ui','dataTables'], function($)
$(document).ready(function($)
$('#example').DataTable(
dom: 'Bfrtip',
buttons: [
'print'
]
);
);
);
</script>


Initializing other two js button.js, button_print.js like this:



These Js files are located in:



/EC/Downloads/view/adminhtml/web/js/buttons.js



/EC/Downloads/view/adminhtml/web/js/buttons_print.js



<script type="text/x-magento-init">

"*":
"EC_Downloads/js/buttons":,
"EC_Downloads/js/buttons_print":


</script>


Getting This Error:
enter image description here










share|improve this question






















  • Did you run setup:static-content:deploy command ?

    – Vignesh Bala
    May 29 at 11:53











  • yes run deploy, compile,rm rf,c:c,c:f

    – Saif Zakir
    May 29 at 12:05

















0















I'm new to Magento 2.3, I was trying to apply jQuery DataTable and it's done, after that, I want to add it's Button Extention, for that i need to add two more js,so i initialize it, now i'm getting error in my console, Here is my code:



/EC/Downloads/view/adminhtml/requirejs-config.js



 var config = 
map:
'*':
dataTables: 'EC_Downloads/js/datatables.min'


;


/EC/Downloads/view/adminhtml/templates/test.phtml



<script>
require(['jquery', 'jquery/ui','dataTables'], function($)
$(document).ready(function($)
$('#example').DataTable(
dom: 'Bfrtip',
buttons: [
'print'
]
);
);
);
</script>


Initializing other two js button.js, button_print.js like this:



These Js files are located in:



/EC/Downloads/view/adminhtml/web/js/buttons.js



/EC/Downloads/view/adminhtml/web/js/buttons_print.js



<script type="text/x-magento-init">

"*":
"EC_Downloads/js/buttons":,
"EC_Downloads/js/buttons_print":


</script>


Getting This Error:
enter image description here










share|improve this question






















  • Did you run setup:static-content:deploy command ?

    – Vignesh Bala
    May 29 at 11:53











  • yes run deploy, compile,rm rf,c:c,c:f

    – Saif Zakir
    May 29 at 12:05













0












0








0








I'm new to Magento 2.3, I was trying to apply jQuery DataTable and it's done, after that, I want to add it's Button Extention, for that i need to add two more js,so i initialize it, now i'm getting error in my console, Here is my code:



/EC/Downloads/view/adminhtml/requirejs-config.js



 var config = 
map:
'*':
dataTables: 'EC_Downloads/js/datatables.min'


;


/EC/Downloads/view/adminhtml/templates/test.phtml



<script>
require(['jquery', 'jquery/ui','dataTables'], function($)
$(document).ready(function($)
$('#example').DataTable(
dom: 'Bfrtip',
buttons: [
'print'
]
);
);
);
</script>


Initializing other two js button.js, button_print.js like this:



These Js files are located in:



/EC/Downloads/view/adminhtml/web/js/buttons.js



/EC/Downloads/view/adminhtml/web/js/buttons_print.js



<script type="text/x-magento-init">

"*":
"EC_Downloads/js/buttons":,
"EC_Downloads/js/buttons_print":


</script>


Getting This Error:
enter image description here










share|improve this question














I'm new to Magento 2.3, I was trying to apply jQuery DataTable and it's done, after that, I want to add it's Button Extention, for that i need to add two more js,so i initialize it, now i'm getting error in my console, Here is my code:



/EC/Downloads/view/adminhtml/requirejs-config.js



 var config = 
map:
'*':
dataTables: 'EC_Downloads/js/datatables.min'


;


/EC/Downloads/view/adminhtml/templates/test.phtml



<script>
require(['jquery', 'jquery/ui','dataTables'], function($)
$(document).ready(function($)
$('#example').DataTable(
dom: 'Bfrtip',
buttons: [
'print'
]
);
);
);
</script>


Initializing other two js button.js, button_print.js like this:



These Js files are located in:



/EC/Downloads/view/adminhtml/web/js/buttons.js



/EC/Downloads/view/adminhtml/web/js/buttons_print.js



<script type="text/x-magento-init">

"*":
"EC_Downloads/js/buttons":,
"EC_Downloads/js/buttons_print":


</script>


Getting This Error:
enter image description here







magento2 javascript magento2.3 phtml datatable.js






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 29 at 11:12









Saif ZakirSaif Zakir

437




437












  • Did you run setup:static-content:deploy command ?

    – Vignesh Bala
    May 29 at 11:53











  • yes run deploy, compile,rm rf,c:c,c:f

    – Saif Zakir
    May 29 at 12:05

















  • Did you run setup:static-content:deploy command ?

    – Vignesh Bala
    May 29 at 11:53











  • yes run deploy, compile,rm rf,c:c,c:f

    – Saif Zakir
    May 29 at 12:05
















Did you run setup:static-content:deploy command ?

– Vignesh Bala
May 29 at 11:53





Did you run setup:static-content:deploy command ?

– Vignesh Bala
May 29 at 11:53













yes run deploy, compile,rm rf,c:c,c:f

– Saif Zakir
May 29 at 12:05





yes run deploy, compile,rm rf,c:c,c:f

– Saif Zakir
May 29 at 12:05










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f276572%2fmagento-2-3-how-to-initialize-js%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f276572%2fmagento-2-3-how-to-initialize-js%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?