cclaerhout
Well-known member
Is there an easy solution to get a xenForo variable in Javascript (jquery)? Let's take a simple example:
In php to get a xenForo phrase, I do:
If I want to get a xenForo variable I use:
Is there something in Javascript? Or do I have to use my php file to send those data to my Javascript ? If it's the case, do someone has a simple example to show me how to do it? I've read a lot of tutorials on Internet based on AJAX and almost each of them use a different way to do it.
In php to get a xenForo phrase, I do:
Code:
new XenForo_Phrase('toggleMe_Expand');
Code:
$call->getParam('variable')
Is there something in Javascript? Or do I have to use my php file to send those data to my Javascript ? If it's the case, do someone has a simple example to show me how to do it? I've read a lot of tutorials on Internet based on AJAX and almost each of them use a different way to do it.