displaytag想添加一个超联接,新弹出一个窗口

displaytag问题:高手请进
作者:dl_zhaoxi    2005年09月30日 15:47      
相关讨论:

在<display:column>中我想添加一个超联接,新弹出一个窗口,请问如何实现?还有一个问题,如何在javascript 中取得table中的值?谢谢 <script type="text/javascript"><!-- document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本篇文章来自<A href="http://www.soidc.net" mce_href="http://www.soidc.net">IDC专家网</a> 原文链接:"+location.href; clipboardData.setData("text", text); } }, 100 ) } // --></script>

以下为回复:

<!-- 回复列表-->

 1楼 2005-09-30 16:56 onray  

<display:table   id="mylist"   border="0"   cellspacing="0"   cellpadding="0"   width="100%"   name="sessionScope.listnew"   。。。>  
  <display:column     Key="aaa"   align="left">  
    <a   href="#"   onclick="function(<bean:write   name="mylist"   property="pro"/>);"></a></display:column>    
  在function   中写弹出窗口JS   <bean:write   name="mylist"   property="rfqid"/>为表中跌带字段值

 2楼 2005-09-30 18:28 amu0528  

display   有个属性能设置   具体你找一下描述文件,写得很清楚的

 3楼 2005-09-30 18:31 amu0528  

给你找到了,看看描述吧:  
  <attribut e>  
                          <name>href</name>  
                          <required>false</required>  
                          <rtexprvalue>true</rtexprvalue>  
                          <description>  
                                  The   base   URL   used   to   construct   the   dynamic   link.   If   this   attribute   is   provided,   then   the   data   that   is  
                                  shown   for   this   column   is   wrapped   inside   a   &lt;a   href&gt;   tag   with   the   url   provided   through   this  
                                  attribute.   Typically   you   would   use   this   attribute   along   with   one   of   the   struts-like   param   attributes  
                                  (param*)   to   create   a   dynamic   link   so   that   each   row   creates   a   different   URL   based   on   the   data   that   is  
                                  being   viewed.   An   empty   href   value   will   generate   a   link   to   the   current   page,   preserving   parameters   just  
                                  like   for   paging   links.  
                          </description>  
                  </attribute>  
   
  这个属性还能激活EMAIL,启动邮件工具呢  
  哈哈,希望对你有点帮助

你可能感兴趣的:(JavaScript,bean,.net,struts)