Re: embedding google maps javascript into a tapestry page

2012-07-05 Thread Lance Java
Exanpe has a gmap component which you can probably use
http://exanpe-t5-lib.appspot.com/components/googlemap/example5

If not, I'm sure peeking at the code will help
https://github.com/exanpe/exanpe-t5-lib/blob/master/src/main/java/fr/exanpe/t5/lib/components/GMap.java

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/embedding-google-maps-javascript-into-a-tapestry-page-tp5714286p5714299.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: embedding google maps javascript into a tapestry page

2012-07-05 Thread sommeralex
thank you AGAIN for your help. i will mention your name on
http://www.airwriting.com/about/imprint if you agree on!

i will try to solve it by myself, but, as you problably already have seen, i
am looking for someone to fix this :-)

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/embedding-google-maps-javascript-into-a-tapestry-page-tp5714286p5714301.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: embedding google maps javascript into a tapestry page

2012-07-05 Thread Lance Java
You can't use ${scopeRadius} in a js file. Javascript files are static and
can be cached in the browser. What you can do is construct a JSONObject on
the serverside (based on dynamic values) and initialize the client.

This can be done two ways:
1. Create a javascript object under the Tapestry.Initializer namespace and
use JavascriptSupport.addInitializerCall(String functionName, JSONObject
parameter) 
2. Call a javascript function via JavascriptSupport.addScript(String format,
Object... arguments) 

 I will mention your name on http://www.airwriting.com/about/imprint if you
 agree on!
Not sure I deserve a mention but I have no problem with that.


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/embedding-google-maps-javascript-into-a-tapestry-page-tp5714286p5714302.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: embedding google maps javascript into a tapestry page

2012-07-05 Thread sommeralex
thx, i will try that!

2012/7/5 Lance Java [via Tapestry] ml-node+s1045711n571430...@n5.nabble.com


 You can't use ${scopeRadius} in a js file. Javascript files are static and
 can be cached in the browser. What you can do is construct a JSONObject on
 the serverside (based on dynamic values) and initialize the client.

 This can be done two ways:
 1. Create a javascript object under the Tapestry.Initializer namespace
 and use JavascriptSupport.addInitializerCall(String functionName,
 JSONObject parameter)
 2. Call a javascript function via JavascriptSupport.addScript(String
 format, Object... arguments)

  I will mention your name on http://www.airwriting.com/about/imprint if
 you agree on!
 Not sure I deserve a mention but I have no problem with that.


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://tapestry.1045711.n5.nabble.com/embedding-google-maps-javascript-into-a-tapestry-page-tp5714286p5714302.html
  To unsubscribe from embedding google maps javascript into a tapestry
 page, click 
 herehttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5714286code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNDI4NnwxMDUzMzQxMzM4
 .
 NAMLhttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/embedding-google-maps-javascript-into-a-tapestry-page-tp5714286p5714304.html
Sent from the Tapestry - User mailing list archive at Nabble.com.