the scraping the jsonfm solution actually worked pretty well (tested in Firefox and IE6-8 )
var doc = iframe.contentDocument ? iframe.contentDocument : frames[iframe.id].document; json_str = $j(doc.body).find('pre').html(); return window["eval"]("(" +json_str + ")");
The IEContentAnalyzer looks like an interesting solution as well... but this seems to work reasonably well for the time being.
--michael
Bryan Tong Minh wrote:
On Sun, Aug 16, 2009 at 12:11 AM, Roan Kattouwroan.kattouw@gmail.com wrote:
Better would be to run the output of the JSON module through IEContentAnalyzer and force application/json if the content is deemed dangerous.
On the server side? We do some stuff to stop IE from screwing up, but that's over the top IMO.
It's way more sane than requiring the user to do some kind of screen scraping. And after all, that is why Tim actually wrote the IEContentAnalyzer.
Bryan
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api