Re: Calling the Tapestry server from plain Javascript

2010-12-09 Thread Michael Gentry
ng context = ...; >   Link l = componentResources.createEventLink("YourEvent", context); >   return l.toString(); > } > > ... ${myEventLink} ... > > Hope that helps, > > Richard. > > > > -Original Message- > From: Thiago H. de Paula Figueiredo >

Re: Calling the Tapestry server from plain Javascript

2010-12-09 Thread Richard Hill
ink() { String context = ...; Link l = componentResources.createEventLink("YourEvent", context); return l.toString(); } ... ${myEventLink} ... Hope that helps, Richard. -Original Message- From: Thiago H. de Paula Figueiredo Reply-to: "Tapestry users" To: Tape

Re: Calling the Tapestry server from plain Javascript

2010-12-08 Thread Robert Zeigler
Why not pass your javascript an event link? Then your js can invoke getJSON, tapestry will handle the request and call an event handler server-side. Your event handler can then store the value and return a JSONObject. You can stick the value into the url as a request parameter and get it back ou

Re: Calling the Tapestry server from plain Javascript

2010-12-08 Thread Thiago H. de Paula Figueiredo
On Wed, 08 Dec 2010 20:55:27 -0200, Tim Koop wrote: I have a pile of Javascript on my page (it's a component really), and sometimes it comes up with a value it needs to store on the server (in a SessionState or something). Can someone please tell me the best way to call the server from pl