I have a Google Maps javascript and I'd like to find a way to let me know when an address fails geocode lookup. I have tried document.write() methods to try to pass the result in a hidden Additional Checkout Pro field. So far, no luck. Interestingly, this code functions (sort of):
Where "g.add3" is an ACD global (no significance -- it was just handy). It actually does put the value of g.add3 into g.myvar. Not that that does me any good -- its just the only thing I could get to work. I want to put a string as the argument, but I have not found a way to escape the string delimiters in a way that Toolbelt will accept.
I would assume that for security reasons, what I want to do would be impossible. Yet, I have had this limited success. Anyone out there done this sort of thing with success?
Code:
<script type="text/javascript">
function loadthemap() {
document.write(
"<mvt:item name='ry_toolbelt' param='assign|g.myvar|g.add3' />"
);
}
</script>
I would assume that for security reasons, what I want to do would be impossible. Yet, I have had this limited success. Anyone out there done this sort of thing with success?
Comment