Hey,
first of all, this is a great component, and has helped me a lot!
I have made a simple form (BreedRegist) with a button "open map" (it opens ' kart.html' with open.window()),
where users can place a marker. When the users click add, the values should be stored in
the two hidden variables lng and lat in the BreedRegist-form.
But when I click "add" I get this error
Error: window.opener.document.BreedRegist has no properties
My form name is BreedRegist and the hidden-field names are lng and lat
Here is part of the code inside kart.html:
function add(longitude,latitude) {
if (window.opener && !window.opener.closed){
window.opener.document.BreedRegist.lng.value = longitude;
window.opener.document.BreedRegist.lat.value = latitude;
}
window.close();
}
<input type="text" id="location_lat" style="width:10;" >
<input type="text" id="location_lng" style="width:10;" >
<span onclick="add(document.getElementById('location_lng'),document.getElementById('location_lat'));">add</span>
please help me

thx