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]>
Object onAction(){
JSONObject response = new JSONObject();
response.put("script", "self.location='me';");
response.put("content", "redirect .");
return response;
}
> 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
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
>>> }
>>
{
>> 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
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
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
> --
&
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.
--