Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Add inline javascript

 

Indexhibit version: 2.0
Thread is resolved.

bipster
SPAIN
9 month(s) ago
Permalink Post

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

Best Answer!
Vaska A
UNITED STATES
9 month(s) ago
Permalink Post
  1. $OBJ->page->dyn_js[] = ...javascript...;

Loads it into an array and outputs accordingly. ;)

bipster
SPAIN
9 month(s) ago
Permalink Post

Tried your code and unfortunately it didn't work. But, it helped me to find out how some formats do it:

  1. $OBJ->page->exhibit['dyn_js'][] =  ...javascript...;

Is this valid for plugins, too?

Vaska A
UNITED STATES
9 month(s) ago
Permalink Post

Wha? ...javascript... isn't code. ;)

Yes, valid for plugins too. You can add js and css to the page output.

Showing 1 - 4 of 4 posts in Forum » Customize » Add inline javascript
 

Only purchasers of Indexhibit are able to post in the forum.