Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 41791 invoked from network); 9 Dec 2010 18:24:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 18:24:26 -0000 Received: (qmail 25614 invoked by uid 500); 9 Dec 2010 18:24:25 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 25584 invoked by uid 500); 9 Dec 2010 18:24:25 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 25577 invoked by uid 99); 9 Dec 2010 18:24:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 18:24:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 18:24:23 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB9IO1OM020858 for ; Thu, 9 Dec 2010 18:24:01 GMT Message-ID: <30683351.40581291919041660.JavaMail.jira@thor> Date: Thu, 9 Dec 2010 13:24:01 -0500 (EST) From: "Alejandro Zalazar (JIRA)" To: commits@tapestry.apache.org Subject: [jira] Issue Comment Edited: (TAP5-957) Unexcept "beforeunload" event generated by ie MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAP5-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969840#action_12969840 ] Alejandro Zalazar edited comment on TAP5-957 at 12/9/10 1:22 PM: ----------------------------------------------------------------- Hi! I don't know if this is a bug, but I'm having a similar issue on Firefox and IE. I have an Grid (contained in a Zone) with: ActionLink for row edition and deletion (ajaxian) and an ActionLink for attached file download. When I click the download link, the Open File/Save As popup appears the Tapestry.windowUnloaded = true is set, my other link's handler methods still work, but the Zone is never refreshed. Am I doing something wrong? A partial solution I came up with was to add the following line: onclick="javascript:Tapestry.windowUnloaded=false;return true;" to an image associated to the corresponding link (i.e. delete row link). It's not a good solution, but is working. Any other suggestions? was (Author: alejandrozalazar): Hi! I don't know if this is a bug, but I'm having a similar issue on Firefox and IE. I have an Grid (contained in a Zone) with: ActionLink for row edition and deletion (ajaxian) and an ActionLink for attached file download. When I click the download link, the Open File/Save As popup appears (and the Tapestry.windowUnloaded = true is set), my other link's handler methods still work, but the Zone is never refreshed. Am I doing something wrong? A partial solution I came up with was to add the following line: onclick="javascript:Tapestry.windowUnloaded=false;return true;" to an image associated to the corresponding link (i.e. delete row link). It's not a good solution, but is working. Any other suggestions? > 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: 5.1.0.5 > Reporter: mindhawk > Priority: Minor > > IE will generate a "beforeunload " event when a link such as "show" 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.