Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello mastas, Is there any way to delete the CR ?
I want to obtain only 1 ligne like here
Thanks in advance for the help
Hello Sorry to waste your precious time. As i always said, im just an old retarded man. I just discovered now on "String" function that i can use the Clean to solve my problem. Thanks anyway
Thank you @DrPrime
I wanted to use the bass-remote library on github, but I didn't find an example of how to set string resources
I figured it out nvm. I just set this "\w{32}" as the regex but I actually clicked on the w/ button and then typed in the 32. Seems to work fine
try manipulate the method .replace("",') or TRIM function for specific VAR of your parsed
@tipston244 said in Cannot run javascript from string:
I have set script to a variable: [[SCRIPT]] is set to document.getElementById("donuts").text = "test" but when I use javascript action and set content to [[SCRIPT]] it does not run that script. But if i type "document.getElementById("donuts").text = "test"" directly it will work. Is this a bug
I have set script to a variable: [[SCRIPT]] is set to document.getElementById("donuts").text = "test"
but when I use javascript action and set content to [[SCRIPT]] it does not run that script.
But if i type "document.getElementById("donuts").text = "test"" directly it will work.
Is this a bug
You put the text in a variable and just output it
5623d92e-79d6-4fa6-b843-aa7129aaa1fe-изображение.png
To execute the code represented by a string, use the eval() method https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval