Hi,
I'm wondering if there's a way to add inline javascript code in a plugin. I know there's the $OBJ->page->add_jquery() function to add external files, but does a similar function for inline code exist?
Thanks
Hi,
I'm wondering if there's a way to add inline javascript code in a plugin. I know there's the $OBJ->page->add_jquery() function to add external files, but does a similar function for inline code exist?
Thanks
$OBJ->page->dyn_js[] = ...javascript...;
Loads it into an array and outputs accordingly. ;)
Tried your code and unfortunately it didn't work. But, it helped me to find out how some formats do it:
$OBJ->page->exhibit['dyn_js'][] = ...javascript...;
Is this valid for plugins, too?
Wha? ...javascript... isn't code. ;)
Yes, valid for plugins too. You can add js and css to the page output.
This thread has been closed, thank you.