dsjxgu4759 2016-09-15 16:49
浏览 67

在Cordova Inappbrowser中打开PHP动态页面响应

I want to open the response that I get from my PHP server in the In App Browser in a new window.

I am creating an app using Ionic and using PHP as a back end. I have full control of the php server.

I am making the ajax call like so:

$(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);
                                       }
                                       });
                                });
          });

Now I want to open the output in a new inappbrowser windows.

The output i am throwing out is as follows

<?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);
?>

It is a dynamically generated php page. An not an url.

How can I show this page in the inappbrowser

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 下图接收小电路,谁知道原理
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
    • ¥15 ETLCloud 处理json多层级问题
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭
    • ¥15 2020长安杯与连接网探