Well I checked out the samples in the struts 2 showcase and I get the same
problem.

It seems that when I submit a form using the enter key instead of clicking
the button my results displayed in a new page still. Again this only occurs
in IE 6, 7 (haven't tested with lower versions). I figured I could add a
javascript where I check if the user hits the enter key and then just submit
the form, but then I'll have to do that for every ajax form. 

Has anyone encountered this issue before or is there something wrong with my
code. It works fine though in firefox.


Grish wrote:
> 
> I'm not so sure if this is some bug, but I noticed an odd behaviour with
> my AJAX forms in IE.
> 
> For Firefox, if I hit the submit button for my form, my output is
> displayed in my DIV area as exepcted. Same for IE. But in IE, when I hit
> enter button instead of clicking on my submit button the whole jsp for
> that ajax call is displayed instead of returning the output in the DIV
> area. With Firefox there is no issue. I've noticed this in IE 6 and 7.
> 
> I'm actually modifying the Struts 2 + Spring 2 + JPA + AJAX tutorial.
> Here's my code:
> 
> <s:form action="searchAjax" namespace="/persons" validate="true">
>   <s:textfield id="search" label="%{getText('search.label')}"
> name="searchCriteria" />
>   <s:submit key="search.button" theme="ajax" targets="persons" />
> </s:form>
> 
> <s:url action="listAjax" namespace="/persons" id="descrsUrl"/>
> <div style="width: 300px;border-style: solid">
>   <s:div id="persons" theme="ajax" href="%{descrsUrl}"
> loadingText="Loading..." />
> </div>
> 
> I don't know if this is some bug or there's something wrong with my setup.
> Has anyone encountered a similar problem?
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--Issues-with-AJAX-in-IE-tf4210453.html#a12631120
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to