can I know that how to put a function in the google chart api to generate the qr code and redirect the url? Because it only shows the text instead of calling the function.
Here is my coding:
<img src="https://chart.googleapis.com/chart?chs=400x400&cht=qr&chl='qrcodeattendance(subject_id)'" title="" />
Below is my JavaScript function:
function qrcodeattendance(subject_id)
{
window.location.href = "<?php echo site_url('attendance/qr_code_attendance/')?>"+subject_id; // redirect to student_attendance_detail
}