Moderators Parkho Posted January 20, 2012 Moderators Report Posted January 20, 2012 Hi I'm looking for the calcDistance() function called in ops_scheduleform.tpl in admin/templates. Any body knows where it is? thanks Quote
Moderators Kyle Posted January 20, 2012 Moderators Report Posted January 20, 2012 admin/lib/phpvmsadmin.js At line 215 to 222 function calcDistance() { $("#distance").val("Calculating..."); $.get(baseurl + "/admin/action.php/operations/calculatedistance", { depicao: $("#depicao").val(), arricao: $("#arricao").val() }, function(data) { $("#distance").val(data); }); } Quote
Moderators Parkho Posted January 21, 2012 Author Moderators Report Posted January 21, 2012 admin/lib/phpvmsadmin.js At line 215 to 222 function calcDistance() { $("#distance").val("Calculating..."); $.get(baseurl + "/admin/action.php/operations/calculatedistance", { depicao: $("#depicao").val(), arricao: $("#arricao").val() }, function(data) { $("#distance").val(data); }); } Thanks a lot. Quote
Moderators Parkho Posted January 21, 2012 Author Moderators Report Posted January 21, 2012 admin/lib/phpvmsadmin.js At line 215 to 222 function calcDistance() { $("#distance").val("Calculating..."); $.get(baseurl + "/admin/action.php/operations/calculatedistance", { depicao: $("#depicao").val(), arricao: $("#arricao").val() }, function(data) { $("#distance").val(data); }); } Okay! How do I call that function in a .tpl form? or is it possible? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.