tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raul Montes (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TAP5-957) Unexcept "beforeunload" event generated by ie
Date Mon, 26 Apr 2010 23:55:31 GMT

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

Raul Montes commented on TAP5-957:

I think the correct approach is to use Unobtrusive JavaScript (http://en.wikipedia.org/wiki/Unobtrusive_JavaScript),
which is encouraged by Tapestry itself (any script included with RenderSupport is rendered
at the end of the page, on the dom loaded event).

Also, event delegation technique is very useful (http://www.sitepoint.com/blogs/2008/07/23/javascript-event-delegation-is-easier-than-you-think/).

> Unexcept "beforeunload" event generated by ie
> ---------------------------------------------
>                 Key: TAP5-957
>                 URL: https://issues.apache.org/jira/browse/TAP5-957
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions:
>            Reporter: mindhawk
>            Priority: Minor
> 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.
You can reply to this email to add a comment to the issue online.

View raw message