ImagesGuru
Chevereto Member
Hello,
For a developpement I am working on, I can't pass properties using data-xxx using <script> . I am forced to use a JS include system that does not pass properties but only calls the JS script. It's something like that :
So I try to pass the properties using a div element :
And I try to recover the properties using jQuery in the JS :
The console of my browser indicates that the variables to the javascript, but I do not know how to exploit them after :
@Rodolfo can you bring me a solution?
A big thank-you.
Jack
For a developpement I am working on, I can't pass properties using data-xxx using <script> . I am forced to use a JS include system that does not pass properties but only calls the JS script. It's something like that :
Code:
{% INCLUDEJS './js/pup.js' %}
So I try to pass the properties using a div element :
Code:
<div id="images-guru" class="hidden" data-url="https://images.guru/upload" data-vendor="default" data-sibling=".message-box"></div>
And I try to recover the properties using jQuery in the JS :
Code:
var data = $('#images-guru').data();
console.log(data);
The console of my browser indicates that the variables to the javascript, but I do not know how to exploit them after :
@Rodolfo can you bring me a solution?
A big thank-you.
Jack