vendredi 24 mai 2019

How to work with a php element/value in outsourced javascript file?

I have to outsource the javascript code for the installation of security layers. Now I came across the following command :

var aPictures = new Array(<?php echo $sPicturesWithPath ?>);

Is there a way to get the value of php code in the js file via jquery? Without printing the vaue on screen. Thx for help ;)




Aucun commentaire:

Enregistrer un commentaire