Login Register

Problems in IE when using Ajax / Struts2

Hi,

I'm working on a project using Struts2 and this comes with Dojo 0.4.0 built in. I'm having problems using Ajax to check stock levels. It works fine in Firefox, but in IE, I just get the messgage: "Couldn't load content: Unknown runtime error." This message is shown in the div element that should be updating with Ajax content.

We use the struts s:head tag to initialise dojo, and the struts ss:div tag to create an element that is updated by ajax. We don't actually write any script to get this working, it all seems to be handled automatically, after we create a url via the struts tag again that is used for the ajax request:

<ss:url action="StockCheck" id="stockCheckUrl_${product.productCode}">
<ss:param id="productId" name="productId" value="${product.productCode}"/>
</ss:url>
<ss:div id="stockCheck${product.productCode}" theme="ajax" href="%{stockCheckUrl_${product.productCode}}" loadingText="Checking Stock..."/>

The loading text is replaced by the content of the url when successful, but in IE it seems to fall over and just display the error message istead.

initially, I thought it was something to do with the custom dojo profile we created, but after reverting that to no avail, i fear it's something different, but finding out what is proving to be difficult. If anyone can help / present any ideas, I would be very grateful.

Many thanks.

If anyone is interested,

If anyone is interested, this is now fixed. The culprit was invalid markup of all things!