Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/409.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 带页脚栏的jqmobile 1.4面板_Javascript - Fatal编程技术网

Javascript 带页脚栏的jqmobile 1.4面板

Javascript 带页脚栏的jqmobile 1.4面板,javascript,Javascript,我使用以下代码在FooterBar中打开一个面板。5次后,打开面板 什么也没发生。页脚栏不是clickabel。面板不能再靠近了 我能做什么 请告知,谢谢 JavaScript $("#FooterBar_Stundenerfassung_0").on("click", function () { // text you get from Ajax var content = "<h2>Hilfe</h2><ul><li>Probi

我使用以下代码在FooterBar中打开一个面板。5次后,打开面板 什么也没发生。页脚栏不是clickabel。面板不能再靠近了

我能做什么

请告知,谢谢

JavaScript

$("#FooterBar_Stundenerfassung_0").on("click", function () {
    // text you get from Ajax
    var content = "<h2>Hilfe</h2><ul><li>Probieren geht &uuml;ber Studieren</li><li>Liebe geht &uuml;ber Triebe</li><li>Tante f&auml;llt &uuml;ber Kante</li></ul>";

    // close button
    var closeBtn = $('<a href="#" data-rel="close" class="ui-btn ui-btn-inline ui-shadow ui-corner-all ui-btn-a ui-icon-delete ui-btn-icon-left">zurück</a>');

    // Popup body - set width is optional - append button and Ajax msg
    var popup = $("<div/>", {
        "data-role": "panel"

    }).append(content).append(closeBtn);

    // Append it to active page
    $.mobile.pageContainer.append(popup);

    // Create it and add listener to delete it once it's closed
    // open it
    $("[data-role=panel]").panel({
        position: "left",
        theme: "a",
        display: "overlay",
        animate: true,
        dismissible: "false",
        swipeClose: "false",
        beforeposition: function () {
            $.mobile.pageContainer.pagecontainer("getActivePage")

        },
        afterclose: function () {
            $(this).remove();

        },
        afteropen: function () {
            /* do something */
        }

    }).panel("open");
});
$(“#FooterBar_Stundenerfassung_0”)。在(“单击”,函数(){
//从Ajax获得的文本
var content=“Hilfe
  • Probieren gehtü;ber Studieren
  • Liebe gehtü;ber Triebe
  • Tante fä;lltü;ber Kante
  • ”; //关闭按钮 var closeBtn=$(''); //弹出正文-设置宽度是可选的-附加按钮和Ajax消息 var popup=$(“”{ “数据角色”:“面板” }).append(内容).append(closeBtn); //将其附加到活动页面 $.mobile.pageContainer.append(弹出窗口); //创建它并添加侦听器,以便在关闭后将其删除 //打开它 $(“[data role=panel]”。panel({ 位置:“左”, 主题:“a”, 显示:“覆盖”, 动画:对, 可驳回:“虚假”, swipeClose:“假”, beforeposition:函数(){ $.mobile.pageContainer.pageContainer(“getActivePage”) }, 后关闭:功能(){ $(this.remove(); }, 后开式:功能(){ /*做点什么*/ } }).专家组(“公开”); });

结束JavaScript

HTML包含在var内容和var closeBtn中。我没有带Div的HTML

$("#FooterBar_Stundenerfassung_0").on("click", function () {
    // text you get from Ajax
    var content = "<h2>Hilfe</h2><ul><li>Probieren geht &uuml;ber Studieren</li><li>Liebe geht &uuml;ber Triebe</li><li>Tante f&auml;llt &uuml;ber Kante</li></ul>";

    // close button
    var closeBtn = $('<a href="#" data-rel="close" class="ui-btn ui-btn-inline ui-shadow ui-corner-all ui-btn-a ui-icon-delete ui-btn-icon-left">zurück</a>');

    // Popup body - set width is optional - append button and Ajax msg
    var popup = $("<div/>", {
        "data-role": "panel"

    }).append(content).append(closeBtn);

    // Append it to active page
    $.mobile.pageContainer.append(popup);

    // Create it and add listener to delete it once it's closed
    // open it
    $("[data-role=panel]").panel({
        position: "left",
        theme: "a",
        display: "overlay",
        animate: true,
        dismissible: "false",
        swipeClose: "false",
        beforeposition: function () {
            $.mobile.pageContainer.pagecontainer("getActivePage")

        },
        afterclose: function () {
            $(this).remove();

        },
        afteropen: function () {
            /* do something */
        }

    }).panel("open");
});
我有一个弹出式示例中的示例,它运行良好


brgds-Ramon

如果您至少发布了一部分HTML,那就太好了。