So request the API query in a different format that is
text. jsonfm is
a good example
On Sat, Aug 15, 2009 at 6:24 AM, Michael Dale <mdale(a)wikimedia.org
<mailto:mdale@wikimedia.org>> wrote:
Would anyone object to changing the output mime type of
ApiFormatJson.php from "application/json" to 'text/javascript' ?
committed in r55084
This is needed for iframe target background upload tasks. ie you
upload
a file and then you want to take the name of the file you uploaded and
use that to insert the image into the edit window. With mime as
"application/json" the browser promts the user to "save" the
file
and we
can't eval the document text result in the iframe.
--michael
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
<mailto:Mediawiki-api@lists.wikimedia.org>
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
------------------------------------------------------------------------
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api