For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
function generateInvestigation(aid, progress, request, category, title, prior, des, device, inc_date, inc_st, inc_et,camera)
{
var url = 'index.php?option=com_fabrik&format=raw&task=plugin.userAjax&method=addInvestigation&aid='
+aid+'&progress='+progress+'&request='+request+'&category='+category+'&title='+title+'&prior='
+prior+'&des='+des+'&device='+device+'&inc_date='+inc_date+'&inc_st='+inc_st+'&inc_et='+inc_et+'&camera='+camera;
new Request({url:url,
method:'get',
update:document.id('videos___video_investigation_id')
}).send();
}
/* get element values using js */
...
/* function to dynamically generate an investigation using element values */
generateInvestigation(aid, progress, request, category, title, prior, des, device, inc_date, inc_st, inc_et, camera);
function generateInvestigation(aid, progress, request, category, title, prior, des, device, inc_date, inc_st, inc_et,camera)
{
var url = 'index.php?option=com_fabrik&format=raw&task=plugin.userAjax&method=addInvestigation&aid='
+aid+'&progress='+progress+'&request='+request+'&category='+category+'&title='+title+'&prior='
+prior+'&des='+des+'&device='+device+'&inc_date='+inc_date+'&inc_st='+inc_st+'&inc_et='+inc_et+'&camera='+camera;
new Request({url:url,
method:'get',
onComplete: function(result) {
var form = Fabrik.getBlock('form_X');
var watchedEl = form.formElements.get('videos___video_investigation_id');
watchedEl.update(result);
watchedEl.element.fireEvent('change', new Event.Mock(watchedEll.element, 'change'));
}
}).send();
}
onComplete: function(result) {
var form = Fabrik.getBlock('form_X');
var watchedEl = form.formElements.get('videos___amount_id');
watchedEl.update(aid);
watchedEl.element.fireEvent('change', new Event.Mock(watchedEll.element, 'change'));
}