I'm facing the following problem:
I'm using jQuery
to display an inline pop-up
when trying to press a link on a page. The inline popup is defined inside a .jspf
page as follows:
<div id="x" style="display:none">
<a id="y" class="thickbox" href="#TB_inline?height=150&width=400&inlineId=w&modal=true">Show hidden modal content.</a>
</div>
<div id="w" style="display: none;">
...
</div>
I am using onclick="checkLogout(); return false;"
where
function checkLogout(){
document.getElementById("y").click();
}
to display the inline content.
The jspf file containing this content is used in multiple jsp files but when clicking the link,
only the first page in a succession of ones using the jspf
shows the content and behaves normally.
The others call the checkLogout()
function but don't show the inline content.
Does anyone have a clue what I'm doing wrong?
Thanks in advance!