Add a &ctype= param? Betacommand wrote: > 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 <[email protected] > <mailto:[email protected]>> 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 > [email protected] > <mailto:[email protected]> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mediawiki-api mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api >
-- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
