Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 11215 invoked from network); 30 Mar 2009 14:27:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2009 14:27:53 -0000 Received: (qmail 88235 invoked by uid 500); 30 Mar 2009 14:27:50 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 88195 invoked by uid 500); 30 Mar 2009 14:27:50 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 88185 invoked by uid 99); 30 Mar 2009 14:27:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 14:27:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tedymc@gmail.com designates 209.85.220.163 as permitted sender) Received: from [209.85.220.163] (HELO mail-fx0-f163.google.com) (209.85.220.163) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 14:27:41 +0000 Received: by fxm7 with SMTP id 7so2391652fxm.11 for ; Mon, 30 Mar 2009 07:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=UUI3nw7XIHzNi9ysh7w0QiNMgB/hQN8W/2TyXK+S5no=; b=qaGYMZCRboQco3m/m0F150pzvNIbaC603sLBhNFLmAb/6qn4MFPjT29mF5w3sDAJDs GN6B3C5wmVJkWGS1EuvNn+9tAqaGqlW1l9RVAQYvl/Rv+B7C6tlTJ2d3mOjjJeMNfoPg PtbtcLV137kJN433hevdr9XBcrSla2mhiFToo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Os33wYNYVW2fDCSJZ86Lg1zC5bIFMWqcj8SJXXpAi4Ec9R4Ca4ERmD3TObzY9goBzq iU+VKF58QGV3EN35zBNnN2yJGe0PLF76xSO4QRT+XcZ5YGY0QcElXHgw4FI+qEMbiY8P RGYy8yJmgUEJ4Mvg6ru1HG8pEMMVgYjU9WSu8= MIME-Version: 1.0 Received: by 10.239.136.14 with SMTP id f14mr104391hbf.53.1238423240929; Mon, 30 Mar 2009 07:27:20 -0700 (PDT) Date: Mon, 30 Mar 2009 16:27:20 +0200 Message-ID: <348581cd0903300727x1d7ef4d8ic9919e8cca0b09a@mail.gmail.com> Subject: executing inline scripts from ajax responses (dojo 0.4) From: Tedy Marcos Colombini To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=001485f46efe5b714c046656e12d X-Virus-Checked: Checked by ClamAV on apache.org --001485f46efe5b714c046656e12d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi there, After being able to submit an ajax form request using javascript, I am stuck in the second (and last) problem. The response contains an inline script which I wanna execute when the it is rendered. I am using Struts 2.0.11 and Dojo 0.4. I did some research but everything I found is incomplete. This is the code. It works, only the alert from the response doesn't pop out. So what I should do to make this script run? <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %>
This is the response from Test.action: Content Thank you for your help, -- Tedy Marcos Colombini --001485f46efe5b714c046656e12d--