English 中文(简体)
j 质量证明式方言箱,然后直接用户使用页码。
原标题:jQuery confirmation modal dialog box, then direct user to page
  • 时间:2012-01-12 22:11:51
  •  标签:
  • jquery

我在我们的网站上有一个把成员引向健康工具的链接。

我们将在90天内逐步淘汰这一工具,成员必须出口或打印他们掌握的所有数据,因为新系统无法整合数据。

我想做的是用一个 j子,说:

“我们正于2012年4月15日逐步取消这一工具。 请出口和(或)印刷你希望保留的数据,因为数据不再提供。

然后将有一个“科索沃”纽芬兰语,并将用户引向健康工具。

我安装并投入运作。

我看到了“ j宝”的docs,看到了示范方言,并在这个网站上看到了一个例子。

我把以下文字用在头:

<head>
<script src="/js/jquery-1.3.2.js" type="text/javascript"></script>
<script src="/js/ui.core.js" type="text/javascript"></script>
<script src="/js/ui.dialog.js" type="text/javascript"></script>
</head>

页: 1

<script type="text/javascript">
  $(document).ready(function() {
    $("#dialog").dialog({
      autoOpen: false,
      modal: true
    });
  });

  $(".confirmLink").click(function(e) {
    e.preventDefault();
    var targetUrl = $(this).attr("href");

    $("#dialog").dialog({
      buttons : {
        "Confirm" : function() {
          window.location.href = targetUrl;
        },
        "Cancel" : function() {
          $(this).dialog("close");
        }
      }
    });

    $("#dialog").dialog("open");
  });
</script>

<div id="dialog" title="Confirmation Required">
Please confirm.
</div>

<a class="confirmLink" href="/health-tool.aspx">Link to Health Tool</a>

However, I get an error that says: "Object doesnt support this property or method" and references this line: $(document).ready(function() {

非常感谢你的协助。

问题回答

用<代码>j替换第1美元标识 Query。 还肯定贵图书馆装满负荷。





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签