XSL 主/细节

发布于 2025-01-01 03:54:30 字数 181 浏览 1 评论 0原文

我有一个 xsl 代码,我想在用户选择的每一行下方显示一个嵌套行。 假设我有一行显示 4 列,其中包含主要订单详细信息,我希望用户能够单击加号或 3 个点“...”来查看有关此订单的更多详细信息。 我已将所有信息加载到页面上的 xml 中,因此无需再次访问数据库以获取详细信息。

这可能吗? 示例将不胜感激。

谢谢。

I have a xsl code that I would like to show a nested row below each row that the user chooses.
Let's say I have a row that shows 4 columns with the main order details, I want the user to be able to click a plus or 3 dots "..." to see more details about this order.
I have all the information loaded already to the xml on the page so there is no need to go to the db again for the details.

Is this possible?
Example will be appreciated.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只是在用心讲痛 2025-01-08 03:54:30

一个简单的例子来展示它是如何在 javascript 中完成的! :) 在 IE 中单击“允许阻止的内容”

<html>
<head>
<script language="javascript" type="text/javascript">

var f=0;
function tnd()
{
if(f==1)
{
var str2="The images, quotes and everything else are intended to be maintained strictly confidential. Rightclick of the mouse has been disabled, as well as alt+printscreen and copy options do not work well in major browsers. design:aravind"
document.getElementById("t_n_d").innerHTML=str2;
f=0;
return 1;
}
if(f==0)
{
var str1="to read features, terms and conditions about this design."
document.getElementById("t_n_d").innerHTML=str1;
f=1;
return 1;
}
}
</script>
</head>
<body>
<span id='footertext'
style="font-size: 12px;"><span onmousedown='tnd();' style='color: red; text-decoration: underline; cursor: pointer;'>click here</span> : <span id='t_n_d'>to read features, terms and
conditions about this design.</span></span></td>
</tr>
</body>
</html>

复制“str2”中的 html 代码以加载表格..图片等..

(ps:将str2中的双引号替换为单引号)

还请注意,javascript是客户端脚本..过度使用会损害性能..这只是为了给您一个想法。

A crude example to show how its done in javascript! :) In IE click on "allow blocked contents"

<html>
<head>
<script language="javascript" type="text/javascript">

var f=0;
function tnd()
{
if(f==1)
{
var str2="The images, quotes and everything else are intended to be maintained strictly confidential. Rightclick of the mouse has been disabled, as well as alt+printscreen and copy options do not work well in major browsers. design:aravind"
document.getElementById("t_n_d").innerHTML=str2;
f=0;
return 1;
}
if(f==0)
{
var str1="to read features, terms and conditions about this design."
document.getElementById("t_n_d").innerHTML=str1;
f=1;
return 1;
}
}
</script>
</head>
<body>
<span id='footertext'
style="font-size: 12px;"><span onmousedown='tnd();' style='color: red; text-decoration: underline; cursor: pointer;'>click here</span> : <span id='t_n_d'>to read features, terms and
conditions about this design.</span></span></td>
</tr>
</body>
</html>

Copy the html code in "str2" to load tables .. pictures or etc ..

(ps: replace double-quotes with single-quotes in str2)

also please note that javascript is a client-side script .. it is harms performance on over usage .. this is just to give you an idea.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文