You can pass variables to wicket using wcall like: var wcall = wicketAjaxGet('${url}'+'?&lat='+p.coords.latitude.toFixed(2)+'&lon='+p.coords.longitude.toFixed(2));
now in my wicket web page i have a AbstractDefaultAjaxBehavior which receives this value i am embedding this url for the AbstractDefaultAjaxBehavior using vars.put("url",geo.getCallbackUrl().toString()); add(TextTemplateHeaderContributor.forJavaScript(MasterPage.class,"setLocation.js",Model.valueOf(vars))); where vars is a hashmap. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setting-and-reading-a-JS-variable-from-Wicket-tp3989058p3989074.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org