【发布时间】:2016-03-17 14:14:16
【问题描述】:
请帮助我在加载此html 后如何调用提交操作。
WebView webView = (WebView) findViewById(R.id.webview);
String formData = "<!DOCTYPE html>\n" +
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" +
"<head>\n" +
"<title>SSO OutBound Settings</title>" +
"</head>\n" +
"<body>" +
"<form name='frmMain' id=\"frmMain\" runat='server' method='POST'" +
"action='" + ---data--- + "'>" +
"<input type='hidden' name='" + ---data--- + "'" +
"value='" + ---data--- + "'/>" +
"<input type='hidden' runat='server' name='" + ---data--- + "' " +
"value='" + ---data--- + "'/>" +
"</form>" +
"</body>\n" +
"</html>";
webView.loadData(formData, "text/html", "UTF-8");
【问题讨论】:
-
您想立即提交表单,无需任何用户交互?
-
是的,应该不会发生任何用户交互。
-
@DineshKumar 如果你得到解决方案,请告诉我我也有同样的问题