我想在新窗口中打开我在PHP应用程序中从我的PHP服务器获得的响应。
我正在使用Ionic创建一个应用程序并使用PHP作为后端。我完全控制了php服务器。
我正在进行ajax调用:
$(document).ready( function() {
$("#paybutton").click(function() {
var params = "projectpaymentoption=1197&id=",
usernamepay = window.localStorage.getItem("username"),
paymenturl = params + usernamepay;
$.ajax({
type: 'POST',
url: 'http://www.blabla.com/encode.php',
data: $.param({"paymenturl": paymenturl}),
success: function(output) {
window.open('output','_blank','location=no','closebuttoncaption=Zurück');
console.log(result);
}
});
});
});
现在我想在新的inappbrowser窗口中打开输出。
我抛出的输出如下
<?php
ob_start();
include_once('includes/headers.php');
require_once('includes/connection.php');
require_once('includes/functions.php');
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<?php
include($filePath);
?>
这是一个动态生成的php页面。不是网址。
如何在inappbrowser中显示此页面