Hey guys,
I'm having a problem with passing a variable from the php to the javascript. I'm currently doing the following in php to call the js:
$this->include_script ('test.js');
where test.js holds the following:
function test(test) { alert("test: " + test); }
What I want to do is to, from the php, call my test() function with a variable that's sent from the php. I figured so much that include_script() only sends my test.js file to the init for inclusion and that it probably isn't suitable for my needs.
I'm not doing anything particular than trying to understand the development depths of the project so that I some day may be able to write usable plugins.
Could somebody please give me a helping hand in passing the variable $test from php to my test() function in the included javascript?
Thanks in advance!
List info: http://lists.roundcube.net/dev/ BT/aba52c80