I'd be immediately suspicious of your manual form submission; as a guess I'd say that bypasses the normal form submission process, making it a non-XHR request.
Off-the-cuff guess, though. Dave --- On Mon, 8/18/08, MyAshok <[EMAIL PROTECTED]> wrote: > From: MyAshok <[EMAIL PROTECTED]> > Subject: Re: struts2: simple ajax form - returns value to a new page (not to > a DIV) > To: user@struts.apache.org > Date: Monday, August 18, 2008, 8:08 AM > Thanks Evans, > > In IE, instead of loading text it shows [object error]. But > it redirects to > a new page. > > In Firefox, neither showing loading text nor object error. > It redirects to a > new page. > > > <s:submit theme="ajax" > value="Activate" id="activate" > showLoadingText="false" > targets="targetid" > onclick="javascript:activatePartnerSubscriber();" > /> > > script > ------ > > function activatePartnerSubscriber() { > > subCount = > document.getElementById('subCount').value; > > var count = selectedCheckBoxCount(); > if (count >= 1) { > > document.getElementById('SubscriberForm').action > ='/myproj/activate.action'; > > document.getElementById('SubscriberForm').submit(); > } else { > alert("Please select atleast one Subscriber"); > } > } > > I am unable to find where the ajax request is missing. > Please Give some > ideas to proceed. > > with hope, > Ashok > > > > > Jeromy Evans - Blue Sky Minds wrote: > > > > 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] > > > > > > > > -- > View this message in context: > http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p19030271.html > Sent from the Struts - User mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]