Quantcast
Channel: Echo javascript variable into smarty - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Quentin for Echo javascript variable into smarty

Generally speaking (i.e. unless you are doing something esoteric such as mixing SSJS and PHP) you can't.The PHP runs (processing the Smarty template), then delivers the output to the browser, and then...

View Article



Answer by Matthew Flaschen for Echo javascript variable into smarty

You can use an AJAX request to send it to the server, where you can use Smarty to render new HTML (don't know the details of this), then return HTML in the AJAX response. You can then inject this with...

View Article

Echo javascript variable into smarty

I set one variable in java-script. And I want to echo that variable in smarty.Would it be possible?If yes then please provide me some guidance. Cheers!!!

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images