Return-Path: Delivered-To: apmail-struts-issues-archive@locus.apache.org Received: (qmail 20189 invoked from network); 3 Jun 2007 16:20:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2007 16:20:48 -0000 Received: (qmail 73756 invoked by uid 500); 3 Jun 2007 16:20:51 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 73713 invoked by uid 500); 3 Jun 2007 16:20:50 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 73704 invoked by uid 99); 3 Jun 2007 16:20:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2007 09:20:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2007 09:20:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 52464714191 for ; Sun, 3 Jun 2007 09:20:26 -0700 (PDT) Message-ID: <4918858.1180887626333.JavaMail.jira@brutus> Date: Sun, 3 Jun 2007 09:20:26 -0700 (PDT) From: "Musachy Barroso (JIRA)" To: issues@struts.apache.org Subject: [jira] Resolved: (WW-1951) Ajax submit button executeScripts="true" evaluates javascript before DOM elements are defined In-Reply-To: <11119570.1180340438629.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Musachy Barroso resolved WW-1951. --------------------------------- Resolution: Fixed > Ajax submit button executeScripts="true" evaluates javascript before DOM elements are defined > --------------------------------------------------------------------------------------------- > > Key: WW-1951 > URL: https://issues.apache.org/struts/browse/WW-1951 > Project: Struts 2 > Issue Type: Bug > Components: Views > Affects Versions: 2.0.6 > Reporter: Marshall Allen > Assignee: Musachy Barroso > Fix For: 2.1.0 > > > If you have an ajax submit button that replaces the div specified by the targets attribute with the result from an action as below; >
> > and the result returned by the action has some javascript to be executed that uses the document.getElementById() method as below; > > > then, the variable "element" will be equal to null. It seems like the javascript is being executed before the is available/defined in the DOM. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.