Hello, I'm using this
example to pass text to a javascript function that renders it into a container layer and adds scrollbars when needed. Within my action, I use this:
|
Source code
|
1
|
txtadd(layer[get(layername)].onloaded, 'add_html_text(', get(textcontent2),')');
|
and pass to javascript action here:
|
Source code
|
1
|
<action name="add_html_text" type="Javascript"><![CDATA[ console.log('hello!', args[1]);
|
But the log only shows the text before the first comma. I've scoured the forum and have tried many different things, using quotes around the parameter, using set instead of txtadd, and various other methods. What am I doing wrong?