Yes, your example is what I was doing in the past to execute the JS on the form submit. My problem is getting the actual page url to feed into my JS call. I know there is a way to get it because I've done it before, I just can't remember how and I lost the original code.
Zak On Fri, Dec 11, 2009 at 9:25 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > It is a bit similar to my problem once: > http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html > > The idea is that you do an ajax form submit, then you return an ajax > response that opens the result popup window. > > ** > Martin > > 2009/12/11 Zak Johnson <zakinte...@gmail.com>: > > So the reason I need this is because I have a requirement to submit a > form > > which keeps the main page constant but opens the result page in a new > > window. Also, it can't be a modal window. I need to be able to popup > several > > windows without taking control away from the main page, and without > re-using > > the same popup. Not my favorite design choice, but it's a requirement > that I > > can't get around. I had done this before by just feeding the new page > > instance URL to a javascript function to popup the windows.I was planning > on > > getting the base URL from RequestUtils and just appending the unique page > > url to the end. If someone knows of a better way to do this, I'm all > ears. > > > > Zak > > > > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < > > martin.maku...@koodaripalvelut.com> wrote: > > > >> Why do you need it? Maybe there is a better way around it? > >> > >> ** > >> Martin > >> > >> 2009/12/11 Zak Johnson <zakinte...@gmail.com>: > >> > I am trying to figure out a way to grab the url of a stateful page > >> instance. > >> > So for example, I want to click a link which creates a new page and > >> before > >> > redirecting to that page I want to grab the ?wicket:interface=:1:::: > part > >> of > >> > the URL. I stumbled across a simple way to do this before, but I've > lost > >> > that code and can't remember how I did it. I know I can use the page > map > >> > properties to get the page id and version, then just insert them into > a > >> > string but I have to believe there is a better way. Also, it's > important > >> > that I NOT use bookmarkable pages. Any ideas? > >> > > >> > Zak > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >