views:

324

answers:

1

I am developing a application in grails which uses lot of ajax.In one part I used the following code :

<iframe id="hidden-upload-frame" style="border:none;height:25px;width:100%;" onload="${remoteFunction(action: 'list', controller: 'file', update: [success: 'fileDomain', failure: 'fileDomain'])}">
</iframe>

<div id="fileDomain">

</div>

The above code works in google chrome browser perfectly and updates fileDomain div.But in IE and firefox it opens a new window and displays the content.And it is not updating fileDomain div.How to make this work on IE and mozilla.Do I need to add doctype tag in gsp page?

+1  A: 

I corrected the code in my answer. See http://stackoverflow.com/questions/613958/remote-file-upload-in-grails/614041#614041

Siegfried Puchbauer