You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Taylor Mathewson (JIRA)" <ji...@apache.org> on 2012/09/21 21:05:09 UTC

[jira] [Comment Edited] (TAP5-957) Tapestry's use of the beforeunload event conflicts with how IE operates

    [ https://issues.apache.org/jira/browse/TAP5-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460715#comment-13460715 ] 

Taylor Mathewson edited comment on TAP5-957 at 9/22/12 6:05 AM:
----------------------------------------------------------------

At the very least this should be logged in dev mode, the silent munching of zone updates and ajax responses is frustrating to say the least.

Also, this "If you deliberately introduce anti-patterns into your pages, don't blame Tapestry for not reacting well." is a cop out.  You're using something with known issues in IE.  Simply labeling those as "anti-patterns" is a dodge.
                
      was (Author: trails):
    At the very list this should be logged in dev mode, the silent munching of zone updates and ajax responses is frustrating to say the least.

Also, this "If you deliberately introduce anti-patterns into your pages, don't blame Tapestry for not reacting well." is a cop out.  You're using something with known issues in IE.  Simply labeling those as "anti-patterns" is a dodge.
                  
> Tapestry's use of the beforeunload event conflicts with how IE operates
> -----------------------------------------------------------------------
>
>                 Key: TAP5-957
>                 URL: https://issues.apache.org/jira/browse/TAP5-957
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: mindhawk
>            Priority: Minor
>              Labels: ie, javascript
>
> IE will generate a "beforeunload " event when a link such as "<a href='javascript:show()'>show</a>"  is clicked. So Tapestry.windowUnloaded is set to true. That means all ajax request have no chance to refresh the page after this event.
> Now, I have to set Tapestry.windowUnloaded=false, every time I want to send a ajax request. I don't think thisis a good practice. 
> I think there will be some more smart approach to replace Tapestry.windowUnloaded, or just remove it. because, the request is sent to the server no matter the value is true or false. This value is only discard the responses from the server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira