Jump to content

Calculate Distance


Parkho

Recommended Posts

  • Moderators

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);
       });
}

Link to comment
Share on other sites

  • Moderators

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. smile.gif

Link to comment
Share on other sites

  • Moderators

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...