Dear Sirs,
Is there any way to play Mp3 audio using onlick function. I have a grid table linked with Mysql. Every row has a unique mp3 file. The files are located into Directory (Sounds) and its name is saved on mysql.
Hope that you have a solution.
Thank you in advance and best regards.
You can use <audio> tag of html as column value and have mp3 file name field as placeholder. e.g.
e.g.
$col["default"] = "<audio width='20' src='{mp3_field}'></audio>
This is currently supported in full version.
Dear Abu Ghufran,
Thank you for your reply. I have tried this but not working. I highly appreciate if you could give an example.
$col = array();
$col["title"] = "Sound"; // caption of column, can use HTML tags too
$col["name"] = "Sound"; // grid column name, same as db field or alias from sql
$col["width"] = "40"; // width on grid
$col["align"] = "center";
$col["fixed"] = true;
$col["default"] = "<audio width='20' src='../$soundsDir{Sound}'></audio>";
$cols[] = $col;
Best regards,
If using paid version, please email me order number / payment email address and code for review.
Email me at [email protected]