1

We have a sharepoint Aspx form that is formatted like an excel spreadsheet. On each row of the form are links that when clicked, launch a script to show new links, allowing the user to add, view, or hide comments. This will appear for each line item clicked on.

We would like to remove the "add comment" link from the script, but cannot find anywhere to do so in both Sharepoint or Sharepoint Designer.

4

2 回答 2

1

您可以使用 JavaScript 删除任何 HTML 元素,您只需要能够定位它。

请参阅getElementByIdgetElementsByTagName进行定位,然后参阅Node.removeChild将其从文档中删除。

于 2009-03-27T00:13:48.360 回答
0

要通过客户端删除它,是的,您可以尝试一些 JS 或 CSS,但您发现很难找到唯一的句柄。Firebug 将帮助查看是否可用。但是您可能需要查看 Schema.xml

您可以使用 Sharepoint Manager http://www.codeplex.com/spm找到它

交替查看 onet.xml

于 2009-04-28T11:18:06.013 回答