Web view : how to get the number of links displayed?

Hi,

In $$ViewTemplateDefault I created a Table with two rows and one column (I get a table with two cells).

I put an ID for the second cell (second row) (Table Properties > HTML Tag > Cell > ID ) : ‘CellSuivi’

In this cell I put an embbeded view (several columns, first one is categorized) set at 500 lines to display.

For all categories and documents, Domino create links.

Well, what I’d like to do is to get the number of these links.

With Javascript document.getElementById(‘CellSuivi’'), I get the cell but now I’d like to get all links into this cell, but I don’t know to achieve this :-((

(I tried to use …getElementByTagName(‘TABLE’) to get the table (create by Domino) but I get an JS error),

In fact I need to know the number of links to display or not a previous/next links

Note : With an LS agent and NotesViewNavigator class, I get the number of lines of the view BUT not the real number of lines displayed in browser.

Somenone can help me, please ?

Thank you,

Thierry

Subject: Web view : how to get the number of links displayed ?

document.getElementById(‘CellSuivi’).getElementsByTagName(‘a’).length

will give you the number of links. If you want the number of lines (and the view is using “Display using HTML” or if you are using “treat contents as HTML” with an ordinary HTML table), you can use:

document.getElementById(‘CellSuivi’).getElementsByTagName(‘tr’).length

Subject: Thanks Stan, it work…

I don’t understand, I had tested something like that but I obtained errors…

Thanks again,

Thierry