I quickly added the following line to one of my pages:

 
add(HeaderContributor.forJavaScript("http://maps.google.com/maps?file=ap
i&v=2&key=ABC")); 


It correctly renders in the page's header as

<script type="text/javascript"
src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC";></script>

I'm using 1.3 beta-3. Either you're using a different version, or I
don't think the header contribution is the problem. Can you do "view
source" when the page hangs?

Thomas

> -----Original Message-----
> From: Ballist1c [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 2. Oktober 2007 10:00
> To: [email protected]
> Subject: RE: Google Maps API
> 
> 
> I have tried that...
> 
> add(HeaderContributor.forJavaScript("http://maps.google.com/ma
> ps?file=api&amp;v=2&amp;key=ABC"));
> 
> However, when I have that line of code, accessing the page 
> with that HeaderContributor the system hangs, and the page 
> doesn't load, i dont even seem to get an error and the only 
> way i can get out of it is through a manual refresh to the baseURL.
> 
> Any thoughts?
> 
> 
> Thomas Maeder wrote:
> > 
> > How does HeaderContributor.forJavaScript(final String location) not 
> > fit your needs?
> > 
> > Thomas
> > 
> > 
> > <Snip...>
> >> 
> >> At the moment I am stuck on how to reference javascript from an 
> >> external HTTP url, as opposed to a local js file.
> >> 
> >> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC";
> >> 
> >> If anyone has any tips, that would be greatly appreciated :)
> >> 
> >> Thanks guys,
> >> 
> >> Take care,
> >> Leo!
> >> --

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to