struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergio Sánchez González" <sergi...@gmail.com>
Subject Re: Redirecting action with ajax enabled
Date Tue, 04 Nov 2008 11:22:53 GMT
I meant just changing the submit to <s:submit/>

And losing ajax...


2008/11/4 Sergio Sánchez González <sergiosg@gmail.com>:
> I've found dojo fails when I retreive a page using ajax.
>
> For example, a simple login:
>
>    <div id="myLogin">
>      <s:form action="login"  validate="true">
>
>          <s:textfield name="username" label="Login name"/>
>          <s:password name="password" label="Password"/>
>          <s:combobox label="Companies" name="company" headerValue="--
> Please Select --" headerKey="1" list="companies" />
>          <s:submit targets="myLogin" theme="ajax" />
>
>      </s:form>
>    </div>
>
> The page retreived uses dojo javascript but doesn't work. If I just
> change the submit to: <s:submit targets="myLogin"/> then it works. But
> of course, I lose the retreived page javascript.
>
> Any idea how to keep the javascript getting the page by ajax?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message