This is the generated code:

<td colspan="2"><div align="right">    <input type="submit"
dojoType="struts:Bind" event="onclick"     value="Save"
        id="member_login_button_save"    label="Save"       name="button.save"
 targets="RightPaneWindow"  />

</div>


The div is on a different IFrame.

Harring

On 4/24/07, Harring Figueiredo <[EMAIL PROTECTED]> wrote:


Musachy,

Thanks for the reply.

 I am using only one div with the id.

I now tried something else while waiting for the reply:

<s:set name"frame"  value="LoginWindow"/>
<s:if test="hasActionErrors">
<s:set name"frame"  value="RightPaneWindow"/>
</s:if>

I then tried to replace the "traget" on the form itself (since it works on
the form) with:
<s:form action="member_login.action" theme="ajax" target="#frame"
validate="true">
and also tried with
<s:form action="member_login.action" theme="ajax" target="<s:param
name='value' value='#frame' " validate="true">

Howver I cannot get the rigyht syntax to substitue the correct string.

I think that it would work both ways.. But I would prefer to get the
ajax/targets working.

Harring

On 4/24/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
> After the ajax request completes, for each target in the target list
> this
> will run:
>
> dojo.byId("id").innerHTML = text;
>
> try updating the div content like that, and see what happens. This is a
> dumb
> question, but are you using the same id for more than one div?
>
> musachy
>
> On 4/24/07, Harring Figueiredo <[EMAIL PROTECTED]> wrote:
> >
> > Folks,
> >
> > I have a form with a submit button as follows
> >
> > <s:form action="member_login.action" theme="ajax" validate="true">
> >     <s:textfield key="username" />
> >     <s:password key="password" showPassword="false"/>
> >     <s:submit key="button.save" theme="ajax" targets="RightPaneWindow"
> />
> >     <s:reset key=" button.reset"/>
> > </s:form>
> >
> > On the page itself, I have an IFrame with the div="RightPaneWindow";
> > however, the updated  div is the div in which the form is in.
> >
> > Any idea?
> >
> > Thank you in advance,
> >
> > Harring Figueiredo
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>



Reply via email to