0

标题:

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
    <link rel="stylesheet" href="my.css" />
        <link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.css" /> 

    <style>
        /* App custom styles */
    </style>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
    </script>
    <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js">
    </script>
        <script type="text/javascript" src="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.js"></script><script>$.mobile.page.prototype.options.domCache = false;
$('.ui-page').live('pagehide',function(){ $(this).remove(); });</script>

当我使用:

            $(document).delegate('#btnComment', 'click', function() {
                $(this).simpledialog({
                    'mode':'blank',
                    'prompt':false,
                    'forceInput':true,
                    'cleanOnClose' : true, //!important..doesnt work
                    'useModal':true,
                    'fullHTML': ''                  })
            });

我在 fullHTML 中放入的内容都会被缓存。

当用户更改页面时,我重新打开对话框,内容没有更新,它仍然总是显示上一页的旧内容。

我已经尝试了无数的建议,这些建议已经在互联网上可用。没有选择,或者我做错了什么。我真的会就如何正确禁用缓存(我也使用 php 标头说不缓存)或如何正确处理此对话框提供一些建议!!!!!!!!!!!! 重新初始化它肯定会呈现一个新的不?cleanOnClose .. 即使点击取消也不能解决问题,那就是使用 close rel

                        +'<table style="width:100%"><tr><td style="width:50%"><a id="btnSubmitComment" rel="save" data-role="button" href="javascript:submitCommentForm();" id="simpleclose">Save</a></td><td style="width:50%">'
                        +'<a rel="close" data-role="button" href="#" id="simpleclose">Cancel</a></td></tr></table>'

这也无济于事

;$(this).simpledialog('refresh');
4

1 回答 1

0
$.mobile.showPageLoadingMsg();
window.location = uri;

<a data-ajax="false" href="javascript:gotouri('
于 2012-05-18T16:33:31.297 回答