referring URL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

referring URL

Alan Capewell-3
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

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: referring URL

Alan Capewell-3
Capewell, Alan <alan.capewell <at> softwareag.co.uk> writes:

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


Sorted it!!

Seaside encodes the ampersands before it outputs them so I get &amp;amp; - I
removed the original encoding and now it works.

Alan Capewell

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside