On Oct 31, 9:46 am, helloworld <[EMAIL PROTECTED]> wrote: > All sites are hosting on many servers and servers havn't a common > database, it will be harder to maintain databases with domain/key > couple, for me the best solution is overwriting the alert function in > fact.
That shouldn't be a problem. You can load the key from a central database anyway, with something like this: <script> var scriptTag = '<' + 'script src="http://mycentraldatabase.com/ getKey.php?domain=' + window.location.host + '><' + 'script>'; document.write(scriptTag); </script> and on mycentraldatabase.com you'd have getKey.php that looks up the domain's key in a table and outputs javasctipt, like print "var key='$key';"; then you have the correct key for each domain loaded into a variable called 'key', so now you can call the API with <script> var scriptTag = '<' + 'script src="http://maps.google.com/maps? file=api&v=2&key=' + key + '">'+'<'+'/script>'; document.write(scriptTag); </script> I use this technique on every map, only that I don't have as many, so I don't need a database. A simple .js files holding the key for each domain is enough. -- Marcelo - http://maps.forum.nu -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
