So, my problem is the following: I made an imagemapster map of an image of teeth, and i want to select more than one tooth, and some bridges between teeth, and click a button, make some verifications, and if all good, save the chosen teeth and bridges in a mysql database.. The thing is, I don't know how to do it.. Im new to this, and I only know a bit of php and html... What is the easiest / simplest way of doing this? I read about AJAX but it seemed too complicated to be learning how to do it.. Also read about hidden forms? Tried it but didn't work, probably did something wrong.. This is the simple mapster script i have now..
<script>
$(document).ready(
function ()
{
$('#img').mapster(
{
mapKey: 'tooth',
fillColor: '118f3b',
fillOpacity: 0.5,
render_highlight:
{
fillColor: '78e99d',
fillOpacity: 0.5
},
});
}
);
</script>
EDIT: I tried this now, and it kind of worked.. It seems the current clicked map doesnt count, only on the second click is the first one saved.. e.g i click on 1 and 2, but only the 1 is shown.. i click 3 and 1 and 2 are shown.. like this problem here: ImageMapster (JavaScript)- "onClick" function wont work properly
onClick: function(data)
{
var test = image.mapster('get');
document.cookie = "cookie_with_info = " + test_var;
}