Hi,

I think you need append all the marker to the form action before form is 
submitted.
var url = form.action;
var markers = your marker string, format like 'a/b/c/d'
var index= url.indexOf("?");
 if (index< 0) {
  url = url + "/" + markers ;
 } else {
  url = url.substring(0,index) + "/" + markers + url.substring(index);
 } 
form.action = url;

Then onSuccess handler would be like: onSuccess(String []markers).


DH

----- Original Message ----- 
From: "abangkis" 
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Sunday, November 29, 2009 7:06 PM
Subject: Passing GMarkers Array to Tapestry


> Dear All,
> 
> I've got a question. I've created a page that has a Google Map
> embedded on It. I want to store all of the markers that users click in
> the map to a database. I've managed to collect the markers and store
> it in a javascript array.
> 
> What i want to do is, when i submit a form on the page. The javascript
> array is passed / accessible to the onSuccess() method so i can store
> the value to the database, and vice versa.
> 
> Thanks a lot for your help
> 
> - abangkis -
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
>

Reply via email to