Is there a way to use a number from HTTP GET to initialize a script multiple times?
I'm using TinyMCE and I have a php script that runs with an incoming variable (number) from another script and I need to initialize TinyMCE the number of times in the variable.
For every text area I want to use, I have to repeat
tinyMCE.init({
mode : "textareas",
theme : "advanced",
});
I tried looping it in PHP but had no luck. I thought maybe javascript could do it. I know nothing about javascript.
I'm using TinyMCE and I have a php script that runs with an incoming variable (number) from another script and I need to initialize TinyMCE the number of times in the variable.
For every text area I want to use, I have to repeat
tinyMCE.init({
mode : "textareas",
theme : "advanced",
});
I tried looping it in PHP but had no luck. I thought maybe javascript could do it. I know nothing about javascript.