简体   繁体   中英

How to post data to an external webpage using In-app-browser plugin in ionic 4/5?

Is there any way to post a form with some inputs data to an external webpage using In-app-browser plugin in ionic 4/5?

example:

var formData = `<body >
                       <form id="mForm" action="url" method="post">
                          <input type="hidden" name="test" value="123">
                       </form>
               </body>`
var urlContents = "data:text/html;base64,"+ btoa(unescape(encodeURIComponent(formData )));
this.iab.create(urlContents );

The above code is not working.

Did you solve it? We solved it by triggering a submit button in your

formData

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM