You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Waleriy <wa...@mail.ru> on 2012/09/17 19:01:39 UTC

Problem with tapestry ajax window refresh

Hello, everebody! I have a problem with tapestry zone update! 
There is a zone in modal window and there is a button in the window. 
When user clicks the button, zone in the window must be updated.
And most of times it works well, but if there is a download button 
on the same page, then after downloading, the zone in the window 
won't be updated when I click on the button in the window. I've read
here in one discussion that it hapens because after clicking a download 
button, beforeonload event happens and tapestry zones loose their ability to
refresh.
How can I handle this situation? I want that my window zone can be always
refreshed. 



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-with-tapestry-ajax-window-refresh-tp5716360.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Problem with tapestry ajax window refresh

Posted by Ivan Khalopik <ik...@gmail.com>.
You can also use invisible <iframe> as a target of download link. It will
prevent opening a new window:

<t:eventlink target="_download"/>

<!-- somewhere in the bottom -->
<iframe name="_download" style="display:none;"></iframe>

On Tue, Sep 18, 2012 at 9:05 AM, Waleriy <wa...@mail.ru> wrote:

> Thank you. That solution works.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Problem-with-tapestry-ajax-window-refresh-tp5716360p5716369.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
BR
Ivan

Re: Problem with tapestry ajax window refresh

Posted by Waleriy <wa...@mail.ru>.
Thank you. That solution works.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-with-tapestry-ajax-window-refresh-tp5716360p5716369.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Problem with tapestry ajax window refresh

Posted by Bob Harner <bo...@gmail.com>.
Sorry, that should be target="_blank", not _new

On Mon, Sep 17, 2012 at 9:38 PM, Bob Harner <bo...@gmail.com> wrote:
> The solution I have used is to have the download occur in a separate
> window (via a target="_new" attribute on the form (if it's a button)
> or the link if it's a link). Not elegant, but it works.
>
> On Mon, Sep 17, 2012 at 1:01 PM, Waleriy <wa...@mail.ru> wrote:
>> Hello, everebody! I have a problem with tapestry zone update!
>> There is a zone in modal window and there is a button in the window.
>> When user clicks the button, zone in the window must be updated.
>> And most of times it works well, but if there is a download button
>> on the same page, then after downloading, the zone in the window
>> won't be updated when I click on the button in the window. I've read
>> here in one discussion that it hapens because after clicking a download
>> button, beforeonload event happens and tapestry zones loose their ability to
>> refresh.
>> How can I handle this situation? I want that my window zone can be always
>> refreshed.
>>
>>
>>
>> --
>> View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-with-tapestry-ajax-window-refresh-tp5716360.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Problem with tapestry ajax window refresh

Posted by Bob Harner <bo...@gmail.com>.
The solution I have used is to have the download occur in a separate
window (via a target="_new" attribute on the form (if it's a button)
or the link if it's a link). Not elegant, but it works.

On Mon, Sep 17, 2012 at 1:01 PM, Waleriy <wa...@mail.ru> wrote:
> Hello, everebody! I have a problem with tapestry zone update!
> There is a zone in modal window and there is a button in the window.
> When user clicks the button, zone in the window must be updated.
> And most of times it works well, but if there is a download button
> on the same page, then after downloading, the zone in the window
> won't be updated when I click on the button in the window. I've read
> here in one discussion that it hapens because after clicking a download
> button, beforeonload event happens and tapestry zones loose their ability to
> refresh.
> How can I handle this situation? I want that my window zone can be always
> refreshed.
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-with-tapestry-ajax-window-refresh-tp5716360.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org