you can send your action to javascript function
and use dojo to talk  to the XMLHttpRequest object
parse the XML response
and then set innerHtml of the div tag to the parsed_response

<script language="JavaScript">


<!-- Begin


function doit() 


{

var xmlhttp=dojo.hostenv.getXmlhttpObject()
var response= xmlhttp.responseXML;
var parsed_response=SomeXMLParser(response);
document.getElementByTagId("div").innerHtml = parsed_response;
-->
</script>

yes/no?
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Mon, 18 Aug 2008 21:18:44 +1000
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Re: struts2: simple ajax form - returns value to a new page (not to 
> a DIV)
> 
> MyAshok wrote:
> > I do have the same issue. on click of submit, the loadingtext  is displaying
> > but the result in a new page as i am redirect to a action. 
> >
> > Any solutions? please asap.
> >
> > <action name="activateSubscriber" class="subscriberAction"
> >                     method="activateSubscriber">
> >                     <result name="success" 
> > type="redirect-action">viewPartners</result>
> >             </action>
> > Waiting for reply......
> >
> >   
> 
> If it's performing a full-page redirect, then your form did a plain old 
> post/get to the action, not ajax.
> You will need to isolate why the request wasn't sent via XHR.  That 
> means it's a client-side problem, not a struts.xml problem.
> 
> As a guess, without any context, if you've only tested in IE so far, 
> turn off the loadingText message. 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_________________________________________________________________
Get ideas on sharing photos from people like you.  Find new ways to share.
http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008

Reply via email to