[Seaside] referring URL

Capewell, Alan alan.capewell at softwareag.co.uk
Fri Feb 16 17:03:41 UTC 2007


I'm really quite confused about some weirdness I have with the referring
url in seaside.
 
I'm trying to implement the google maps api
(http://www.google.com/apis/maps/) into my app.  To do so I have to sign
up for an encrypted key for the domain/app that my app uses.  (e.g.
http://localhost:9090/seaside).  You then need to include a link to the
google maps script like...
 
<script
src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=MY_KEY"
type="text/javascript"></script>

...which should check the key and give you access provided that the
request comes from your domain/app.
 
I can get this working in Java with Tomcat with no worries what so ever
but from seaside (specifying the same url in #linkToScript: in my
#updateRoot:) I persistently get told the key is for a different url.  I
have tried a number of different keys for variations on the domain (e.g.
with and without seaside) but no joy.
 
I have left messages on the google map discussion forum but I'm not
convinced I'll get much joy there it seems to be a peculiarity of
Seaside.  Although I can't quite fathom why is there something under the
covers that means the url in the browser bar is not the one being passed
on to google?!!
 
Any insights would be most helpful
 
Thanks
Alan Capewell
<http://www.google.com/apis/maps/> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070216/9b178d0f/attachment.htm


More information about the Seaside mailing list