2009/8/15 Michael Dale mdale@wikimedia.org:
Because we need to upload a file. Only firefox 3.5 support XHR file uploads. The rest of the browsers have to target an iframe to not cause the page to refresh.
Gah, yes, of course, a submit refreshes the page ^^
So you're putting a form in an iframe and submitting that? Then you could consider using jsonfm instead and screenscrape it (getting the contents of the <pre> and stripping all tags from it should work), which is ugly as hell but will at least give you a nice and harmless text/html.
Roan Kattouw (Catrope)