Skip to main content

We all know the popular "That was Easy Button". well is possible to have it in you K2 Form with 3 DataLabels + 3 Expressions + 2 Picture Controls. all in 1 View.

 

16928i304E70265100C362.jpg

 

Basically the Data Labels will:

 

1) Execute HTML Literal Mode enabled ] to Display the JPG of the Easy Button and Execute the JS to Play MP3

2) Execute HTML Controls to Play the MP3

 

Expressions will:

 

1) Load the HTML Controls into the Data Label

 

<audio controls id=‘tweb’>  <source src="http://k2_blackpearl/Library/ThatWasEasy.mp3" type="audio/mpeg">Your browser does not support the audio element.</audio>

 

2) Setup the JS Function to Play the MP3 File

 

<script>  function playtweb(){    tweb.play();  }</script>

 

3) Load the JPG and execute JS On Click.

 

<img src='http://k2_blackpearl/Library/ThatWasEasy.jpg' border='0' width='240px' onclick='playtweb()'>

 

That wasy Easy with K2 BlackPearl !!!

 

Dinooz

Hi K2CaveMen


 


Nice to see the fun and creative ways people use K2 SmartForms.


 


Thanks for posting.


 


Cheers,


Thinus


 


K2CaveMen,

 Now we just need a "This is frustrating" button and we will be good to go.

 

Thanks,

Bryan Peters


 

Can you do a "Face Palm" button which i can click whenever i uncover a bug............LOL


Reply