我正在使用grails来开发我的应用程序和'原型'库来做一个AJAX调用,其中 我在IE上遇到问题。在所有其他浏览器中,我的应用程序工作正常 这里是我的代码:grails IE ajax问题
<html>
<g:form action="ajaxcall" id="recform">
<g:select id="aseselect" name="art" from="${dropdownList}" optionKey="id" optionValue="value" noSelection="['':'- Select -']"/>
<g:submitToRemote action="ajaxcall" value="submit" update="updatediv" />
</g:form>
<div id="updatediv"></div>
</div>
</html>
这是我的控制器代码:
def ajaxcall = {
String toRender="";
//code that makes db call and adds html into the toRender string
render toRender;
}
的“toRender字符串中包含这使得在Firefox,Chrome和Safari,但不是IE的罚款无序列表的HTML这似乎没有得到整个列表有时或获得一些空的列表时间。这种行为完全不可预测,取决于IE的情绪。
有没有人遇到过这个问题?我该如何解决这个问题?
感谢
Possigle重复http://stackoverflow.com/questions/5997857/grails-best-way-to-send-cache-headers-with-every-ajax-call –