Seeing this behavior in IE7.

The div is very plain:
<div id="shippingDiv" style="display: none;"></div>

I use other Javascript to show/hide shippingDiv as needed.

Mitch

Martin Gainty wrote:
> possibly XMLHttpRequest bug?
> >> when <s:head theme="ajax">
> >> Underneath the UI layer you will need to match Struts (version 2)
> >> Dojo-plugin to Dojo (v 1.2) and then Dojo support for the ActiveX control
> >> performing the actual transport work IE uses XMLHttpRequest (version 2.x)
> >> http://api.dojotoolkit.org/jsdoc/dojo/1.2/dojo._xhrObj/.switch/1.1. 
> >> <http://api.dojotoolkit.org/jsdoc/dojo/1.2/dojo._xhrObj/.switch/1.1.1>
> /*
> xmlhttprequest.js
>
> HISTORY
> 2006-05-17 BB  Created.  Used to create XMLHTTPRequest object
> DESCRIPTION JS script to launch create correct version XMLHttpRequest based 
> on JS version
> COMMENTS
> INPUT
> OUTPUT
> XFA
> EXCEPTIONS
> ------------------------------------------------------------------------- */
>   /* sets up XMLHTTPREquest object */
>   function getHTTPObject()
>   {
>     var xmlhttp;
>               
>       /*...@cc_on 
>       @if (@_jscript_version >= 5)
>       try
>       {
>       alert('we have jscript version 5 about to launch Msxml2.XMLHTTP');
>       xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
>     }
>     catch (e)
>     {
>       try
>       {
>         alert('we have jscript < 5 about to launch Microsoft.XMLHTTP');
>         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
>       }
>       catch (E)
>       {
>         xmlhttp = false;
>       }
>     }
>       @else
>         xmlhttp = false;
>       @end @*/
>   
>       if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
>       {
>       try
>       {
>         xmlhttp = new XMLHttpRequest();
>       }
>       catch (e)
>       {
>         xmlhttp = false;
>       }
>       }
>       return xmlhttp;
> }
> hard to see if there is anything wrong with the shippingDiv tag?
> version of IE you are using would be helpful...
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
> Diese Nachricht dient lediglich dem Austausch von Informationen und
> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den
> Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>
> > Date: Fri, 28 Aug 2009 13:13:43 -0500
> > From: mi...@claborn.net
> > To: user@struts.apache.org
> > Subject: ajax submit and IE
> >
> > Using an ajax/dojo submit tag to do an ajax form submission. Code
> > below. theme = css_xhtml. In FireFox it works like I want - the output
> > from the form post goes inside the target div. In IE, if you press
> > Enter in the text field, it submits the form and the output replaces the
> > entire page, instead of only the target div. If you click the button in
> > IE it works as it should.
> >
> > Any ideas?
> >
> >
> > <s:form action="shippingCostsAjax" method="post" id="shipzipform"
> > name="shipzipform">
> > <s:textfield name="shipzip" id="shipzip" size="8" label="Enter your
> > ship-to zipcode to view shipping costs" labelposition="left" />
> > <sx:submit name="ajaxShippingSubmit" id="ajaxShippingSubmit"
> > targets="shippingDiv" value="Get Shipping Costs" formId="shipzipform"
> > align="left" ajaxAfterValidation="true" executeScripts="true"
> > separateScripts="true" />
> > </s:form>
> >
> >
> > Mitch
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
>
> ------------------------------------------------------------------------
> Hotmail® is up to 70% faster. Now good news travels really fast. Try
> it now.
> <http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009>

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

Reply via email to