Re: Calculating wicket page URL in JavaScript

2011-02-06 Thread mbrictson
Then your JavaScript can do something like this (jQuery): var projectPageUrl = $("link[rel='home']").attr("href") + "project/" + projectId; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calculating-wicket-page-URL-in-JavaScript-tp3262

Calculating wicket page URL in JavaScript

2011-02-05 Thread Alec Swan
Hello, I have a common.js file which has a JavaScript function getProjectPageUrl(projectId) which should return the URL to the Wicket ProjectPage object which displays properties of the project with the specified projectId. I am not sure if this is relevant, but ProjectPage is mounted in my Wicket