XSL主/细节

时间:2012-01-29 09:09:22

标签: xslt asp-classic

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

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

感谢。

1 个答案:

答案 0 :(得分:0)

一个粗略的例子来说明它是如何在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是一个客户端脚本..它会因过度使用而损害性能......这只是为了给你一个想法。