Javascript error - Section twisties not working on web

Hi,I have recently upgraded my server to R6 from R5. There was no problem on R5 server, but on R6 this problem appeared -

I have a document with sections, when I open it in web and click on twisty, the browser return javascript error ‘Object expected’ and does not open the section. It happenes for all sections on all documents.

For your reference I’m pasting the JS function where it give me this error -

Show details

AND the function is -

function _dSectionExpand(sec) {

document.all[“cSec”+sec].style.display = “none”;

document.all[“xSec”+sec].style.display = “”;

}

Please can anyone tell me whats wrong here. I’d be greatful.

Many thanks,

v.

Subject: Javascript error - Section twisties not working on web

The JavaScript is okay. Sections are done using DHTML on ND6 when IE is the accessing browser. R5 would round-trip to the server to re-get the page with the section expanded. What browser are you using? Does the section render in the HTML as

?

Subject: RE: Javascript error - Section twisties not working on web

I’m using IE5. the section does not use HTML

tag. Its generated by domino by default. I’m not using any code written by me. please help.

Subject: RE: Javascript error - Section twisties not working on web

I asked you to look at the source, not simply to say “I didn’t add anything”. Sections on the web for IE are supposed to be rendered with

tags. Is the
there, and does it carry an appropriate name/id value?

Subject: RE: Javascript error - Section twisties not working on web

I have a problem with some similarities.I support an application but not at programming level.

My customer has documents which are accessed either via Notes database or via Intranet.

If the document has collapsible sections, there are two problems.

First: behaviour seems to have changed since a Domino 6 upgrade.

The document includes buttons that have the intended effect of “Collapse All” and “Expand All”.

Previously: a “Collapse” button would collapse all sections unconditionally.

Now: this only occurs if the document was actually saved in that state (with all sections collapsed). In other words, it seems that the new behaviour is to call the web page as saved. This places a new dependency on the state of all documents that wasn’t previously there. Is this a common experience?

Second problem: I will post separately for the sake of clarity.

David Powell

Subject: RE: Javascript error - Section twisties not working on web

I am having the same issue as the previous posters. I have a form with multiple sections and would like to have them collapsed.

IE is giving an error message on the domino generated function:

function _dSectionCollapse(sec) {

document.all[“xSec”+sec].style.display = “none”;

document.all[“cSec”+sec].style.display = “”;

}

The second line, char 45, which doesn’t really make sense to me.

Note that the error is given when loading the browser.

Any help would be greatly appreciated.

Domino version is 6.5.1

Subject: RE: Javascript error - Section twisties not working on web

Please take a look at your HTML source in the browser (View → Source). The chances are better than even that you’ll find something wrong in the HTML before the function, like a loose single quote/apostrophe (on the web, please read “apostrophe” as “catastrophe”) or an unclosed tag.