Thread:Extension talk:MobileFrontend/How to let mobileview api support form post/reply (2)

What I developed is a native android app based on PhoneGap. Inside the app, there is a mobile browser view. It sends out the following request using mobileview api. 'https://mywebsite/wiki/api.php?format=json&action=mobileview&page=' + encodeURIComponent(this.title) + '&redirects=1&prop=sections|text&sections=all&sectionprop=level|line&noheadings=true'; The response from the wiki server is in jason format, which can be further analyzed and shown on the embedded browser view. $.each( rawJSON.mobileview.sections, function( index, section ) {   xxxxx # append the (sub)sections to mobile view } My code is assumed to analyze only the response in jason format. However, the response of form submission is in html format, because the formAction does not use the mobileview api. $formAction = $wgScript.'?title='.$wcl->getNsText(NS_SPECIAL).':ProcessFormAction'; As for me, it would be the best, if all the responses from the server are in the uniform jason format. I wonder whether there is a method for me to revise the formAction to use the mobileview api and get a jason response.