0

我有一个带有两个内容窗格的 dojo 布局,每个窗格高度为 50%,一个在另一个之上。最上面的是一个道场网格。我让这个网格动态加载数据。我想用一个表单填充底部的内容窗格,以编辑网格中该行的详细信息。我已成功附加 onRowClick 以动态检索该行详细信息所需的数据。

dojo.connect(grid, 'onRowClick', function(e) {
   detailIssueCp.attr('href', '/rest-issue/get/id/' + e.grid._by_idx[e.rowIndex].item._id);
});

以及检测何时检索到该数据:

  dojo.connect(detailIssueCp, 'onDownloadEnd', function(e)
  {
     var jsonValue = detailIssueCp.domNode.innerText;
     // attempt at making a form...
  }

我想构建一个格式良好的表单(例如在表格或其他东西中)并将其放置在底部内容窗格中,但我这样做的尝试以行为不佳和格式错误的形式告终。

有没有人有在这里有用的设计模式?我有一种感觉我做错了。

4

1 回答 1

0

Well, it appears that the solution is to ask for the form in HTML format. I was trying to return a Json value and should have instead just asked for a fully formated HTML form from the server.

于 2011-05-20T21:39:31.453 回答