English 中文(简体)
j Query UI dialog form, not sent disabilities
原标题:jQuery UI dialog form, not sending correct variable

I m 装上使用jQuery的客户信息页。 客户名单与以下链接:

<a href="#" onclick="load_customer(<?php echo $c->id; ?>);return false;">View</a>

由此产生了这一职能:

function load_customer(id) {
  $("#dashboard").load( get_info/  + id);
}

这完全可行。 在Im装货页上,我有一个支离破碎的钥匙式方言表来补充新的信息。

<div id="addinfo">
  <form><input type="hidden" name="customer_id" value="<?php echo $c->id; ?>" /></form>
</div>

My javascript:

  $("#addinfobutton").click(function(){
            $("#addinfo").dialog("open");
            return false;
   });
   $("#addinfo").dialog({
            autoOpen:false,
            width:400,
            height:550,
            modal: true
   });

当你首次选择客户时,它正确地把隐蔽的现场掩住起来,但即使在选择其他客户之后,也保持同一。

我认为,通过装上新的客户网页,这一表格也会重新打造......但显然储存/存放在某个地方。 如果我重复该页其他任何地方的身份证,那就正确显示......不是在“信息”四处。

任何帮助/建议都会受到赞赏。 感谢!

最佳回答

JQuery dialog在你开放时将内容重新上载。 我倾向于用美国宇宙航空研究开发机构电话取代方言(或 t中的某些数值)在方言开启时的iv。

如果你想要一个隐蔽的领域,那么我将不把它放在博客中,那么你就应当能够从方言之外收回价值。

问题回答

在经过一些更多的研究之后,迪亚洛在被叫作后,似乎被ched住客户。 为此,我刚刚增加了客户。 Id to the end of the popup div s ID name... so each soil page will have a particular dialog ID.

然而,如果每一方方方log,如果你开了几处方,就会失去业绩? 如果没有一整整页的复读,你怎么能清楚这些?

页: 1 (四) 更新后,它应当抓住新的内容。

$("#addinfobutton").click(function(){
    openDialog( #addinfo );
    return false;
});
function openDialog(elm) {
    $(elm).dialog({
        autoOpen:true,
        width:400,
        height:550,
        modal: true,
        close: function() {
            $(this).dialog( destroy );
        }
    });
}




相关问题
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: &...

热门标签