You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marc Eckart <ma...@googlemail.com> on 2008/02/06 16:08:36 UTC

Problem s:select in IE and Firefox

Hi,

I have a <s:select> tag which behaves different in IE 6.0 and firefox. In
Firefox the underlying property in my struts action is filled in IE not.

This is my code?

<s:form id="searchAdvisorIdsForm" action="searchAdvisorIds" method="post" >

.....

<s:select name="branchSearch"
          headerKey=""
          headerValue="-- Bitte wählen --"
          list="branchNameList"
          cssClass="medium"
      />

....

    <s:submit theme="ajax" targets="organizersearch" key="button.search"
value="Suchen" cssClass="pushbutton" />

....

</s:form>

I have no idea why it works in Firefox and not in IE. Because there is no
JavaScript involved (or am I wrong).

Best regards.

Marc

Re: Problem s:select in IE and Firefox

Posted by Martin Gainty <mg...@hotmail.com>.
yep..the showLoadingText param is passed to the ajax-common.ftl
specifically..
 <#if parameters.showLoadingText?exists>
    showLoading="${parameters.showLoadingText?string?html}"<#rt/>
  </#if>

.also be sure to null out loadingText..

M--
----- Original Message -----
From: "Jeromy Evans" <je...@blueskyminds.com.au>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Wednesday, February 06, 2008 6:41 PM
Subject: Re: Problem s:select in IE and Firefox


> There's javascript involved as you're using an ajax submit.
>
> When your form is posted the submit button shows loading text in your
> target div.  In IE, if the target div contains the form you're posting,
> it overwrites the form in the DOM prior to posting and the XHR request
> fails.  It's a problem related to the incorrect/inconsistent ordering of
> events in IE.
>
> Add the showLoadingText="false" attribute to your ajax submit button(s)
> and it'll be okay.
>
> regards,
> Jeromy evans
>
> Marc Eckart wrote:
> > Hi,
> >
> > I have a <s:select> tag which behaves different in IE 6.0 and firefox.
In
> > Firefox the underlying property in my struts action is filled in IE not.
> >
> > This is my code?
> >
> > <s:form id="searchAdvisorIdsForm" action="searchAdvisorIds"
method="post" >
> >
> > .....
> >
> > <s:select name="branchSearch"
> >           headerKey=""
> >           headerValue="-- Bitte wählen --"
> >           list="branchNameList"
> >           cssClass="medium"
> >       />
> >
> > ....
> >
> >     <s:submit theme="ajax" targets="organizersearch" key="button.search"
> > value="Suchen" cssClass="pushbutton" />
> >
> > ....
> >
> > </s:form>
> >
> > I have no idea why it works in Firefox and not in IE. Because there is
no
> > JavaScript involved (or am I wrong).
> >
> > Best regards.
> >
> > Marc
> >
> >
> > ------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date:
6/02/2008 8:14 PM
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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


Re: Problem s:select in IE and Firefox

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
There's javascript involved as you're using an ajax submit.

When your form is posted the submit button shows loading text in your 
target div.  In IE, if the target div contains the form you're posting, 
it overwrites the form in the DOM prior to posting and the XHR request 
fails.  It's a problem related to the incorrect/inconsistent ordering of 
events in IE.

Add the showLoadingText="false" attribute to your ajax submit button(s) 
and it'll be okay.

regards,
Jeromy evans

Marc Eckart wrote:
> Hi,
>
> I have a <s:select> tag which behaves different in IE 6.0 and firefox. In
> Firefox the underlying property in my struts action is filled in IE not.
>
> This is my code?
>
> <s:form id="searchAdvisorIdsForm" action="searchAdvisorIds" method="post" >
>
> .....
>
> <s:select name="branchSearch"
>           headerKey=""
>           headerValue="-- Bitte wählen --"
>           list="branchNameList"
>           cssClass="medium"
>       />
>
> ....
>
>     <s:submit theme="ajax" targets="organizersearch" key="button.search"
> value="Suchen" cssClass="pushbutton" />
>
> ....
>
> </s:form>
>
> I have no idea why it works in Firefox and not in IE. Because there is no
> JavaScript involved (or am I wrong).
>
> Best regards.
>
> Marc
>
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date: 6/02/2008 8:14 PM
>   


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