Javascript Callback situation

I not an expert on JavaScript but i putted together some code taken from here: [url removed, login to view] to limit a Virtuemart shopping cart to sell products to a defined area.

I geocode the address submitted by the user, then check if the Lat and Long point is within the polygon defined by an array of lat and logs. I have all this and works.

The code works but I'm having a callback problem. The first time I click submit to call the function it does the process but i can get the value of the variable until the second time i click submit.

If you have strong JavaScript skills or JavaScript + PHP this make take u a few minutes to solve it. All the code is in placed, i just may need to do some rearrangement on the flow.

The Virtuemart file i modified is: \administrator\components\com_virtuemart\classes\[url removed, login to view]

This file will be provided on proposal acceptance.


Skills: PHP

See more: variable from virtuemart get, javascript code library, flow problem, polygon, javascript php, placed call, javascript submit aspx, javascript callback, geocode lat, check address polygon, code check javascript, php call flow, lat address php, geocode address, situation, javascript lat, php array file, javascript variable php, sell products call, modified shopping cart, javascript php function, limit virtuemart, cart javascript, library polygon, polygon area

About the Employer:
( 0 reviews ) Johnston, United States

Project ID: #1316739

1 freelancer is bidding on average $30 for this job


Hired by the Employer

$30 USD in 3 days
(421 Reviews)