0

当前调度程序与谷歌日历一起使用。但对手机不友好。

<!DOCTYPE html>
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
        <title></title>
    </head>
    <script src="./codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="./codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">
        <style type="text/css" media="screen">
    html, body{
        margin:0px;
        padding:0px;
        height:100%;
        overflow:hidden;
    }   
</style>
        <script type="text/javascript" charset="utf-8">
    function init() {
        scheduler.config.xml_date="%Y-%m-%d %H:%i";
        scheduler.init('scheduler_here',new Date(2013, 7, 5),"week");
        scheduler.load("./data.php", "json");

        var dp =  new dataProcessor("./data.php");
        dp.init(scheduler);

        dp.setTransactionMode("POST", false);
    }
</script>
        <body onload="init();">
            <div id="scheduler_here"></div>
        </div>
    </body>

当前调度程序是移动友好的,但不会从谷歌日历获取事件。

  <!DOCTYPE html>
  <html>

  <head>
    <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0,     user-scalable = no">
    <script src="cal/webix.js" type="text/javascript"></script>
    <script src="cal/scheduler/scheduler.js" type="text/javascript">    </script>
    <link rel="stylesheet" type="text/css" href="cal/skins/touch.css">
    <link rel="stylesheet" type="text/css"     href="cal/scheduler/scheduler.css">
    <title></title>
    <script type="text/javascript" charset="utf-8">
    webix.ready(function() {
        scheduler.config.hour_date = "%g:%i%a"; 
        scheduler.config.readonly = true;
        webix.ui.fullScreen();
        webix.ui({
            view: "scheduler",
            id: "scheduler"
        });
        $$("scheduler").load("data.json", "json");
    });
    </script>
  </head>
<body>
    <div id="scheduler"></div>
  </body>
</html>

似乎无法弄清楚如何合并它们或创建一个新的代码,它的 CSS 是移动友好的,但仍然从谷歌日历中获取数据。

4

1 回答 1

0

在json数据源的情况下,桌面调度器和移动调度器必须能够共享同一个数据源,所以像next这样的代码必须工作

$$("scheduler").load("data.php", "json");
于 2015-06-18T13:29:53.497 回答