Html Rhodes应用程序-如何在表格行触摸屏上导航?

Html Rhodes应用程序-如何在表格行触摸屏上导航?,html,rhomobile,rhodes,tablerow,Html,Rhomobile,Rhodes,Tablerow,我想在触摸表格行时执行导航到其他屏幕。为此,我采取了以下措施: <table> <tr><a href="<%= url_for :controller => :Products %>"></a> <td width="80"><img src="http://images.bizrate.com/resize?sq=60&uid=2605377575" width="80px"></img&

我想在触摸表格行时执行导航到其他屏幕。为此,我采取了以下措施:

<table>
<tr><a href="<%= url_for :controller => :Products %>"></a>
<td width="80"><img src="http://images.bizrate.com/resize?sq=60&uid=2605377575" width="80px"></img></td>
<td>
<table>
    <tr>
        <td width="260"><label for="label1">GPS Navigation System-$68.00</label></td>
    </tr>
        <tr>
<td width="260"><label for="label2">TomTom 3.5 One 125</label></td>  
        </tr>
        </table>
        </td>
        </tr>
</table>  

GPS导航系统-68.00美元
汤姆3.5一125
但什么也没发生。我还尝试在td中应用
。仍然没有成功。最后我尝试了无序列表。仍然没有发生任何事情。

我们如何在表格行触摸上导航到其他屏幕?

您需要在定位标记中指定操作,而不仅仅是控制器。您可以尝试以下方法:

<table>
   <tr onclick="rowClick();">
     <td width="80"><img src="http://images.bizrate.com/resize?sq=60&uid=2605377575" width="80px"></img></td>
     <td>
       <table>
         <tr>
           <td width="260"><label for="label1">GPS Navigation System-$68.00</label></td>
         </tr>
         <tr>
           <td width="260"><label for="label2">TomTom 3.5 One 125</label></td>  
         </tr>
       </table>
     </td>
   </tr>
</table>

<script type="text/javascript">
  function rowClick() {
    window.location = "<%= url_for :controller => :Products, :action => :show, :params => { :item_id => 1234 } %>";
  }
</script>

GPS导航系统-68.00美元
汤姆3.5一125
函数行单击(){
window.location=“:Products,:action=>:show,:params=>{:item_id=>1234}%>”;
}

我对javascript一无所知。举个例子会很有帮助。(使用javascript在行触摸上导航的示例)。