Re: Return page from ajax request

2008-08-25 Thread Markus Joschko
Despite the workarounds I think it would be much nicer if tapestry could handle this automatically and don't force the developer to think about that. I created an improvement request https://issues.apache.org/jira/browse/TAPESTRY-2618 On Mon, Aug 25, 2008 at 2:31 AM, Jun Tsai <[EMAIL PROTECTED]>

Re: Return page from ajax request

2008-08-24 Thread Jun Tsai
Object onAction(){ JSONObject response = new JSONObject(); response.put("script", "self.location='me';"); response.put("content", "redirect ."); return response; }

Re: Return page from ajax request

2008-08-24 Thread Howard Lewis Ship
> In T5, from an Ajax request, is it possible to redirect to a different >> page? >> > >> > What I'm trying to do is something like below: >> > >> > Object onSomeAjaxRequest(){ >> > >> > if(some condition){ >> > exit xht

Re: Return page from ajax request

2008-08-24 Thread Markus Joschko
ing to do is something like below: >>> >>> Object onSomeAjaxRequest(){ >>> >>> if(some condition){ >>> exit xhttp and jump to a different page >>> } >>> else{ >>> return xhttp response to same page >>> } >>

Re: Return page from ajax request

2008-08-24 Thread Andrew Court
{ >> exit xhttp and jump to a different page >> } >> else{ >> return xhttp response to same page >> } >> >> } >> >> But this doesn't seem to work. >> >> Thanks for any pointers, >> Andrew >> -- >> View thi

Re: Return page from ajax request

2008-08-23 Thread Sven Homburg
27;m trying to do is something like below: > > > > Object onSomeAjaxRequest(){ > > > > if(some condition){ > > exit xhttp and jump to a different page > > } > > else{ > > return xhttp response to same page > > } > > > > } &g

Re: Return page from ajax request

2008-08-23 Thread Markus Joschko
Object onSomeAjaxRequest(){ > > if(some condition){ > exit xhttp and jump to a different page > } > else{ > return xhttp response to same page > } > > } > > But this doesn't seem to work. > > Thanks for any pointers, > Andrew > -- &

Return page from ajax request

2008-04-27 Thread Andrew Court
esn't seem to work. Thanks for any pointers, Andrew -- View this message in context: http://www.nabble.com/Return-page-from-ajax-request-tp16927742p16927742.html Sent from the Tapestry - User mailing list archive at Nabble.com. --