Hi all, I have been facing a peculiar problem in layers.I have an form where i added a layer and make that hide unhide using javascript on certain conditions.The layers runs fine for the first time when the form is loaded, after that it doesn’t work.Same code works on IE6.
Please let me know if any of you have also faced same kind of problem if yes, what is the workaround.
Thanks in advance…
Subject: forwarded to someone on the web server team
so they can check the web server’s html output in this case.
Subject: simple test of layers shows web server output the same for IE6 and IE8
are you perhaps seeing some difference in quirks vs standard mode?
Subject: I think it’s possible you have mistaken us for Microsoft
Internet Explorer is a Microsoft product; IBM does not support it.
Subject: *Andre, there is support for layers in Designer in the Form editor, perhaps that is why they meant?
Subject: No doubt. However…
…the poster’s complaining about a difference in the way different IE versions execute his JavaScript code. Since he doesn’t even show the code or do a comparison of the HTML generated by Domino in the two cases, I don’t understand what he expects anyone here to do about it.
Subject: cont.
hi, i have used simple code style.visibility=“visible” style.visibility=“hidden”
Subject: steps to debug your problem
This is not enough information to help us debug your problem, and I can’t write more on this thread. Here’s what you need to do:
Use the JavaScript error window in whatever browser you’re using, to see whether your code generates an error message. Pay attention to the error message and figure out what it means. If you don’t understand the message, look it up.
Save the HTML of the web page in the two versions into a file. Use a tool such as WinMerge or WinDiff to compare them. Do any of the differences look like they might be relevant to your problem?
The error you’re getting almost certainly is caused by a problem at some earlier line of code, where you’re assigning the variable style. Perhaps an ID is different from what you expected, so when you search for the element, you’re not finding it.
This not only lets you probably solve the problem yourself, but also if there is a Domino web-server difference that’s contributing to the problem, it would give us enough information to determine what it is and whether it might affect others.