English 中文(简体)
在我的申请中如何适当使用厚度箱?
原标题:How to use properly use thickboxes in my application?

我对厚框有两点问题。 我正在开发一个网站,在主页上需要几个厚颜箱,以在不同时间展示。 如显示厚度箱,它将引发电传,并在厚度箱中显示反馈。

我决定沿用厚盒,以减少Ajax电话的数量。 种子简单不过了,但出现了两个问题。 首先是,在显示厚度箱时,将含有厚度的圆环。 箱子用硬性超文本取代超文本,以适当显示内容。 这是大韩民国的,但当我要求日本宇宙航空研究开发机构做出反应,更新厚颜色的箱子内的东西时,这是有问题的,而且我已经通过挑选其集装箱识别器进入厚框。 这一点再也没有。 当然,我可以具体说明答复的独一无二的识别特征,但我只是想给他们所有的“反应”类别,并根据含有DIV的外围选择。 $("#login_light Box > response”).html(ajax_response);?

我的另一个关切是,也许可以有更好的办法处理厚箱。 我是否应该要求美国宇宙航空研究开发机构获得厚框内容,然后在装货时让AAP打电话? 这似乎对我来说是一个很好的选择,但是,如果前一位开发商确定这种方式,我就希望获得一些意见。

问题回答

In order to open new Ajax content in an open Ajax ThickBox, its code must also contain the appropriate HTML (class="thickbox") to launch an Ajax ThickBox (see demo for example).

页: 1

HTH

Edit:

The Hey Tony, the above applicable to new content links within a Thick Box, not to open a Thick Box. 初步内容为:

<p>What is jquery? <a href="newTBcontent.html?height=200&amp;width=300" class="thickbox">Answer</a></p>

这样,内容就装入箱子。

回答你的问题,当我做以下事情时,这个问题非常好。 Maybe 我误解了你的问题?

第一部分:导言

<p><a href="atb.php?height=200&amp;width=300" class="thickbox">Open AJAX Thickbox</a></p>

方框内容 (File atb.php):

<script language="javascript" type="text/javascript">
jQuery(document).ready( function()
{
    jQuery.ajax(
    {
        type: "GET",
        url: "atbd.php",
        success: function(rsp)
        {
            jQuery( ".response" ).html(rsp);
        }
    });
});
</script>
<div id="container">
    <div class="response">RSP 1</div>
    <div class="response">RSP 2</div>
    <div class="response">RSP 3</div>
    <div class="response">RSP 4</div>
</div>

文件:

<?php
echo date( Y-m-d H:i:s , time());
?>




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

热门标签