Sure, here is my original snippet call:
[[!Gmaps ? &language=`[[++cultureKey]]` &mapLatLng=`[[*mkrLatLng]]` &zoom=`17` &mkrClick=`info` &mkrOver=`info` &mkrIconTv=`mkrImg` &mkrTextTv=`mkrContent` &infoboxAjaxId=`50` &markers=`[[*id]]` &mkrLatLngTv=`mkrLatLng`]]
This works correctly, the map is displayed at the right location and the infobox (when I click the marker) pops-up. However, the document it is requesting is index.php within the folder of the current document.
So for example, if I am on
/somefolder/contact.html
It is trying to execute index.php within the /somefolder/ folder and thus throwing a 404.
What's loaded into the infobox then is the "page not found" error page instead of the actual document I have set in &infoboxAjaxId=`50`.
This is most likely due to me using Friendly URLs and using babel for multilingual setup which creates folders within this structure:
/langcode/somefile.html
/langcode2/somefile.html
/langcode3/somefile.html
and so on.
An additional problem with the XMLHttpRequest() is that it involves the server into processing, which makes showing the infobox a lot slower than ideal (based on the document contents of course). I'm thinking in many cases the value can just be pulled from the TV without requiering additional server processing (at least in the case of 1 map and 1 marker on a single document).
So to sum up, two problems:
1) The ajax request on the infobox throws a 404.
2) Would be a lot faster (in specific settings) to just pull the content from the mkrContent TV isntead of going through an additional page which then looks up the variable on the requested document.
Jose R. Lopez