I\'m faced with a problem with a small web application I\'m developping: My HTML-source will be integrated into the HTML source on another site. I\'m using a Google Map in m
Use
var script = document.createElement("script");
script.setAttribute("src",whatever);
document.getElementsByTagName("head")[0].appendChild(script);
Replace whatever with the script source you want to use
I just blogged a would-be solution to this problem. Take a look and let me know what you think. It's a context processor that dynamically loads the key based on the domain in the request.