View Single Post
Old 09-08-2012, 05:23 PM   #17
pollito pito
i warned you ...
pollito pito doesn't litterpollito pito doesn't litterpollito pito doesn't litter
 
pollito pito's Avatar
 
Posts: 54
Karma: 222
Join Date: Apr 2010
Device: none
Quote:
Originally Posted by adun View Post
Thanks a lot for this trick!!
It is indeed very powerful; but please post at least an small HOWTO. Did you manage the Javascript part?
Surely the gurus around here will provide better examples. In the meantime here are my 2 cents. It seems that, at least to some extent, it is possible to embed some JavaScript:

1-Create a custom column; set the type as “Long text, like…”
2-Click edit metadata and select the “Custom metadata” tab.
3-Slect the "HTML Source" tab.
4- Copy and paste the following code:

<div>
<input type="button" value="Click me!" onclick="JavaScript:alert('So you did it!')"></div>
<p></p>
<div>
<button type="button" onclick="JavaScript:alert('You did it again!')">Click here.</button>
</div>

5-Click OK to close the Metadata editor.

Now on the “book details view” you will see two buttons that will pop up scripted messages.

Good luck!
pollito pito is offline   Reply With Quote